@extends('layouts.main') @section('content')
| Names | Monday {{$mondayDate}} |
Tuesday {{$tuesdayDate}} |
Wednesday {{$wedDate}} |
Thursday {{$thursDate}} |
Friday {{$friDate}} |
Saturday {{$saturdayDate}} |
Sunday {{$sundayDate}} |
Total Shifts |
|---|---|---|---|---|---|---|---|---|
| @if ($profile->autoLogout->count() > 0) @endif {{ $profile->profile_first_name}} {{$profile->profile_last_name}} {{ isset($profile->profileDesignation->name) ? $profile->profileDesignation->name : ''}} | 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 }} |
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 }} |
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 }} |
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 }} |
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 }} |
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 }} |
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 }} |
@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($monHours,2) }} | Total Hrs : {{ number_format($tuesHours,2) }} | Total Hrs : {{ number_format($wedHours,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) }} | {{ number_format($totalUserHours,2) }} |