@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.location') }}: {{ $location->name }} @parent @stop {{-- Page content --}} @section('content')
{{ trans('general.users') }} {!! (($location->users) && ($location->users->count() > 0 )) ? '
'.number_format($location->users->count()).'
' : '' !!}
{{ trans('admin/locations/message.current_location') }} {!! (($location->assets) && ($location->assets()->AssetsForShow()->count() > 0 )) ? '
'.number_format($location->assets()->AssetsForShow()->count()).'
' : '' !!}
{{ trans('admin/hardware/form.default_location') }} {!! (($location->rtd_assets) && ($location->rtd_assets()->AssetsForShow()->count() > 0 )) ? '
'.number_format($location->rtd_assets()->AssetsForShow()->count()).'
' : '' !!}
{{ trans('admin/locations/message.assigned_assets') }} {!! (($location->rtd_assets) && ($location->assignedAssets()->AssetsForShow()->count() > 0 )) ? '
'.number_format($location->assignedAssets()->AssetsForShow()->count()).'
' : '' !!}
{{ trans('general.accessories') }} {!! (($location->accessories) && ($location->accessories->count() > 0 )) ? '
'.number_format($location->accessories->count()).'
' : '' !!}
{{ trans('general.consumables') }} {!! (($location->consumables) && ($location->consumables->count() > 0 )) ? '
'.number_format($location->consumables->count()).'
' : '' !!}
{{ trans('general.components') }} {!! (($location->components) && ($location->components->count() > 0 )) ? '
'.number_format($location->components->count()).'
' : '' !!}
{{ trans('general.users') }}
@include('partials.users-bulk-actions')
{{ trans('admin/locations/message.current_location') }}
@include('partials.asset-bulk-actions')
{{ trans('admin/locations/message.assigned_assets') }}
@include('partials.asset-bulk-actions', ['id_divname' => 'AssignedAssetsBulkEditToolbar', 'id_formname' => 'assignedAssetsBulkForm', 'id_button' => 'AssignedbulkAssetEditButton'])
{{ trans('admin/hardware/form.default_location') }}
@include('partials.asset-bulk-actions', ['id_divname' => 'RTDassetsBulkEditToolbar', 'id_formname' => 'RTDassets', 'id_button' => 'RTDbulkAssetEditButton'])
{{ trans('general.accessories') }}
{{ trans('general.consumables') }}
{{ trans('general.components') }}
{{ trans('admin/locations/table.update') }}
{{ trans('admin/locations/table.print_assigned') }}
{{ trans('admin/locations/table.print_all_assigned') }}
@if ($location->image!='')
@endif
@if ($location->address!='')
{{ $location->address }}
@endif @if ($location->address2!='')
{{ $location->address2 }}
@endif @if (($location->city!='') || ($location->state!='') || ($location->zip!=''))
{{ $location->city }} {{ $location->state }} {{ $location->zip }}
@endif @if ($location->manager)
{{ trans('admin/users/table.manager') }}: {!! $location->manager->present()->nameUrl() !!}
@endif @if ($location->parent)
{{ trans('admin/locations/table.parent') }}: {!! $location->parent->present()->nameUrl() !!}
@endif @if ($location->ldap_ou)
{{ trans('admin/locations/table.ldap_ou') }}: {{ $location->ldap_ou }}
@endif
@if (($location->state!='') && ($location->country!='') && (config('services.google.maps_api_key')))
@endif
@stop @section('moar_scripts') @include ('partials.bootstrap-table', [ 'exportFile' => 'locations-export', 'search' => true ]) @stop