{{ \App\Helpers\TranslationHelper::transFromDatabase('Medical Offers & Discounts', __('العروض والخصومات الطبية')) }}

{{ \App\Helpers\TranslationHelper::transFromDatabase('Back', __('عودة')) }}

{{ __('Add Offer') }}

@csrf
{{ __('Save') }}

{{ __('Offers List') }}

@foreach($offers as $offer) @endforeach
{{ __('Name') }} {{ __('Discount') }} {{ __('Validity') }} {{ __('Status') }} {{ __('Actions') }}
{{ $offer->name }} {{ $offer->discount_percent > 0 ? $offer->discount_percent.'%' : '' }} {{ $offer->discount_amount > 0 ? number_format($offer->discount_amount, 2) : '' }} @php $startDate = $offer->start_date; $endDate = $offer->end_date; @endphp {{ is_object($startDate) ? $startDate->format('Y-m-d') : ($startDate ?? '-') }} / {{ is_object($endDate) ? $endDate->format('Y-m-d') : ($endDate ?? '-') }} {{ $offer->active ? __('Active') : __('Inactive') }} {{ __('Edit') }}
@csrf @method('DELETE')
{{ $offers->links() }}