@extends('layouts.app') @php $locale = app()->getLocale(); $isRtl = $locale === 'ar'; @endphp @section('title', $isRtl ? 'حجوزات الحصص' : 'Class Bookings') @section('content')
| {{ $isRtl ? 'التاريخ' : 'Date' }} | {{ $isRtl ? 'الحصة' : 'Class' }} | {{ $isRtl ? 'العضو' : 'Member' }} | {{ $isRtl ? 'الحالة' : 'Status' }} | {{ $isRtl ? 'إجراءات' : 'Actions' }} |
|---|---|---|---|---|
| {{ $booking->booking_date?->format('Y-m-d') ?? '—' }} |
{{ $isRtl && ($booking->classSchedule->gymClass->name_ar ?? null) ? $booking->classSchedule->gymClass->name_ar : ($booking->classSchedule->gymClass->name ?? '—') }} {{ $booking->classSchedule->start_time ? \Carbon\Carbon::parse($booking->classSchedule->start_time)->format('H:i') : '—' }} - {{ $booking->classSchedule->end_time ? \Carbon\Carbon::parse($booking->classSchedule->end_time)->format('H:i') : '—' }} |
{{ $booking->member->full_name ?? '—' }} {{ $booking->member->member_id ?? '' }} |
{{ $statusLabels[$booking->status] ?? $booking->status }} |
@if($booking->status === 'booked')
@else
—
@endif
|
| {{ $isRtl ? 'لا توجد حجوزات' : 'No bookings found' }} | ||||