@php use App\Models\Staff;use Carbon\Carbon; @endphp @extends('employee.layouts.app') @section('title',get_setting('site_name').' Attendance Report') @section('content')
{{ __('Attendance Report') }}
@if($staff_details!=null)
@if(get_setting('system_logo_white') != null) {{ get_setting('site_name') }} @endif
{{get_setting('site_name')}}
{{ !empty($staff_details->warehouse)?$staff_details->warehouse->address:'' }}
@if($type==='month_wise')
Attendance Report On {{Carbon::create($year,$month,1)->format('F')}} -{{$year}}
@else
Attendance Report On {{$start_date}}{{__(' to ')}}{{$end_date}}
@endif
Employee Code 0{{!empty($staff_details->user)?$staff_details->user->id:''}} Designation {{!empty($staff_details->designation)?$staff_details->designation->name:'-'}}
Employee Name {{!empty($staff_details->user)?$staff_details->user->name:''}} Warehouse/Branch {{!empty($staff_details->warehouse)?$staff_details->warehouse->name:''}}
@if (($year!=null ||$month!=null )&& $type==="month_wise") @for($day = 1; $day <= Carbon::create($year, $month, 1)->daysInMonth; $day++) @php $currentDate = Carbon::create($year, $month, $day)->format('Y-m-d'); $foundStatus = false; @endphp @endfor @else @php $startDate = Carbon::parse($start_date); $endDate = Carbon::parse($end_date); @endphp @for ($date = $startDate; $date->lte($endDate); $date->addDay()) @php $foundStatus = false; @endphp @endfor @endif
Date Status In Time Out Time Remarks
{{ $currentDate }} ({{ date('l', strtotime($currentDate)) }}) @foreach($salesData as $sale) @if($sale->date == $currentDate) {{ $sale->status }} @php $foundStatus = true; @endphp @endif @endforeach @foreach($half_leaves as $half) @if($half == $currentDate) {{ __('Half Leave') }} @php $foundStatus = true; @endphp @endif @endforeach @foreach($weekend_data as $weekend) @if(date('l', strtotime($currentDate)) == $weekend) {{ __('W') }} @php $foundStatus = true; @endphp @endif @endforeach @foreach($leave_data as $leave) @if($leave == $currentDate) {{ __('L') }} @php $foundStatus = true; @endphp @endif @endforeach @if(!$foundStatus) {{ __('A') }} @endif @foreach($salesData as $sale) @if($sale->date == $currentDate && $sale->status != 'L') {{date('h:i A',strtotime($sale->signIn))}} @endif @endforeach @foreach($salesData as $sale) @if($sale->date == $currentDate && $sale->status != 'L') {{date('h:i A',strtotime($sale->signOut))}} @endif @endforeach @foreach($salesData as $sale) @if(Carbon::create($year,$month,$day)->format('Y-m-d')==$sale->date) {!! $sale->remarks !!} @endif @endforeach
{{ $date->format('Y-m-d (l)') }} @foreach($salesData as $sale) @if($date->format('Y-m-d')==$sale->date) {{$sale->status}} @php $foundStatus = true; @endphp @endif @endforeach @foreach($half_leaves as $half) @if($date->format('Y-m-d')==$half->date) {{$half->status}} @php $foundStatus = true; @endphp @endif @endforeach @foreach($weekend_data as $weekend) @if($date->format('l')==$weekend) {{__('W')}} @php $foundStatus = true; @endphp @endif @endforeach @foreach($holiday_data as $holiday) @if($date->format('Y-m-d')==$holiday) {{__('H')}} @php $foundStatus = true; @endphp @endif @endforeach @foreach($leave_data as $leave) @if($date->format('Y-m-d')==$leave) {{__('L')}} @php $foundStatus = true; @endphp @endif @endforeach @if (!$foundStatus) {{ __('A') }} @endif @foreach($salesData as $sale) @if($date->format('Y-m-d')==$sale->date) {{date('h:i A',strtotime($sale->signIn))}} @endif @endforeach @foreach($salesData as $sale) @if($date->format('Y-m-d')==$sale->date) {{date('h:i A',strtotime($sale->signOut))}} @endif @endforeach @foreach($salesData as $sale) @if($date->format('Y-m-d')==$sale->date)
Warning: Undefined variable $sale in /home/easyhr/public_html/psks.easyhr.us/resources/views/employee/Report/attendance/monthly.blade.php on line 330

Warning: Attempt to read property "remarks" on null in /home/easyhr/public_html/psks.easyhr.us/resources/views/employee/Report/attendance/monthly.blade.php on line 330
@endif @endforeach
{{-- {{$salesData->links()}}--}} @if($salesData!=null) @endif
@endif @endsection @section('script') @endsection