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

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

{{ csrf_field() }}

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

@if(!empty(getGeneralSettings('content_translate')))
@error('locale')
{{ $message }}
@enderror
@else @endif
@error('title')
{{ $message }}
@enderror
{{ trans('update.product_points_hint') }}
@error('points')
{{ $message }}
@enderror
{{ trans('update.bundle_url_hint') }}
@error('slug')
{{ $message }}
@enderror
@if(!empty($bundle) and $bundle->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') }}

subscribe ? 'checked' : '' }}>
@error('access_days')
{{ $message }}
@enderror

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

@error('price')
{{ $message }}
@enderror
@error('category_id')
{{ $message }}
@enderror
{{ trans('public.category_filters') }}
@if(!empty($bundleCategoryFilters) and count($bundleCategoryFilters)) @foreach($bundleCategoryFilters as $filter)
{{ $filter->title }}
@foreach($filter->options as $option)
id,$bundleFilterOptions)) ? 'checked' : '') }} class="custom-control-input" id="filterOptions{{ $option->id }}">
@endforeach
@endforeach @endif
@if(!empty($bundle))

{{ 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' => '/admin/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

{{ trans('product.courses') }}

@if(!empty($bundleWebinars) and !$bundleWebinars->isEmpty())
@foreach($bundleWebinars as $bundleWebinar) @if(!empty($bundleWebinar->webinar->title)) @endif @endforeach
{{ trans('public.title') }} {{ trans('public.instructor') }} {{ trans('public.price') }} {{ trans('public.publish_date') }}
{{ $bundleWebinar->webinar->title }} {{ $bundleWebinar->webinar->teacher->full_name }} {{ addCurrencyToPrice(handlePriceFormat($bundleWebinar->webinar->price)) }} {{ dateTimeFormat($bundleWebinar->webinar->created_at,'j F Y | H:i') }} @include('admin.includes.delete_button',['url' => '/admin/bundle-webinars/'. $bundleWebinar->id .'/delete', 'btnClass' => ' mt-1'])
@else @include('admin.includes.no-result',[ 'file_name' => 'comment.png', 'title' => trans('update.bundle_webinar_no_result'), 'hint' => trans('update.bundle_webinar_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' => '/admin/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
@endif

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

@if(!empty($bundle)) @include('admin.includes.delete_button',[ 'url' => '/admin/bundles/'. $bundle->id .'/delete', 'btnText' => trans('public.delete'), 'hideDefaultClass' => true, 'btnClass' => 'btn btn-danger' ]) @endif
@include('admin.bundles.modals.bundle-webinar') @include('admin.bundles.modals.ticket') @include('admin.bundles.modals.faq')
@endsection @push('scripts_bottom') @endpush