Attendance

@if (isset($data->user) && $data->user != null && $data->user != 'all' && $data->user != '')

User: {{ $attendances[0]->user->name }}

@endif @if ($data->status == 'date') @if ($data->has('date_from') && $data->has('date_to') && $data->get('date_to') != 'undefined' && $data->get('date_from') != 'undefined' && $data->get('date_from') != '' && $data->get('date_to') != '' && !is_null($data->get('date_to')) && !is_null($data->get('date_from')))

From: {{ $data->date_from }}

To: {{ $data->date_to }}

@endif @endif
@foreach ($attendances as $a) @endforeach
Date User Punch In Time Punch Out Time
{{ $a->date }} {{ $a->user->name }} {{ $a->punch_in_formatted }} {{ $a->punch_out_formatted }}