From f14ef5a029281c0dd20a0b638539e496b498746c Mon Sep 17 00:00:00 2001 From: pushuo <229102104@qq.com> Date: Thu, 4 Aug 2022 15:14:45 +0800 Subject: [PATCH] wip --- .../Admin/Http/Controllers/HomeController.php | 1 + .../beike/admin/views/pages/home.blade.php | 53 +++++++++++-------- 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/beike/Admin/Http/Controllers/HomeController.php b/beike/Admin/Http/Controllers/HomeController.php index d0df0cd6..8d6514b1 100644 --- a/beike/Admin/Http/Controllers/HomeController.php +++ b/beike/Admin/Http/Controllers/HomeController.php @@ -15,6 +15,7 @@ class HomeController extends Controller 'customer' => DashboardRepo::getCustomerData(), 'total' => DashboardRepo::getTotalData(), ]; + return view('admin::pages.home', $data); } } diff --git a/resources/beike/admin/views/pages/home.blade.php b/resources/beike/admin/views/pages/home.blade.php index c89edb4f..911a49b2 100644 --- a/resources/beike/admin/views/pages/home.blade.php +++ b/resources/beike/admin/views/pages/home.blade.php @@ -10,62 +10,73 @@
- {{--
产品总数
--}} +
+ {{ __('admin/dashboard.customer_view') }} + {{ __('admin/dashboard.yesterday') }} +
-
产品总数
+ {{--
{{ __('admin/dashboard.customer_view') }}
--}}
-
90
- {{-- +3.5% --}} +
{{ $product['total'] }}
-
+ {{--
--}}
-
-24 较以往新增
+
-24 {{ __('admin/dashboar.day_befored') }}
- {{--
订单总数
--}} +
+ {{ __('admin/dashboard.order_total') }} + {{ __('admin/dashboard.yesterday') }} +
-
订单总数
+ {{--
{{ __('admin/dashboard.order_total') }}
--}}
-
190
+
{{ $order['total'] }}
-
+ {{--
--}}
-
-21% 较以往新增
+
-21% {{ __('admin/dashboard.day_before') }}
- {{--
会员总数
--}} +
+ {{ __('admin/dashboard.customer_new') }} + {{ __('admin/dashboard.yesterday') }} +
-
会员总数
+ {{--
{{ __('admin/dashboard.customer_new') }}
--}}
-
190
+
{{ $customer['total'] }}
-
+ {{--
--}}
-
+30% 较以往新增
+
+30% {{ __('admin/dashboard.day_before') }}
- {{--
会员总数
--}} +
+ {{ __('admin/dashboard.order_amount') }} + {{ __('admin/dashboard.yesterday') }} +
-
销售金额
+ {{--
{{ __('admin/dashboard.order_amount') }}
--}}
-
6666666
+
{{ $total['total'] }}
-
+ {{--
--}}
-
+140% 较以往新增
+
+140% {{ __('admin/dashboard.day_before') }}