@extends('layouts.admin') @section('title', 'Discount Details') @section('content')

{{ $discount->name }}

Code: {{ $discount->code }}

Discount Info

Type
{{ ucfirst($discount->type) }}
Amount
{{ $discount->type==='percentage' ? $discount->amount.'%' : number_format($discount->amount,2).' '.$discount->currency }}
Applies To
{{ ucfirst($discount->applies_to) }}
@if($discount->target_code)
Target Code
{{ $discount->target_code }}
@endif
Min Order Value
{{ $discount->min_order_value ? number_format($discount->min_order_value,2).' '.$discount->currency : '—' }}
Max Discount Value
{{ $discount->max_discount_value ? number_format($discount->max_discount_value,2).' '.$discount->currency : '—' }}
Effective Dates
{{ optional($discount->effective_from)->format('Y-m-d') }} — {{ optional($discount->effective_to)->format('Y-m-d') }}
Status
{{ ucfirst($discount->status) }}

Notes

{{ $discount->notes ?? 'No notes provided.' }}

Quick Actions

Edit Discount
@csrf @method('DELETE')
@endsection