From d9a114090bd8b05e43d4c706cc15a6528e5fef7f Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 11 Jul 2024 16:18:33 +0100 Subject: [PATCH] Added buttons Signed-off-by: snipe --- resources/views/consumables/view.blade.php | 53 ++++++++++++++++------ 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/resources/views/consumables/view.blade.php b/resources/views/consumables/view.blade.php index 80987335ff..b56015524e 100644 --- a/resources/views/consumables/view.blade.php +++ b/resources/views/consumables/view.blade.php @@ -176,6 +176,7 @@ {{ trans('general.delete') }} + @endforeach @@ -254,6 +255,19 @@ @endif + @if ($consumable->notes) + +
+ + {{ trans('general.notes') }}: + +
+
+ {!! nl2br(Helper::parseEscapedMarkedownInline($consumable->notes)) !!} +
+ + @endif + @can('checkout', \App\Models\Consumable::class)
@@ -268,22 +282,24 @@ @endif
+ @can('update', \App\Models\Consumable::class) + + @endcan + + @can('delete', $consumable) +
+ @if ($consumable->deleted_at=='') + + {{ trans('general.delete') }} + @endif +
+ @endcan @endcan - @if ($consumable->notes) - -
- - {{ trans('general.notes') }}: - -
-
- {!! nl2br(Helper::parseEscapedMarkedownInline($consumable->notes)) !!} -
- - @endif - @@ -297,5 +313,16 @@ @stop @section('moar_scripts') + + @include ('partials.bootstrap-table', ['exportFile' => 'consumable' . $consumable->name . '-export', 'search' => false]) @stop