@extends('layouts.admin') @section('title', 'Admin Promos') @section('header', 'Admin Promo Management') @section('content') @php $currencySymbol = \App\Models\AppSetting::getValue('currency_symbol', '₹'); $currencyDecimals = \App\Models\AppSetting::currencyDecimals(); @endphp
@forelse($promos as $promo)
@if($promo->promo_image) {{ $promo->title }} @else
@endif {{ $promo->is_active ? 'Active' : 'Inactive' }}
{{ $promo->title }}
Code: {{ $promo->code }}
{{ $promo->discount_type === 'percentage' ? rtrim(rtrim($promo->discount_value, '0'), '.') . '%' : $currencySymbol . number_format((float) $promo->discount_value, $currencyDecimals) }}

{{ \Illuminate\Support\Str::limit($promo->description ?? 'Global promo for all restaurants.', 110) }}

{{ optional($promo->start_date)->format('d M Y') }} - {{ optional($promo->end_date)->format('d M Y') }}
@csrf
@csrf @method('DELETE')
@empty

No admin promos found

Create your first global promo for all store orders.

Create Promo
@endforelse
@endsection