@extends(getTemplate() .'.panel.layouts.panel_layout') @push('styles_top') @endpush @section('content')

{{ trans('panel.favorite_live_classes') }}

@if(!empty($favorites) and !$favorites->isEmpty()) @foreach($favorites as $favorite)
@if($favorite->webinar->type == 'webinar')
@endif
@include(getTemplate() . '.includes.webinar.rate',['rate' => $favorite->webinar->getRate()])
@if($favorite->webinar->bestTicket() < $favorite->webinar->price) {{ handlePrice($favorite->webinar->bestTicket(), true, true, false, null, true) }} {{ handlePrice($favorite->webinar->price, true, true, false, null, true) }} @else {{ handlePrice($favorite->webinar->price, true, true, false, null, true) }} @endif
{{ trans('public.item_id') }}: {{ $favorite->webinar->id }}
{{ trans('public.category') }}: {{ !empty($favorite->webinar->category_id) ? $favorite->webinar->category->title : '' }}
{{ trans('public.duration') }}: {{ convertMinutesToHourAndMinute($favorite->webinar->duration) }} {{ trans('home.hours') }}
@if($favorite->webinar->isWebinar()) {{ trans('public.start_date') }}: @else {{ trans('public.created_at') }}: @endif {{ dateTimeFormat(!empty($favorite->webinar->start_date) ? $favorite->webinar->start_date : $favorite->webinar->created_at,'j M Y') }}
{{ trans('public.instructor') }}: {{ $favorite->webinar->teacher->full_name }}
@endforeach @else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'student.png', 'title' => trans('panel.no_result_favorites'), 'hint' => trans('panel.no_result_favorites_hint') , ]) @endif
{{ $favorites->appends(request()->input())->links('vendor.pagination.panel') }}
@endsection