@extends('admin.layouts.app') @push('libraries_top') @endpush @section('content')

{{ trans('admin/main.type_'.$classesType.'s') }} {{trans('admin/main.list')}}

{{trans('admin/main.total')}} {{ trans('admin/main.type_'.$classesType.'s') }}

{{ $totalWebinars }}

{{trans('admin/main.pending_review')}} {{ trans('admin/main.type_'.$classesType.'s') }}

{{ $totalPendingWebinars }}
@if($classesType == 'webinar')

{{trans('admin/main.inprogress_live_classes')}}

{{ $inProgressWebinars }}
@else

{{trans('admin/main.total_durations')}}

{{ convertMinutesToHourAndMinute($totalDurations) }} {{ trans('home.hours') }}
@endif

{{trans('admin/main.total_sales')}}

{{ $totalSales }}
@can('admin_webinars_export_excel') @endcan
@if($classesType == 'webinar') @else @endif @foreach($webinars as $webinar) @if($classesType == 'webinar') @else @endif @endforeach
{{trans('admin/main.id')}} {{trans('admin/main.title')}} {{trans('admin/main.instructor')}} {{trans('admin/main.price')}} {{trans('admin/main.sales')}} {{trans('admin/main.income')}} {{trans('admin/main.students_count')}} {{trans('admin/main.created_at')}}{{trans('admin/main.start_date')}}{{trans('admin/main.updated_at')}}{{trans('admin/main.status')}} {{trans('admin/main.actions')}}
{{ $webinar->id }} {{ $webinar->title }} @if(!empty($webinar->category->title))
{{ $webinar->category->title }}
@else
{{trans('admin/main.no_category')}}
@endif
{{ $webinar->teacher->full_name }} @if(!empty($webinar->price) and $webinar->price > 0) {{ handlePrice($webinar->price, true, true) }} @if($webinar->getDiscountPercent() > 0)
{{ $webinar->getDiscountPercent() }}% {{trans('admin/main.off')}}
@endif @else {{ trans('public.free') }} @endif
{{ $webinar->sales->count() }} @if(!empty($webinar->capacity))
{{trans('admin/main.capacity')}} : {{ $webinar->getWebinarCapacity() }}
@endif
{{ handlePrice($webinar->sales->sum('total_amount')) }} {{ $webinar->sales->count() }} {{ dateTimeFormat($webinar->created_at, 'Y M j | H:i') }}{{ dateTimeFormat($webinar->start_date, 'Y M j | H:i') }}{{ dateTimeFormat($webinar->updated_at, 'Y M j | H:i') }} @switch($webinar->status) @case(\App\Models\Webinar::$active)
{{ trans('admin/main.published') }}
@if($webinar->isWebinar()) @if($webinar->isProgressing())
({{ trans('webinars.in_progress') }})
@elseif($webinar->start_date > time())
({{ trans('admin/main.not_conducted') }})
@else
({{ trans('public.finished') }})
@endif @endif @break @case(\App\Models\Webinar::$isDraft) {{ trans('admin/main.is_draft') }} @break @case(\App\Models\Webinar::$pending) {{ trans('admin/main.waiting') }} @break @case(\App\Models\Webinar::$inactive) {{ trans('public.rejected') }} @break @endswitch
@endsection @push('scripts_bottom') @endpush