From 304b93c2f6efdd2dd16877aadffd8e187d1ccb3b Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Sun, 15 Dec 2024 19:29:38 +0700 Subject: [PATCH] refactor(overview): hide kas di overview untuk kasir dan barber --- .../pages/admin/dashboard/overview.blade.php | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/resources/views/pages/admin/dashboard/overview.blade.php b/resources/views/pages/admin/dashboard/overview.blade.php index dd7f3dd..3c62b44 100644 --- a/resources/views/pages/admin/dashboard/overview.blade.php +++ b/resources/views/pages/admin/dashboard/overview.blade.php @@ -8,26 +8,28 @@
-
-
-
- {{ auth()->user()->barbershop->name }} -

- {{ formatToRupiah($cash) }} -

- @if (auth()->user()->role_id !== 5 && auth()->user()->role_id !== 2) - Tambah Kas - @else - - @endif -
- mobile with coin + @if (in_array(auth()->user()->role_id, [1, 2, 3])) +
+
+
+ {{ auth()->user()->barbershop->name }} +

+ {{ formatToRupiah($cash) }} +

+ @if (auth()->user()->role_id !== 5 && auth()->user()->role_id !== 2) + Tambah Kas + @else + + @endif +
+ mobile with coin +
-
+ @endif