@include('includes/header') @include('includes/sidebar') {{--
--}} {{-- @if (\Session::has('success')) @endif --}} @if(\Session::has('success'))
{!! \Session::get('success') !!}
@endif

Attendance Report (Admin View)

  • 0 0 0 0 Admin View

My Team

@foreach($data['teams'] as $team) @php $att = ''; if(strlen($team['attendanceInAt']) != 0 ){ $att = 'In At: ' . $team['attendanceInAt']; } if(strlen($team['attendanceOutAt']) != 0 ) { $att .= 'Out At: ' . $team['attendanceOutAt']; } if( strlen($team['attendanceInAt']) == 0 && strlen($team['attendanceOutAt']) == 0 ){ $att = 'Not checked in!'; } $location = 'https://www.google.com/maps/search/?api=1&query=' . $team['latitude'] . ',' . $team['longitude']; // echo $location; @endphp @endforeach
Name Attendance Location Last Update
{{$team['name']}} @if( $team['attendanceInAt'] != '' ) In At: {{ $team['attendanceInAt'] }}
@endif @if( $team['attendanceOutAt'] != '' ) Out At: {{ $team['attendanceOutAt'] }} @endif @if( $team['attendanceInAt'] == '' && $team['attendanceOutAt'] == '' ) Not checked in! @endif
Open In Map {{$team['lastUpdate']}}
@include('includes/footer')