@if (!empty($profiles)) @php // $friDateYmd = date("Y-m-d", strtotime($schedule->start)); // $saturdayDateYmd = date('Y-m-d',strtotime('+1 day', strtotime($friDateYmd))); // $sundayDateYmd = date('Y-m-d',strtotime('+2 days', strtotime($friDateYmd))); // $mondayDateYmd = date('Y-m-d',strtotime('+3 days', strtotime($friDateYmd))); // $tuesdayDateYmd = date('Y-m-d',strtotime('+4 days', strtotime($friDateYmd))); // $wedDateYmd = date('Y-m-d',strtotime('+5 days', strtotime($friDateYmd))); // $thursDateYmd = date('Y-m-d',strtotime('+6 days', strtotime($friDateYmd))); $thursDateYmd = date("Y-m-d", strtotime($schedule->start)); $friDateYmd = date('Y-m-d',strtotime('+1 day', strtotime($thursDateYmd))); $saturdayDateYmd = date('Y-m-d',strtotime('+2 days', strtotime($thursDateYmd))); $sundayDateYmd = date('Y-m-d',strtotime('+3 days', strtotime($thursDateYmd))); $mondayDateYmd = date('Y-m-d',strtotime('+4 days', strtotime($thursDateYmd))); $tuesdayDateYmd = date('Y-m-d',strtotime('+5 days', strtotime($thursDateYmd))); $wedDateYmd = date('Y-m-d',strtotime('+6 days', strtotime($thursDateYmd))); $totalUserHours = 0; $friHours = 0; $satHours = 0; $sunHours = 0; $monHours = 0; $tuesHours = 0; $wedHours = 0; $thursHours = 0; @endphp @foreach ($profiles as $profile) @endforeach @endif
Names {{date('l', strtotime($thursDate))}}
{{$thursDate}}
{{date('l', strtotime($friDate))}}
{{$friDate}}
{{date('l', strtotime($saturdayDate))}}
{{$saturdayDate}}
{{date('l', strtotime($sundayDate))}}
{{$sundayDate}}
{{date('l', strtotime($mondayDate))}}
{{$mondayDate}}
{{date('l', strtotime($tuesdayDate))}}
{{$tuesdayDate}}
{{date('l', strtotime($wedDate))}}
{{$wedDate}}
Total Shifts
@if ($profile->autoLogout->count() > 0) @endif {{ $profile->profile_first_name}} {{$profile->profile_last_name}} {{ isset($profile->profileDesignation->name) ? $profile->profileDesignation->name : ''}} scheduleDetails[$thursDate]['shiftId'] !='' && !empty($profile->timeCardProfile)) style="background-color:{{$profile->scheduleDetails[$thursDate]['color']}} ;" @endif> @if(!empty($profile->timeCardProfile)) @foreach ($profile->timeCardProfile as $timeP) @if($timeP->day==$thursDateYmd)

In : {{ date('H:i', strtotime($timeP->time_in)) }}

Out : {{ date('H:i', strtotime($timeP->time_out)) }} @if($timeP->autoLogout) Logged out @endif

Total Hrs : {{ $timeP->total_hours }}

@if($timeP->approved==0) @endif @php $thursHours+=$timeP->total_hours; @endphp @endif @endforeach @endif @if($profile->currently_in == 1 && $profile->loginTimecurrentDate == $thursDateYmd) @if($profile->loginTime != null)

In : {{ date('H:i', strtotime($profile->loginTime->time_in)) }}

@endif @endif
scheduleDetails[$friDate]['shiftId'] !='' && !empty($profile->timeCardProfile)) style="background-color:{{$profile->scheduleDetails[$friDate]['color']}} ;" @endif> @if(!empty($profile->timeCardProfile)) @foreach ($profile->timeCardProfile as $timeP) @if($timeP->day==$friDateYmd)

In : {{ date('H:i', strtotime($timeP->time_in)) }}

Out : {{ date('H:i', strtotime($timeP->time_out)) }} @if($timeP->autoLogout) Logged out @endif

Total Hrs : {{ $timeP->total_hours }}

@if($timeP->approved==0) @endif @php $friHours+=$timeP->total_hours; @endphp @endif @endforeach @endif @if($profile->currently_in == 1 && $profile->loginTimecurrentDate == $friDateYmd) @if($profile->loginTime != null)

In : {{ date('H:i', strtotime($profile->loginTime->time_in)) }}

@endif @endif
scheduleDetails[$saturdayDate]['shiftId'] !='' && !empty($profile->timeCardProfile)) style="background-color:{{$profile->scheduleDetails[$saturdayDate]['color']}} ;" @endif> @if(!empty($profile->timeCardProfile)) @foreach ($profile->timeCardProfile as $timeP) @if($timeP->day==$saturdayDateYmd)

In : {{ date('H:i', strtotime($timeP->time_in)) }}

Out : {{ date('H:i', strtotime($timeP->time_out)) }} @if($timeP->autoLogout) Logged out @endif

Total Hrs : {{ $timeP->total_hours }}

@if($timeP->approved==0) @endif @php $satHours+=$timeP->total_hours; @endphp @endif @endforeach @endif @if($profile->currently_in == 1 && $profile->loginTimecurrentDate == $saturdayDateYmd) @if($profile->loginTime != null)

In : {{ date('H:i', strtotime($profile->loginTime->time_in)) }}

@endif @endif
scheduleDetails[$sundayDate]['shiftId'] !='' && !empty($profile->timeCardProfile)) style="background-color:{{$profile->scheduleDetails[$sundayDate]['color']}} ;" @endif> @if(!empty($profile->timeCardProfile)) @foreach ($profile->timeCardProfile as $timeP) @if($timeP->day==$sundayDateYmd)

In : {{ date('H:i', strtotime($timeP->time_in)) }}

Out : {{ date('H:i', strtotime($timeP->time_out)) }} @if($timeP->autoLogout) Logged out @endif

Total Hrs : {{ $timeP->total_hours }}

@if($timeP->approved==0) @endif @php $sunHours+=$timeP->total_hours; @endphp @endif @endforeach @endif @if($profile->currently_in == 1 && $profile->loginTimecurrentDate == $sundayDateYmd) @if($profile->loginTime != null)

In : {{ date('H:i', strtotime($profile->loginTime->time_in)) }}

@endif @endif
scheduleDetails[$mondayDate]['shiftId'] !='' && !empty($profile->timeCardProfile)) style="background-color:{{$profile->scheduleDetails[$mondayDate]['color']}} ;" @endif> @if(!empty($profile->timeCardProfile)) @foreach ($profile->timeCardProfile as $timeP) @if($timeP->day==$mondayDateYmd)

In : {{ date('H:i', strtotime($timeP->time_in)) }}

Out : {{ date('H:i', strtotime($timeP->time_out)) }} @if($timeP->autoLogout) Logged out @endif

Total Hrs : {{ $timeP->total_hours }}

@if($timeP->approved==0) @endif @php $monHours+=$timeP->total_hours; @endphp @endif @endforeach @endif @if($profile->currently_in == 1 && $profile->loginTimecurrentDate == $mondayDateYmd) @if($profile->loginTime != null)

In : {{ date('H:i', strtotime($profile->loginTime->time_in)) }}

@endif @endif
scheduleDetails[$tuesdayDate]['shiftId'] !='' && !empty($profile->timeCardProfile)) style="background-color:{{$profile->scheduleDetails[$tuesdayDate]['color']}} ;" @endif> @if(!empty($profile->timeCardProfile)) @foreach ($profile->timeCardProfile as $timeP) @if($timeP->day==$tuesdayDateYmd)

In : {{ date('H:i', strtotime($timeP->time_in)) }}

Out : {{ date('H:i', strtotime($timeP->time_out)) }} @if($timeP->autoLogout) Logged out @endif

Total Hrs : {{ $timeP->total_hours }}

@if($timeP->approved==0) @endif @php $tuesHours+=$timeP->total_hours; @endphp @endif @endforeach @endif @if($profile->currently_in == 1 && $profile->loginTimecurrentDate == $tuesdayDateYmd) @if($profile->loginTime != null)

In : {{ date('H:i', strtotime($profile->loginTime->time_in)) }}

@endif @endif
scheduleDetails[$wedDate]['shiftId'] !='' && !empty($profile->timeCardProfile)) style="background-color:{{$profile->scheduleDetails[$wedDate]['color']}} ;" @endif> @if(!empty($profile->timeCardProfile)) @foreach ($profile->timeCardProfile as $timeP) @if($timeP->day==$wedDateYmd)

In : {{ date('H:i', strtotime($timeP->time_in)) }}

Out : {{ date('H:i', strtotime($timeP->time_out)) }} @if($timeP->autoLogout) Logged out @endif

Total Hrs : {{ $timeP->total_hours }}

@if($timeP->approved==0) @endif @php $wedHours+=$timeP->total_hours; @endphp @endif @endforeach @endif @if($profile->currently_in == 1 && $profile->loginTimecurrentDate == $wedDateYmd) @if($profile->loginTime != null)

In : {{ date('H:i', strtotime($profile->loginTime->time_in)) }}

@endif @endif
@php $profileTotalHours=0; if(!empty($profile->timeCardProfile)){ foreach ($profile->timeCardProfile as $timeP){ $profileTotalHours+=$timeP->total_hours; } } $totalUserHours += $profileTotalHours; @endphp

{{ number_format($profileTotalHours,2) }}

Total Hrs : {{ number_format($thursHours,2) }} Total Hrs : {{ number_format($friHours,2) }} Total Hrs : {{ number_format($satHours,2) }} Total Hrs : {{ number_format($sunHours,2) }} Total Hrs : {{ number_format($monHours,2) }} Total Hrs : {{ number_format($tuesHours,2) }} Total Hrs : {{ number_format($wedHours,2) }} {{ number_format($totalUserHours,2) }}