@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.location') }}: {{ $location->name }} @parent @stop @section('header_right') {{ trans('general.back') }} @endsection {{-- Page content --}} @section('content')
@if ($location->image!='')
{{ $location->name }}
@endif @if (($location->state!='') && ($location->country!='') && (config('services.google.maps_api_key')))
Map
@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->address!='') && ($location->city!='')) || ($location->state!='') || ($location->country!=''))
  • {!! trans('admin/locations/message.open_map', ['map_provider_icon' => '']) !!}
  • {!! trans('admin/locations/message.open_map', ['map_provider_icon' => '']) !!}
  • @endif
@can('update', $location) @endcan @can('delete', $location)
@if ($location->deleted_at=='') @if ($location->isDeletable()) @else {{ trans('general.delete') }} @endif @else
@csrf
@endif
@endcan
@stop @section('moar_scripts') @include ('partials.bootstrap-table', [ 'exportFile' => 'locations-export', 'search' => true ]) @stop