{{-- Breadcrumbs
{{ __('t.dash') }} spa_mode) wire:navigate @endif class="text-gray-400 hover:text-gray-100">{{ __('t.courses') }} {{ __('t.course_details') }}
--}}
{{-- Main Content --}}
@if($purchased)
{{ __('t.you_have_already_purchased_this_course') }}
@endif
{{-- Course Title --}}

{{ $data->title }}

{{-- Course Info --}}

{{ __('t.created_by') }}

{{ $settings->site_name }}

{{ __('t.category') }}

{{ $data->category->name }}

{{ __('t.last_updated') }}

{{ \Carbon\Carbon::parse($data->updated_at)->format('d M, Y') }}

{{-- About Course --}}

{{ __('t.about_course') }}

{{ $data->description }}

{{-- Course Lessons --}}

{{ __('t.course_lessons') }}

@forelse($data->lessons as $lesson)
{{ $lesson->title }}
{{ $lesson->length }} {{ __('t.mins') }}
@if($lesson->preview == 'true') @else @endif
@if(!$loop->last)
@endif
@if($loop->iteration == 5)
{{ $loop->remaining }} {{ __('t.more_lessons', ['count' => $loop->remaining]) }}
@break @endif {{-- Preview Modal --}} @empty
{{ __('t.no_data_available') }}
@endforelse
{{-- Sidebar --}}
{{ __('t.course_image') }}
@if($purchased) spa_mode) wire:navigate @endif class="block w-full bg-theme-primary text-black text-center font-medium px-4 py-3 rounded-lg hover:bg-theme-primary-dark transition-colors"> {{ __('t.watch_lesson') }} @else

{{ !$data->price ? __('t.free') : $settings->currency . number_format($data->price) }}

@endif
{{-- Buy Modal --}}