@php $locale = app()->getLocale(); $isRtl = $locale === 'ar'; $dayLabels = [ 'sunday' => $isRtl ? 'الأحد' : 'Sunday', 'monday' => $isRtl ? 'الإثنين' : 'Monday', 'tuesday' => $isRtl ? 'الثلاثاء' : 'Tuesday', 'wednesday' => $isRtl ? 'الأربعاء' : 'Wednesday', 'thursday' => $isRtl ? 'الخميس' : 'Thursday', 'friday' => $isRtl ? 'الجمعة' : 'Friday', 'saturday' => $isRtl ? 'السبت' : 'Saturday', ]; $order = array_keys($dayLabels); $schedules = $schedules ?? collect(); @endphp @extends('layouts.app') @section('title', $isRtl ? 'جدول المدرب' : 'Trainer Schedule') @section('content')
{{ $schedule->gymClass->name ?? ($isRtl ? 'حصة' : 'Class') }}
{{ $isRtl ? 'القاعة:' : 'Room:' }} {{ $schedule->room ?: '—' }}
{{ \Carbon\Carbon::parse($schedule->start_time)->format('H:i') }} - {{ \Carbon\Carbon::parse($schedule->end_time)->format('H:i') }}
{{ $schedule->is_active ? ($isRtl ? 'نشط' : 'Active') : ($isRtl ? 'غير نشط' : 'Inactive') }}