diff --git a/resources/views/blade/box/container.blade.php b/resources/views/blade/box/container.blade.php index 9e37d922d80b..81527e6c2a69 100644 --- a/resources/views/blade/box/container.blade.php +++ b/resources/views/blade/box/container.blade.php @@ -2,7 +2,6 @@ 'box_style' => 'default', 'header' => false, 'footer' => false, - ]) diff --git a/resources/views/blade/bulk-menus/assets.blade.php b/resources/views/blade/bulk-menus/assets.blade.php new file mode 100644 index 000000000000..b89ec4ad04c7 --- /dev/null +++ b/resources/views/blade/bulk-menus/assets.blade.php @@ -0,0 +1,49 @@ +@aware(['name']) + +
+ @csrf + +
+ {{-- The sort and order will only be used if the cookie is actually empty (like on first-use) --}} + + + + + + +
+
diff --git a/resources/views/blade/table.blade.php b/resources/views/blade/table.blade.php new file mode 100644 index 000000000000..c6ecea6496f9 --- /dev/null +++ b/resources/views/blade/table.blade.php @@ -0,0 +1,38 @@ +@props([ + 'presenter' => null, + 'buttons' => null, + 'export_filename' => 'export-'.date('Y-m-d'), + 'api_url' => null, + 'show_column_search' => false, + 'show_advanced_search' => false, +]) + +@aware(['name']) + + +
\ No newline at end of file diff --git a/resources/views/blade/tabs/index.blade.php b/resources/views/blade/tabs/index.blade.php new file mode 100644 index 000000000000..d4e5437ab9e0 --- /dev/null +++ b/resources/views/blade/tabs/index.blade.php @@ -0,0 +1,14 @@ + + + \ No newline at end of file diff --git a/resources/views/blade/tabs/nav-item-upload.blade.php b/resources/views/blade/tabs/nav-item-upload.blade.php new file mode 100644 index 000000000000..096b2ecca2f9 --- /dev/null +++ b/resources/views/blade/tabs/nav-item-upload.blade.php @@ -0,0 +1,6 @@ +
  • + + + {{ trans('button.upload') }} + +
  • \ No newline at end of file diff --git a/resources/views/blade/tabs/nav-item.blade.php b/resources/views/blade/tabs/nav-item.blade.php new file mode 100644 index 000000000000..66df072c6559 --- /dev/null +++ b/resources/views/blade/tabs/nav-item.blade.php @@ -0,0 +1,27 @@ +@props([ + 'name' => false, + 'label' => false, + 'count' => 0, + 'icon' => false, + 'icon_style' => false, + 'tooltip' => false, +]) + +
  • merge(['class' => '']) }}> + + + @if ($icon) + + @endif + + + {{ $label }} + + + @if ($count > 0) + {{ number_format($count) }} + @endif + + +
  • + \ No newline at end of file diff --git a/resources/views/blade/tabs/pane.blade.php b/resources/views/blade/tabs/pane.blade.php new file mode 100644 index 000000000000..9a9542a36055 --- /dev/null +++ b/resources/views/blade/tabs/pane.blade.php @@ -0,0 +1,23 @@ +@props([ + 'name' => 'default', +]) + + +
    merge(['class' => 'tab-pane']) }}> + + @if (isset($header)) +

    + {{ $header }} +

    + + @endif + + @if (isset($bulkactions)) +
    + {{ $bulkactions }} +
    + @endif + + {{ $content }} +
    + \ No newline at end of file diff --git a/resources/views/locations/view.blade.php b/resources/views/locations/view.blade.php index c4511adfeecf..5e9db988e555 100644 --- a/resources/views/locations/view.blade.php +++ b/resources/views/locations/view.blade.php @@ -9,455 +9,376 @@ @parent @stop -@section('header_right') - - {{ trans('general.back') }} -@endsection {{-- Page content --}} @section('content') + + + + + + @can('view', \App\Models\User::class) + + @endcan -
    + @can('view', \App\Models\Asset::class) + + + + + + - @if ($location->deleted_at!='') -
    -
    - - {{ trans('admin/locations/message.deleted_warning') }} -
    -
    - @endif + @endcan + @can('view', \App\Models\Accessory::class) -
    + + + + @endcan - -
    - -
    + + + + + + + + @endcan + + + + + @can('view', \App\Models\Consumable::class) + + + {{ trans('general.consumables') }} + + + + + + + + @endcan + + + + @can('view', \App\Models\Component::class) + + + {{ trans('general.components') }} + + + + + + @endcan + + + + + + {{ trans('general.child_locations') }} + + + + + + + + + + + + {{ trans('general.files') }} + + + + + + + + + + + {{ trans('general.history') }} + + + + + + + + + + + + @if ($location->image!='')
    @@ -586,24 +507,20 @@ class="table table-striped snipe-table"
    @endcan - - -
    -
    - +
    +
    @stop -@section('moar_scripts') - - @can('update', Location::class) - @include ('modals.upload-file', ['item_type' => 'locations', 'item_id' => $location->id]) - @endcan - +@can('update', Location::class) + @section('moar_scripts') + @include ('modals.upload-file', ['item_type' => 'locations', 'item_id' => $location->id]) + @endsection +@endcan @include ('partials.bootstrap-table', [ 'exportFile' => 'locations-export', 'search' => true ]) -@stop +