{{ __('Marketing') }} {{ __('List of all gift cards.') }}
{{ __('Add Gift Card ') }}
@foreach ($data as $giftcard) @endforeach
{{ __('Date & Time') }} {{ __('Title') }} {{ __('Code') }} {{ __('Maximum user') }} {{ __('Riders') }} {{ __('Valid Time') }} {{ __('Discount') }} {{ __('Status') }} {{ __('Is Notify') }} {{ __('Action') }}
{{ $giftcard->created_at }} {{ $giftcard->title }} {{ $giftcard->code }} {{ $giftcard->max_users }} @php $riders = \App\Models\Rider::whereIn( 'id', $giftcard->rider_ids ?? [], )->get(); @endphp @foreach ($riders as $rider) {{ $rider->user->name ?? __('N/A') }}@if (!$loop->last) , @endif @endforeach {{ \Carbon\Carbon::parse($giftcard->valid_from)->format('Y-m-d') }}{{ __(' to') }} {{ \Carbon\Carbon::parse($giftcard->valid_to)->format('Y-m-d') }} {{ $giftcard->discount_type === 'percentage' ? $giftcard->discount_percent . '% ' : $giftcard->discount_flat . ' flat' }} {{ $giftcard->is_enabled == 1 ? 'Enabled' : 'Disabled' }} {{ $giftcard->is_notified == 1 ? 'Notified' : 'Not Notified' }}
{{ __('Edit') }} @php $modalId = 'showModal_' . $giftcard->id; @endphp