@php use App\Models\Staff;use App\Models\User; @endphp @php @endphp @extends('admin.layouts.app') @section('title',get_setting('site_name').' Attendance History') @section('content')
Attendance History
@if($show!==null)
@if(get_setting('system_logo_white') != null) {{ get_setting('site_name') }} @endif
{{get_setting('site_name')}}
{{ get_setting('contact_address',null,App::getLocale()) }}
Employee Code {{$staff_details->id}} Designation {{$staff_details->designation->name}}
Employee Name {{$staff_details->user->name}} Warehouse/Branch {{$staff_details->warehouse->name}}
@if($start_date!=null && $end_date!=null)
Attendance History Report On {{$start_date}}{{__(' to ')}}{{$end_date}}
@else
Attendance History Report On {{$staff_details->joing_date}}{{__(' to ')}}{{date('Y-m-d')}}
@endif @foreach ($attendance as $i => $atten) @foreach($atten as $key=> $test) @php $user=User::where('id',$test->user_id)->first();@endphp @endforeach @endforeach
Sl Emp_code Emp_name Time Flag
{{date('d-m-Y(l)',strtotime($i))}}
{{$key+1}} Emp-100{{$user->staff->id}} {{$user->name}} {{date('h:i a',strtotime(explode(' ',$test['timestamp'])[1]))}} @if($key%2==0) {{__('In Time')}} @else {{__('Out Time')}} @endif
{{-- {{$salesData->links()}}--}} @if($show!=null) @endif
@endif @endsection @section('modal') @endsection @section('script') @endsection