@php use App\Models\Staff;use Carbon\Carbon; @endphp @extends('employee.layouts.app') @section('title',get_setting('site_name').' Attendance Report') @section('content')
| 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:''}} |
| 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 |