@extends('dashboard.layouts.master') @section('css') @endsection @section('breadcrumb')

الشيفتات

ارسال الشيفتات
@endsection @section('content')
@foreach($days as $day => $shifts)
{{$day}}
@if($day >= date('Y-m-d'))
@csrf
@error('work_shift_id') {{ $message }} @enderror
@error('admin_id') {{ $message }} @enderror
@endif @if($day == date('Y-m-d')) @else
@endif @foreach($shifts as $shift) {{----}} {{-- --}} @endforeach
الصف الدراسي الشيفت الادمن الوقت العدد اخر اكشن #
{{$shift->workShift->from_time}} - {{$shift->workShift->to_time}} @if(in_array(auth()->user()->id, [16,35,1]) ) @else {{$shift->admin->name}} @endif @if($shift->started_at && !$shift->ended_at) @if(!$shift->canRequestNew() || $shift->admin->last_action > \Carbon\Carbon::now()->subMinutes(15)->toDateTimeString())
{{$currentWorker->admin->name ?? ''}}
@else
{{$currentWorker->admin->name ?? ''}}
@endif @endif {{$shift->started_at??'لم يبدا'}} - {{$shift->ended_at ?? 'لم ينتهي'}}
{{$shift->questions->count()}}/{{$shift->outQuestionsCount()}}{{$shift->questions->count()}} ({{$shift->postpondQuestions->count()}}) {{$shift->ended_at}} @if($shift->started_at == null) حذف @endif @if($shift->started_at && !$shift->ended_at) دعم ايقاف الشيفت @endif @if($shift->started_at && $shift->ended_at && $shift->to_time > now()) الرجوع للشيفت @endif
@endforeach @endsection @section('script') @endsection