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

{{!empty($webinar) ?trans('/admin/main.edit'): trans('admin/main.new') }} {{ trans('admin/main.class') }}

{{ csrf_field() }}

{{ trans('public.basic_information') }}

@if(!empty(getGeneralSettings('content_translate')))
@error('locale')
{{ $message }}
@enderror
@else @endif
@error('type')
{{ $message }}
@enderror
@error('title')
{{ $message }}
@enderror
@error('points')
{{ $message }}
@enderror
{{ trans('admin/main.class_url_hint') }}
@error('slug')
{{ $message }}
@enderror
@if(!empty($webinar) and $webinar->creator->isOrganization())
@endif
@error('teacher_id')
{{ $message }}
@enderror
{{ trans('admin/main.seo_description_hint') }}
@error('seo_description')
{{ $message }}
@enderror
@error('thumbnail')
{{ $message }}
@enderror
@error('image_cover')
{{ $message }}
@enderror
@error('video_demo')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror

{{ trans('public.additional_information') }}

@error('capacity')
{{ $message }}
@enderror
@if(empty($webinar) or (!empty($webinar) and $webinar->isWebinar()))
@error('start_date')
{{ $message }}
@enderror
@endif
@error('duration')
{{ $message }}
@enderror
@if(getFeaturesSettings('timezone_in_create_webinar')) @php $selectedTimezone = getGeneralSettings('default_time_zone'); if (!empty($webinar) and !empty($webinar->timezone)) { $selectedTimezone = $webinar->timezone; } @endphp
@error('timezone')
{{ $message }}
@enderror
@endif @if(!empty($webinar) and $webinar->creator->isOrganization())
private) ? 'checked' : '' }}>
@endif
support ? 'checked' : '' }}>
certificate ? 'checked' : '' }}>
downloadable ? 'checked' : '' }}>
partner_instructor ? 'checked' : '' }}>
forum ? 'checked' : '' }}>
subscribe ? 'checked' : '' }}>
private) ? 'checked' : '' }}>
enable_waitlist) ? 'checked' : '' }}>
@error('access_days')
{{ $message }}
@enderror

- {{ trans('update.access_days_input_hint') }}

@error('price')
{{ $message }}
@enderror
@if(!empty($webinar) and $webinar->creator->isOrganization())
@error('organization_price')
{{ $message }}
@enderror

- {{ trans('update.organization_price_hint') }}

@endif
{{ trans('admin/main.select_a_partner_hint') }}
@error('category_id')
{{ $message }}
@enderror
{{ trans('public.category_filters') }}
@if(!empty($webinarCategoryFilters) and count($webinarCategoryFilters)) @foreach($webinarCategoryFilters as $filter)
{{ $filter->title }}
@foreach($filter->options as $option)
id,$webinarFilterOptions)) ? 'checked' : '') }} class="custom-control-input" id="filterOptions{{ $option->id }}">
@endforeach
@endforeach @endif
@if(!empty($webinar))

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

@if(!empty($tickets) and !$tickets->isEmpty())
@foreach($tickets as $ticket) @endforeach
{{ trans('public.title') }} {{ trans('public.discount') }} {{ trans('public.capacity') }} {{ trans('public.date') }}
{{ $ticket->title }} {{ $ticket->discount }}% {{ $ticket->capacity }} {{ dateTimeFormat($ticket->start_date,'j F Y') }} - {{ (new DateTime())->setTimestamp($ticket->end_date)->format('j F Y') }} @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/tickets/'. $ticket->id .'/delete', 'btnClass' => ' mt-1'])
@else @include('admin.includes.no-result',[ 'file_name' => 'ticket.png', 'title' => trans('public.ticket_no_result'), 'hint' => trans('public.ticket_no_result_hint'), ]) @endif
@include('admin.webinars.create_includes.contents')

{{ trans('public.prerequisites') }}

@if(!empty($prerequisites) and !$prerequisites->isEmpty())
@foreach($prerequisites as $prerequisite) @if(!empty($prerequisite->prerequisiteWebinar->title)) @endif @endforeach
{{ trans('public.title') }} {{ trans('public.instructor') }} {{ trans('public.price') }} {{ trans('public.publish_date') }} {{ trans('public.forced') }}
{{ $prerequisite->prerequisiteWebinar->title }} {{ $prerequisite->prerequisiteWebinar->teacher->full_name }} {{ handlePrice($prerequisite->prerequisiteWebinar->price) }} {{ dateTimeFormat($prerequisite->prerequisiteWebinar->created_at,'j F Y | H:i') }} {{ $prerequisite->required ? trans('public.yes') : trans('public.no') }} @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/prerequisites/'. $prerequisite->id .'/delete', 'btnClass' => ' mt-1'])
@else @include('admin.includes.no-result',[ 'file_name' => 'comment.png', 'title' => trans('public.prerequisites_no_result'), 'hint' => trans('public.prerequisites_no_result_hint'), ]) @endif

{{ trans('public.faq') }}

@if(!empty($faqs) and !$faqs->isEmpty())
@foreach($faqs as $faq) @endforeach
{{ trans('public.title') }} {{ trans('public.answer') }}
{{ $faq->title }} @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/faqs/'. $faq->id .'/delete', 'btnClass' => ' mt-1'])
@else @include('admin.includes.no-result',[ 'file_name' => 'faq.png', 'title' => trans('public.faq_no_result'), 'hint' => trans('public.faq_no_result_hint'), ]) @endif
@foreach(\App\Models\WebinarExtraDescription::$types as $webinarExtraDescriptionType)

{{ trans('update.'.$webinarExtraDescriptionType) }}

@php $webinarExtraDescriptionValues = $webinar->webinarExtraDescription->where('type',$webinarExtraDescriptionType); @endphp
@if(!empty($webinarExtraDescriptionValues) and count($webinarExtraDescriptionValues))
@if($webinarExtraDescriptionType == \App\Models\WebinarExtraDescription::$COMPANY_LOGOS) @else @endif @foreach($webinarExtraDescriptionValues as $extraDescription) @if($webinarExtraDescriptionType == \App\Models\WebinarExtraDescription::$COMPANY_LOGOS) @else @endif @endforeach
{{ trans('admin/main.icon') }}{{ trans('public.title') }}
{{ $extraDescription->value }} @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/webinar-extra-description/'. $extraDescription->id .'/delete', 'btnClass' => ' mt-1'])
@else @include('admin.includes.no-result',[ 'file_name' => 'faq.png', 'title' => trans("update.{$webinarExtraDescriptionType}_no_result"), 'hint' => trans("update.{$webinarExtraDescriptionType}_no_result_hint"), ]) @endif
@endforeach

{{ trans('public.quiz_certificate') }}

@if(!empty($webinarQuizzes) and !$webinarQuizzes->isEmpty())
@foreach($webinarQuizzes as $webinarQuiz) @endforeach
{{ trans('public.title') }} {{ trans('public.questions') }} {{ trans('public.total_mark') }} {{ trans('public.pass_mark') }} {{ trans('public.certificate') }}
{{ $webinarQuiz->title }} {{ $webinarQuiz->quizQuestions->count() }} {{ $webinarQuiz->quizQuestions->sum('grade') }} {{ $webinarQuiz->pass_mark }} {{ $webinarQuiz->certificate ? trans('public.yes') : trans('public.no') }} @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/webinar-quiz/'. $webinarQuiz->id .'/delete', 'btnClass' => ' mt-1'])
@else @include('admin.includes.no-result',[ 'file_name' => 'cert.png', 'title' => trans('public.quizzes_no_result'), 'hint' => trans('public.quizzes_no_result_hint'), ]) @endif
@endif

{{ trans('public.message_to_reviewer') }}

@if(!empty($webinar)) @include('admin.includes.delete_button',[ 'url' => getAdminPanelUrl().'/webinars/'. $webinar->id .'/delete', 'btnText' => trans('public.delete'), 'hideDefaultClass' => true, 'btnClass' => 'btn btn-danger' ]) @endif
@include('admin.webinars.modals.prerequisites') @include('admin.webinars.modals.quizzes') @include('admin.webinars.modals.ticket') @include('admin.webinars.modals.chapter') @include('admin.webinars.modals.session') @include('admin.webinars.modals.file') @include('admin.webinars.modals.interactive_file') @include('admin.webinars.modals.faq') @include('admin.webinars.modals.testLesson') @include('admin.webinars.modals.assignment') @include('admin.webinars.modals.extra_description')
@endsection @push('scripts_bottom') @endpush