@section('title', translate('trashed_discount_List')) @extends('layouts.admin.app') @section('content')
| {{ translate('SL') }} | {{ translate('image') }} | {{ translate('discount_title') }} | {{ translate('zone') }} | {{ translate('customer_level') }} | {{ translate('customer') }} | {{ translate('module') }} | {{ translate('discount_amount') }} | {{ translate('duration') }} | {{ translate('total_times_used') }} | {{ translate('total_discount') }}
{{ translate('amount') }} ({{session()->get('currency_symbol') ?? '$'}}) |
{{ translate('discount_status') }} | {{ translate('action') }} |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $discounts->firstItem() + $key }} |
|
{{ $discount->title }} | @if($discount->zone_discount_type == ALL) {{ALL}} @else @foreach($discount->zones as $zone) {{ $zone->name }} @endforeach @endif | @if($discount->customer_level_discount_type == ALL) {{ALL}} @else @foreach($discount->customerLevels as $level) {{ $level->name }} @endforeach @endif | @if($discount->customer_discount_type == ALL) {{ALL}} @else @foreach($discount->customers as $customer) {{ $customer->first_name }} @endforeach @endif | @if(in_array(ALL,$discount->module_discount_type)) {{ALL}} @elseif(in_array(PARCEL,$discount->module_discount_type) && in_array(CUSTOM,$discount->module_discount_type)) {{ PARCEL }} @foreach($discount->vehicleCategories as $category) {{ $category->name }} @endforeach @elseif(in_array(PARCEL,$discount->module_discount_type)) {{ PARCEL }} @elseif(in_array(CUSTOM,$discount->module_discount_type)) @foreach($discount->vehicleCategories as $category) {{ $category->name }} @endforeach @endif | {{ $discount->discount_amount_type == PERCENTAGE? $discount->discount_amount.'%': set_currency_symbol($discount->discount_amount) }} |
{{translate('start')}} : {{date('Y-m-d',strtotime($discount->start_date))}} {{translate('end')}} : {{date('Y-m-d',strtotime($discount->end_date))}} {{translate('duration')}} : {{ Carbon\Carbon::parse($discount->end_date)->diffInDays($discount->start_date)}} Days |
{{ (int)$discount->total_used }} | {{ set_currency_symbol(round($discount->total_amount,2)) }} | @php($date = Carbon\Carbon::now()->startOfDay()) @if($date->gt($discount->end_date)) {{ translate(EXPIRED) }} @elseif (!$discount->is_active) {{ translate(CURRENTLY_OFF) }} @elseif ($date->lt($discount->start_date)) {{ translate(UPCOMING) }} @elseif ($date->lte($discount->end_date)) {{ translate(RUNNING) }} @endif |
|
|
{{translate('no_data_available')}} |
||||||||||||