@extends($layout_path) @section('title', $app_setting['name'] . ' | ' . __('Course Overview')) @section('header-title')

{{ __('Course Overview') }}

@endsection @section('content')
{{-- top --}}

{{ __('published on') }} {{ $course?->created_at->diffForHumans() }}

{{ $course?->category?->title }}

{{ $course?->title }}

Edit Course

Views : {{ $course->view_count }}

{{ currency($course?->regular_price) }}
{{ __('Regular Price') }}
icon
{{ currency($course?->price ?? 0.0) }}
{{ __('Offer Price') }}
icon
{{ $enrollments }}
{{ __('Total Enrollments') }} ({{ __('Lifetime') }})
icon
{{ currency($transactions) }}
{{ __('Total Transaction Amount') }}
icon
{{-- ABOUT TAB --}}
@php $descriptions = json_decode($course->description); @endphp @if (!empty($descriptions)) @foreach (json_decode($course->description) as $description)
{{ $description->heading }}

{!! $description->body !!}

@endforeach @endif
{{-- ABOUT TAB --}} {{-- LESSION START --}}

{{ __('Lessions') }}

@forelse ($chapters as $chapter)

@forelse ($chapter->contents as $content)
{{ $content->title }}.
@php $totalDuration = $content->duration; $hours = floor($totalDuration / 60); $minutes = $totalDuration % 60; @endphp @if ($hours > 0 && $minutes > 0) {{ $hours ?? 0 }} {{ __('hours') }} {{ $minutes }} {{ __('minutes') }} @else {{ $totalDuration ?? 0 }} {{ __('minutes') }} @endif
@empty
{{ __('no content found') }}!!
@endforelse
@empty
{{ __('no course found') }}!!
@endforelse
{{-- LESSION END --}} {{-- REVIEW START --}}

{{ __('Reviews') }}

@forelse ($reviews as $review)
{{ $review?->user?->name }} 7
{{ \Carbon\Carbon::parse($review?->created_at)->format('d M Y') }}

{{ $review?->comment }}

@empty
{{ __('no students found') }}!!
@endforelse
{{-- REVIEW END --}} {{-- students start --}}

{{ __('Students') }}

@forelse ($students as $student)
{{ $student?->user?->name }} {{ $student?->user?->phone }}
{{ \Carbon\Carbon::parse($student?->created_at)->format('d M Y') }}
@empty
{{ __('no students found') }}!!
@endforelse {{ $students->links() }}
{{-- students end --}}
img
{{ __('Total Class') }}
{{--
7
--}} {{ $countClass }}
{{ __('Total Duration') }}
@php $totalDuration = $durationCount; $hours = floor($totalDuration / 60); $minutes = $totalDuration % 60; @endphp @if ($hours > 0) {{ $hours }} {{ __('hours') }} @endif @if ($minutes > 0) {{ $minutes ?? 0 }} {{ __('minutes') }} @endif @if ($hours == 0 && $minutes == 0) N/A @endif
{{ __('Total Videos') }}
{{ $videoCount }}
{{ __('Total Audios') }}
{{ $audioCount }}
{{ __('Total Images') }}
{{ $imageCount }}
{{ __('Total Free Chapter') }}
{{ $freeContentCount }}

{{ __('Total Course Price') }}

@if ($course?->price && $course?->regular_price)

{{ currency($course?->price) }} {{ currency($course?->regular_price) }}

@else

{{ currency($course?->regular_price) }}

@endif
{{-- bottom --}}
@endsection