التصوير

جدول التصوير

اختر يومًا لجدولة التصوير وإضافة التفاصيل

{{-- Calendar --}}

{{ $monthNames[$currentMonth] }} {{ $currentYear }}

@foreach ($dayLabels as $label) @endforeach @foreach ($calendar as $week) @foreach ($week as $cell) @php $count = count($this->lecturesByDate[$cell['date']] ?? []); $isToday = $cell['date'] === $this->today; $isCurrent = $cell['current']; $isFuture = $cell['date'] >= $this->today; $isDisabled = !$isCurrent || !$isFuture; $hasLectures = $count > 0 && $isCurrent && $isFuture; @endphp @endforeach @endforeach
{{ $label }}
@php $cellStyle = ''; if ($isToday) { $cellStyle = 'background:rgb(10,46,115);color:white;font-weight:800;box-shadow:0 10px 15px -3px rgba(10,46,115,0.3)'; } elseif ($hasLectures) { $cellStyle = 'background:rgba(59,130,246,0.9);color:white;font-weight:700;box-shadow:0 4px 6px -1px rgba(59,130,246,0.2)'; } elseif ($isDisabled) { $cellStyle = 'background:rgba(255,255,255,0.08);color:rgba(255,255,255,0.3);font-weight:400'; } else { $cellStyle = 'color:white;font-weight:600'; } @endphp @if(!$isDisabled)
{{ $cell['day'] }} @if ($hasLectures) {{ $count }} {{ $count === 1 ? 'محاضرة' : 'محاضرات' }} @endif
{{-- Modal: 24 Hours --}}
📅

{{ $selectedDate }}

اختر ساعة للجدولة

@for ($row = 0; $row < 4; $row++) @for ($col = 0; $col < 6; $col++) @php $idx = $row * 6 + $col; $hour = isset($allHours[$idx]) ? $allHours[$idx] : null; $hasLectures = $hour && isset($hoursWithLectures[$hour]); $count = $hasLectures ? count($hoursWithLectures[$hour]) : 0; @endphp @endfor @endfor
@if ($hour)
{{ $hour }}:00 @if ($hasLectures) {{ $count }} {{ $count === 1 ? 'محاضرة' : 'محاضرات' }} @endif
@endif
{{-- Modal: Hour Details --}}
{{ $selectedHour }}:00

{{ $selectedDate }}

{{ count($detailLectures) }} {{ count($detailLectures) === 1 ? 'محاضرة' : 'محاضرات' }}

{{-- Add Form --}}

إضافة محاضرة

{{-- Lectures --}} @if (count($detailLectures) > 0)
@foreach ($detailLectures as $lecture) @php $statusLabels = ['planned'=>'مخطط','confirmed'=>'مؤكد','shooting'=>'جاري التصوير','shot'=>'تم التصوير','raw_delivered'=>'تم التسليم','cancelled'=>'ملغي']; $statusColors = ['planned'=>'bg-gray-100 text-gray-600','confirmed'=>'bg-blue-100 text-blue-700','shooting'=>'bg-amber-100 text-amber-700','shot'=>'bg-green-100 text-green-700','raw_delivered'=>'bg-emerald-100 text-emerald-700','cancelled'=>'bg-red-100 text-red-500']; $dotColors = ['planned'=>'bg-gray-400','confirmed'=>'bg-blue-500','shooting'=>'bg-amber-500','shot'=>'bg-green-500','raw_delivered'=>'bg-emerald-500','cancelled'=>'bg-red-400']; @endphp
{{ $lecture->title }} {{ $statusLabels[$lecture->shooting_status] ?? '' }}
@if ($lecture->teacher_name) 👨‍🏫 {{ $lecture->teacher_name }} @endif @if ($lecture->course_name) 📚 {{ $lecture->course_name }} @endif @if ($lecture->lecture_no) #{{ $lecture->lecture_no }} @endif
@endforeach
@else
📭

لا توجد محاضرات

أضف محاضرة باستخدام النموذج أعلاه

@endif
{{-- Notifications --}}