| 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_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
Are you sure?You want to permanently delete this giftcard? |