@extends('layouts.app') @push('styles') @endpush @push('title') ניהול נוכחות עובדים @endpush @push('pg_btn') חזרה @endpush @php $days = [ 'Sunday' => 'יום ראשון', 'Monday' => 'יום שני', 'Tuesday' => 'יום שלישי', 'Wednesday' => 'יום רבעי', 'Thursday' => 'יום חמישי', 'Friday' => 'יום שישי', 'Saturday' => 'יום שבת', ] @endphp @section('content')
@csrf
@if($project && $daysCount && request('crane') )
@for ($day = 1; $day <=$daysCount ; $day++) @php $attendance = null; $date = request('month',session('mainDate')).'-'.str_pad($day,2,'0',STR_PAD_LEFT); $dayname = date('l', strtotime($date)); if ($projectAttendance){ $attendance = $projectAttendance->where('date', $date)->first(); } @endphp @if($dayname != "Saturday") $attendance, 'table-danger' => $dayname == "Saturday",])> @endif @endfor @foreach ($extraAttendance as $extra) @endforeach
# תאריל יום עובד מספר השעות

סך הכול שעות: 0

{{$day}} {{$date}} {{$days[$dayname]}} {{$attendance?->worker?->name ?? ''}}- {{$attendance?->worker?->identification}} {{ $attendance?->hour_work_count ?? '0' }} שעות
{{($day+$loop->index)}} {{$extra->date}} {{$extra->worker?->name}}- {{$extra->worker?->identification}} {{ $extra->hour_work_count ??'' }} שעות
@endif
@endsection @push('scripts') @endpush