Skip to content

Commit 2c26702

Browse files
authored
Merge pull request #178 from velstorelabs/feature/admin-validation-v2
added cms dashboard translations and updated blade file to use locali…
2 parents 2ab7409 + b416115 commit 2c26702

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

resources/lang/en/cms.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@
1616
'logout' => 'logout',
1717
],
1818

19+
'dashboard' => [
20+
'total_sales' => 'Total Sales',
21+
'today' => 'Today',
22+
'total' => 'Total',
23+
24+
'total_orders' => 'Total Orders',
25+
'completed' => 'Completed',
26+
'all_orders' => 'All Orders',
27+
28+
'total_vendors' => 'Total Vendors',
29+
'active' => 'Active',
30+
31+
'total_customers' => 'Total Customers',
32+
],
33+
1934
'sidebar' => [
2035
'search_placeholder' => 'Search...',
2136
'dashboard' => 'Dashboard',

resources/views/admin/dashboard/index.blade.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
<i class="fas fa-dollar-sign"></i>
5757
</div>
5858
<div class="text-container">
59-
<h6>Total Sales</h6>
60-
<p>Today: ${{ number_format($data['todaySales'], 2) }}</p>
61-
<p>Total: ${{ number_format($data['totalSales'], 2) }}</p>
59+
<h6>{{ __('cms.dashboard.total_sales') }}</h6>
60+
<p>{{ __('cms.dashboard.today') }}: ${{ number_format($data['todaySales'], 2) }}</p>
61+
<p>{{ __('cms.dashboard.total') }}: ${{ number_format($data['totalSales'], 2) }}</p>
6262
</div>
6363
</div>
6464
</div>
@@ -69,9 +69,9 @@
6969
<i class="fas fa-shopping-cart"></i>
7070
</div>
7171
<div class="text-container">
72-
<h6>Total Orders</h6>
73-
<p>Completed: {{ $data['completedOrders'] }}</p>
74-
<p>All Orders: {{ $data['totalOrders'] }}</p>
72+
<h6>{{ __('cms.dashboard.total_orders') }}</h6>
73+
<p>{{ __('cms.dashboard.completed') }}: {{ $data['completedOrders'] }}</p>
74+
<p>{{ __('cms.dashboard.all_orders') }}: {{ $data['totalOrders'] }}</p>
7575
</div>
7676
</div>
7777
</div>
@@ -82,8 +82,8 @@
8282
<i class="fas fa-store"></i>
8383
</div>
8484
<div class="text-container">
85-
<h6>Total Vendors</h6>
86-
<p>Active: {{ $data['totalVendors'] }}</p>
85+
<h6>{{ __('cms.dashboard.total_vendors') }}</h6>
86+
<p>{{ __('cms.dashboard.active') }}: {{ $data['totalVendors'] }}</p>
8787
</div>
8888
</div>
8989
</div>
@@ -94,7 +94,7 @@
9494
<i class="fas fa-users"></i>
9595
</div>
9696
<div class="text-container">
97-
<h6>Total Customers</h6>
97+
<h6>{{ __('cms.dashboard.total_customers') }}</h6>
9898
<p>{{ $data['totalCustomers'] }}</p>
9999
</div>
100100
</div>

0 commit comments

Comments
 (0)