@extends('admin.layouts.app') @section('content')

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

@php $types = [ 'courses' => 'webinar_id', 'bundles' => 'bundle_id', 'subscription_packages' => 'subscribe_id', 'registration_packages' => 'registration_package_id', ]; @endphp
@foreach($specialOffers as $specialOffer) @endforeach
{{ trans('admin/main.title') }} {{ trans('admin/main.item') }} {{ trans('admin/main.percentage') }} {{ trans('admin/main.from_date') }} {{ trans('admin/main.to_date') }} {{ trans('admin/main.status') }} {{ trans('admin/main.actions') }}
{{ $specialOffer->name }} @if(!empty($specialOffer->webinar_id)) {{ $specialOffer->webinar->title }} {{ trans('admin/main.course') }} @elseif($specialOffer->bundle_id) {{ $specialOffer->bundle->title }} {{ trans('update.bundle') }} @elseif($specialOffer->subscribe_id) {{ $specialOffer->subscribe->title }} {{ trans('public.subscribe') }} @elseif($specialOffer->registration_package_id) {{ $specialOffer->registrationPackage->title }} {{ trans('update.registration_package') }} @endif {{ $specialOffer->percent ? $specialOffer->percent . '%' : '-' }} {{ dateTimeFormat($specialOffer->from_date, 'Y/m/d h:i:s') }} {{ dateTimeFormat($specialOffer->to_date, 'Y/m/d h:i:s') }} {{ trans('admin/main.'.$specialOffer->status) }} @can('admin_product_discount_edit') @endcan @can('admin_product_discount_delete') @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/financial/special_offers/'. $specialOffer->id.'/delete','btnClass' => '']) @endcan
@endsection