@extends('admin.master') @section('title',@trans('Course Registration')) @section('content')

@trans('Course Registration')

@include('admin.pages.course_register._model_search')
@forelse ($course_registers as $item) @php // تحديد النص واللون بناءً على حالة الدفع switch ($item->payment_status) { case 'pending': $statusText = __('Pending'); $statusClass = 'text-primary'; break; case 'completed': $statusText = __('Completed'); $statusClass = 'text-success'; break; default: $statusText = __('Failed'); $statusClass = 'text-danger'; break; } @endphp @empty @endforelse
# @trans('Course Title') @trans('City') @trans('Price') @trans('Currency') @trans('Name') @trans('Email') @trans('Phone') @trans('Status') @trans('Payment Status') @trans('Registration date') @trans('Settings')
{{ $loop->index + 1 }} {{ @$item->course->trans->where('locale', $current_lang)->first()->title }} @if($item->distribution) {{ @$item->distribution->city->trans->where('locale', $current_lang)->first()->title}} @else no city @endif {{ $item->price}} {{ $item->currency}} {{ @$item->user->first_name }} {{ @$item->user->last_name }} {{ @$item->user->email }} {{ @$item->user->phone }} {{ $item->status }} @if ($item->payment_status == 'pending') @trans('Pending') @elseif ($item->payment_status == 'completed') @trans('Completed') @else @trans('Failed') @endif {{ $item->created_at->format('Y-m-d') }} @include('admin.pages.course_register._model_delete', ['id' => $item->id]) @include('admin.pages.course_register._model_registration_confirmation', ['id' => $item->id])
@trans('No courses register found')
@endsection @section('script') @endsection