From 12f0c42545f5df90774229756b56ebb0528b0449 Mon Sep 17 00:00:00 2001 From: akemidx Date: Wed, 3 May 2023 11:22:56 -0400 Subject: [PATCH] buttons added --- resources/views/accessories/view.blade.php | 57 ++++++++++++++++++---- 1 file changed, 47 insertions(+), 10 deletions(-) diff --git a/resources/views/accessories/view.blade.php b/resources/views/accessories/view.blade.php index a34cf572c4..8e1b082d9d 100644 --- a/resources/views/accessories/view.blade.php +++ b/resources/views/accessories/view.blade.php @@ -136,7 +136,7 @@ - +
@@ -347,16 +347,53 @@ {{ $accessory->users_count }}
+
- - - @can('checkout', \App\Models\Accessory::class) -
- -
- @endcan +
+ @can('checkout', \App\Models\Accessory::class) + + @endcan + @can('update', \App\Models\Accessory::class) + + @endcan + @can('update', \App\Models\Accessory::class) + + @endcan + @can('delete', $accessory) + @if ($accessory->users_count == 0) +
+
+ +
+
+ @else + + @endif + @endcan +
+