@extends('layouts.admin_app') @section('title', 'List of All Location') @section('content') @include('layouts.error')

Locations

@if(count($locations) == 0)

No Locations Available.

@else
@foreach($locations as $location) @endforeach
Name Head Office Status Last Used Notes Action
{{ $location->trading_name }}
{{ $location->full_address }}
{{ $location->email }}
{{ $location->telephone_no }}
{{$location->regulatory_body->regulatory}} No: {{$location->registration_no}}
Managers @if(count($location->managers) > 0) @foreach($location->managers as $manager)

{{$manager->user->name}} ({{$manager->user->email}})

@endforeach @else
No managers found. @endif
@if($location->head_office())

{{$location->head_office()->name()}}

@endif
{{$location->status[0]}} Last Login:{{ $location->last_login_time }}
Last entry made: N/A
Last Login: {{ $location->last_login_user_name }}
{{-- --}} @endif
@endsection