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

@trans('Courses')

status == 1) disabled>
most_popular == 1) disabled>
most_requested == 1) disabled>
type_course) == '1' ? 'checked' : '' }}>
type_course) == '0' ? 'checked' : '' }}>
@error('type_course')
{{ $message }}
@enderror
 Card image cap
@forelse ($course->distribution as $item) @php // Format the week start and end date using Carbon $weekStart = \Carbon\Carbon::parse($item->start_date)->format('l, Y-m-d'); $weekEnd = \Carbon\Carbon::parse($item->end_date)->format('l, Y-m-d'); @endphp @empty @endforelse
# @trans('City') @trans('Year') @trans('Week') @trans('Currency') @trans('Price') @trans('Repeat')
{{ $loop->index + 1}} {{ $item->city->trans->where('locale', $current_lang)->first()->title }} {{ $item->year->year }} {{ $weekStart }} - {{ $weekEnd}} {{ $item->currency->trans->where('locale', $current_lang)->first()->title}} {{ @$item->price }} {{ $item->repeat}}
@trans('No prices found')
@forelse ($course->courseExtrasPrice as $item) @empty @endforelse
# @trans('Extra Fees') @trans('Price') @trans('Currency')
{{ $loop->index + 1}} {{ $item->courseExtra->trans->where('locale', $current_lang)->first()->title }} {{ $item->price}} {{ $item->currency->trans->where('locale', $current_lang)->first()->title }}
@trans('No prices found')
@forelse ($course->goals as $goal)
@foreach ($goal->trans as $trans) @if ($trans->locale == 'en')
@elseif ($trans->locale == 'ar')
@endif @endforeach
@empty

@trans('No goals available')

@endforelse
@forelse ($course->targets as $target)
@foreach ($target->trans as $trans) @if ($trans->locale == 'en')
@elseif ($trans->locale == 'ar')
@endif @endforeach
@empty

@trans('No target available')

@endforelse
@forelse ($course->dependences as $item) @empty

@trans('No dependences available')

@endforelse
# @trans('Title') @trans('image')
{{ $loop->index + 1 }} {{ $item->trans->where('locale', $current_lang)->first()->title }}
@forelse ($course->trainingProgram as $item) @empty @endforelse
# @trans('Title in English') @trans('Title in Arabic')
{{ $loop->index + 1 }} {{ $item->trans->where('locale', 'en')->first()->title }} {{ $item->trans->where('locale', 'ar')->first()->title }}
@trans('No Course topics found')
@forelse ($course->trainingProgram as $main_topic) @forelse ($main_topic->contents as $item) @empty @endforelse @empty @endforelse
# @trans('Title in English') @trans('Title in Arabic')
{{ $loop->index + 1}} {{ $item->trans->where('locale', 'en')->first()->title }} {{ $item->trans->where('locale', 'ar')->first()->title }}
@trans('No content found')
@forelse ($course->courseRegister as $item) @empty @endforelse
# @trans('Name') @trans('Email') @trans('Phone')
{{ $loop->index + 1 }} {{ @$item->user->first_name }} {{ @$item->user->email}} {{ @$item->user->phone }}
@trans('No users found')
@forelse ($course->feedPayment as $item) @empty @endforelse
# @trans('payment type') @trans('user') @trans('Price') @trans('payment status')
{{ $loop->index + 1 }} {{ @$item->payment_type}} {{ @$item->user->first_name}} {{ @$item->user->last_name}} {{ @$item->price}} {{ @$item->payment_status }}
@trans('No payment fee course')
@endsection @section('script') @endsection