@extends('admin.layouts.app') @section('content') {{ trans('admin/main.special_offers') }} {{trans('admin/main.dashboard')}} {{ trans('admin/main.special_offers') }} {{ csrf_field() }} {{ trans('admin/main.name') }} @error('name') {{ $message }} @enderror @php $types = [ 'courses' => 'webinar_id', 'bundles' => 'bundle_id', 'subscription_packages' => 'subscribe_id', 'registration_packages' => 'registration_package_id', ]; @endphp {{ trans('admin/main.type') }} @foreach($types as $type => $typeItem) {$typeItem})) ? 'selected' : '' }}>{{ trans('update.'.$type) }} @endforeach @error('type') {{ $message }} @enderror {{ trans('admin/main.class') }} @if(!empty($specialOffer) and !empty($specialOffer->webinar)) {{ $specialOffer->webinar->title }} @endif @error('webinar_id') {{ $message }} @enderror {{ trans('update.bundle') }} @if(!empty($specialOffer) and !empty($specialOffer->bundle)) {{ $specialOffer->bundle->title }} @endif @error('bundle_id') {{ $message }} @enderror {{ trans('public.subscribe') }} {{ trans('update.select_subscribe') }} @foreach($subscribes as $subscribe) subscribe_id == $subscribe->id) ? 'selected' : '' }}>{{ $subscribe->title }} @endforeach @error('subscribe_id') {{ $message }} @enderror {{ trans('update.registration_package') }} {{ trans('update.select_registration_package') }} @foreach($registrationPackages as $registration_package) registration_package_id == $registration_package->id) ? 'selected' : '' }}>{{ $registration_package->title }} @endforeach @error('registration_package_id') {{ $message }} @enderror {{ trans('admin/main.discount_percentage') }} @error('percent') {{ $message }} @enderror {{ trans('admin/main.from_date') }} @error('from_date') {{ $message }} @enderror {{ trans('admin/main.to_date') }} @error('to_date') {{ $message }} @enderror {{ trans('admin/main.status') }} status == \App\Models\SpecialOffer::$active ? 'selected' : '' }}>{{ trans('panel.active') }} status == \App\Models\SpecialOffer::$inactive ? 'selected' : '' }}>{{ trans('panel.inactive') }} @error('status') {{ $message }} @enderror {{ trans('admin/main.submit') }} @endsection @push('scripts_bottom') @endpush