@extends('layouts.app') @php $locale = app()->getLocale(); $isRtl = $locale === 'ar'; $currency = \App\Models\Setting::currencyLabel($locale); $dayLabels = [ 'sunday' => $isRtl ? 'الأحد' : 'Sunday', 'monday' => $isRtl ? 'الاثنين' : 'Monday', 'tuesday' => $isRtl ? 'الثلاثاء' : 'Tuesday', 'wednesday' => $isRtl ? 'الأربعاء' : 'Wednesday', 'thursday' => $isRtl ? 'الخميس' : 'Thursday', 'friday' => $isRtl ? 'الجمعة' : 'Friday', 'saturday' => $isRtl ? 'السبت' : 'Saturday', ]; @endphp @section('title', ($isRtl ? 'تفاصيل الحصة' : 'Class Details') . ' - ' . ($isRtl && $gymClass->name_ar ? $gymClass->name_ar : $gymClass->name)) @section('content')
{{ $gymClass->description }}
@endif{{ $isRtl ? 'السعر' : 'Price' }}
{{ number_format((float)$gymClass->price, 2) }} {{ $currency }}
{{ $isRtl ? 'المدة' : 'Duration' }}
{{ $gymClass->duration_minutes }} {{ $isRtl ? 'دقيقة' : 'min' }}
{{ $isRtl ? 'السعة' : 'Capacity' }}
{{ $gymClass->capacity }} {{ $isRtl ? 'عضو' : 'members' }}
{{ $isRtl ? 'مواعيد الحصة خلال الأسبوع' : 'Weekly schedule' }}
| {{ $isRtl ? 'اليوم' : 'Day' }} | {{ $isRtl ? 'الوقت' : 'Time' }} | {{ $isRtl ? 'القاعة' : 'Room' }} | {{ $isRtl ? 'المدرب' : 'Trainer' }} | {{ $isRtl ? 'إجراءات' : 'Actions' }} |
|---|---|---|---|---|
| {{ $dayLabels[$schedule->day_of_week] ?? $schedule->day_of_week }} | {{ $schedule->start_time ? \Carbon\Carbon::parse($schedule->start_time)->format('H:i') : '—' }} - {{ $schedule->end_time ? \Carbon\Carbon::parse($schedule->end_time)->format('H:i') : '—' }} | {{ $schedule->room ?? '—' }} | {{ $schedule->trainer?->full_name ?? ($gymClass->trainer?->full_name ?? '—') }} |
|
| {{ $isRtl ? 'لا توجد مواعيد' : 'No schedules yet' }} | ||||