From beb5560dcecdbc1c69950278c59a28eaac353515 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 21 Apr 2025 14:43:04 +0100 Subject: [PATCH] Added files tab Signed-off-by: snipe --- resources/views/locations/view.blade.php | 46 +++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/resources/views/locations/view.blade.php b/resources/views/locations/view.blade.php index 3d3b6a524d..2f7cb075b5 100644 --- a/resources/views/locations/view.blade.php +++ b/resources/views/locations/view.blade.php @@ -144,7 +144,22 @@ @endif @endcan - + + @if ($location->uploads->count() > 0 ) +
  • + + + + + +
  • + @endif +
  • @@ -153,6 +168,15 @@
  • + + @can('update', $location) +
  • + + + {{ trans('button.upload') }} + +
  • + @endcan @@ -375,6 +399,22 @@ +
    + +
    +
    + + + +
    +
    + +
    +

    {{ trans('general.history') }}

    @@ -550,6 +590,10 @@ @section('moar_scripts') + @can('update', Location::class) + @include ('modals.upload-file', ['item_type' => 'locations', 'item_id' => $location->id]) + @endcan +