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

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

@if (\Session::has('msg'))
@endif
{{ csrf_field() }}
@if(!empty($specialOffers) and $specialOffers->count() > 0)

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

get('active_discounts', '') == 'on' ? 'checked' : '' }} id="activeDiscountsSwitch">
@foreach($specialOffers as $specialOffer) @endforeach
{{ trans('panel.name') }} {{ trans('panel.webinar') }} {{ trans('panel.amount') }} {{ trans('public.status') }} {{ trans('public.from') }} {{ trans('public.to') }}
{{ $specialOffer->name }} {{ $specialOffer->webinar->title }} {{ $specialOffer->percent }}% @switch($specialOffer->status) @case(\App\Models\SpecialOffer::$active) {{ trans('public.active') }} @break @case(\App\Models\SpecialOffer::$inactive) {{ trans('public.inactive') }} @break @endswitch {{ dateTimeFormat($specialOffer->from_date, 'j M Y | H:i') }} {{ dateTimeFormat($specialOffer->to_date, 'j M Y | H:i') }} @if($specialOffer->status != \App\Models\SpecialOffer::$inactive) @endif
{{ $specialOffers->appends(request()->input())->links('vendor.pagination.panel') }}
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'offer.png', 'title' => trans('panel.discount_no_result'), 'hint' => nl2br(trans('panel.discount_no_result_hint')) , ]) @endif @endsection @push('scripts_bottom') @endpush