@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.location') }}: {{ $location->name }} @parent @stop @section('header_right') @endsection {{-- Page content --}} @section('content') @if ($location->deleted_at!='') {{ trans('admin/locations/message.deleted_warning') }} @endif @can('view', \App\Models\User::class) @endcan @can('view', \App\Models\Asset::class) @endcan @can('view', \App\Models\Accessory::class) @endcan @can('view', \App\Models\Consumable::class) @endcan @can('view', \App\Models\Component::class) @endcan @can('update', $location) @endcan @can('view', \App\Models\User::class) {{ trans('general.users') }} @endcan @can('view', \App\Models\Asset::class) {{ trans('admin/locations/message.current_location') }} {{ trans('admin/locations/message.assigned_assets') }} {{ trans('admin/hardware/form.default_location') }} @endcan @can('view', \App\Models\Accessory::class) {{ trans('general.accessories') }} {{ trans('general.accessories_assigned') }} @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->deleted_at=='') {{ trans('admin/locations/table.print_inventory') }} {{ trans('admin/locations/table.print_all_assigned') }} @endif @if ($location->ldap_ou) {{ $location->ldap_ou }} @endif @stop @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 ])