@if($timesheets->isNotEmpty()) @foreach($timesheets as $timesheet) {{ $timesheet->sub_code }} {{ $timesheet->timesheet_date }} {{ $timesheet->item_code }} {{ $timesheet->activity }} {{ $timesheet->peoples }} {{ $timesheet->allocated_hour }} {{ $timesheet->spent_hour }} {{ $timesheet->total_spent_hour }} @php $tsh = strtok($timesheet->total_spent_hour, ':'); $ah = strtok($timesheet->allocated_hour, ':'); @endphp @if($tsh > $ah) {{ $timesheet->remaining_hour }} @else {{ $timesheet->remaining_hour }} @endif @if(auth()->user()->can('access', 'timesheets add')) @endif @if($timesheet->timesheetMaterials->isNotEmpty()) @foreach($timesheet->timesheetMaterials as $timesheetMaterial) @endforeach @endif @isset($timesheet->notes) @endisset @if($timesheet->timesheetFiles->isNotEmpty()) @endif
Lab Code Operative Start Time End Time Hours Rate
{{ $timesheetMaterial->lab_code }} {{ $timesheetMaterial->operative }} {{ $timesheetMaterial->start_time }} {{ $timesheetMaterial->end_time }} {{ $timesheetMaterial->hours }} {{ $timesheetMaterial->rate }}
Note:{{ $timesheet->notes }}
Files:
@endforeach @endif