@include(getTemplate() . '.includes.webinar.rate',['rate' => $item->getRate()])
@if($item->price > 0)
@if($item->bestTicket() < $item->price)
{{ handlePrice($item->bestTicket(), true, true, false, null, true) }}
{{ handlePrice($item->price, true, true, false, null, true) }}
@else
{{ handlePrice($item->price, true, true, false, null, true) }}
@endif
@else
{{ trans('public.free') }}
@endif
@if(!empty($sale->gift_id) and $sale->buyer_id == $authUser->id)
{{ trans('update.gift_status') }}:
@if(!empty($sale->gift_date) and $sale->gift_date > time())
{{ trans('public.pending') }}
@else
{{ trans('update.sent') }}
@endif
@else
{{ trans('public.item_id') }}:
{{ $item->id }}
@endif
@if(!empty($sale->gift_id))
{{ trans('update.gift_receive_date') }}:
{{ (!empty($sale->gift_date)) ? dateTimeFormat($sale->gift_date, 'j M Y H:i') : trans('update.instantly') }}
@else
{{ trans('public.category') }}:
{{ !empty($item->category_id) ? $item->category->title : '' }}
@endif
@if(!empty($sale->webinar) and $item->type == 'webinar')
@if($item->isProgressing() and !empty($nextSession))
{{ trans('webinars.next_session_duration') }}:
{{ convertMinutesToHourAndMinute($nextSession->duration) }} Hrs
{{ trans('webinars.next_session_start_date') }}:
{{ dateTimeFormat($nextSession->date,'j M Y') }}
@else
{{ trans('public.duration') }}:
{{ convertMinutesToHourAndMinute($item->duration) }} Hrs
{{ trans('public.start_date') }}:
{{ dateTimeFormat($item->start_date,'j M Y') }}
@endif
@elseif(!empty($sale->bundle))
{{ trans('public.duration') }}:
{{ convertMinutesToHourAndMinute($item->getBundleDuration()) }} Hrs
@endif
@if(!empty($sale->gift_id) and $sale->buyer_id == $authUser->id)
{{ trans('update.receipt') }}:
{{ $sale->gift_recipient }}
@else
{{ trans('public.instructor') }}:
{{ $item->teacher->full_name }}
@endif
@if(!empty($sale->gift_id) and $sale->buyer_id != $authUser->id)
{{ trans('update.gift_sender') }}:
{{ $sale->gift_sender }}
@else
{{ trans('panel.purchase_date') }}:
{{ dateTimeFormat($sale->created_at,'j M Y') }}
@endif