@extends('admin.layouts.layout') @section('content')
| Promo Code | {{ $sdata->promo_code }} | |
|---|---|---|
| Description | {{ $sdata->description }} | |
| Discount Type | {!! !empty($sdata->discount_type) ? $sdata->discount_type : '-' !!} | |
| Discount | {!! $sdata->discount_type == "flat" ? $sdata->amount_percentage : $sdata->amount_percentage.'%' !!} | |
| Maximum Amount | {!! !empty($sdata->maximum_amount_limit) ? $sdata->maximum_amount_limit : '-' !!} | |
| Start Date | {{ $sdata->start_date }} | |
| End Date | {!! !empty($sdata->end_date) ? $sdata->end_date : '-' !!} | |
| Maximum user Limit | {!! !empty($sdata->user_maximum_usage_limit) ? $sdata->user_maximum_usage_limit : '-' !!} | |
| User Type | {!! !empty($sdata->user_type) ? ucfirst($sdata->user_type) : '-' !!} | |
| Service Type | {!! !empty($sdata->service_type) ? ucfirst($sdata->service_type) : '-' !!} | |
| Ride Type | @php $rideType = $sdata->ride_type ?? ''; // Assuming $sdata->ride_type contains the enum value @endphp @switch($rideType) @case('wa_assist') WA Assist @break @case('wa_indep') WA INDEP @break @case('wc_assist') WC/AMB Assist @break @case('wc_indep') WC/AMB Indep @break @case('all') All Ride Types @break @default Unknown Ride Type @endswitch | |
| Car Type | {!! !empty($sdata->car_type) ? ucfirst($sdata->car_type) : '-' !!} | |
| Status | @if($sdata->status == 1)Active | @elseInactive | @endif