@extends('layouts.admin') @section('title', isset($discount) ? 'Edit Discount' : 'Add Discount') @section('page_title', isset($discount) ? 'Edit Discount' : 'Add New Discount') @section('content')
{{ isset($discount) ? 'Edit Discount Information' : 'Discount Details' }}
@csrf @if(isset($discount)) @method('PUT') @endif
Use uppercase letters and numbers (e.g., SUMMER20, SAVE50) @error('code')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@error('discount_type')
{{ $message }}
@enderror
%
@error('discount_value')
{{ $message }}
@enderror
Maximum number of times this coupon can be used. Leave empty for unlimited. @error('usage_limit')
{{ $message }}
@enderror
@error('valid_from')
{{ $message }}
@enderror
@error('valid_to')
{{ $message }}
@enderror
{{ \App\Support\Currency::symbol() }}
Discount only applies when cart total is at least this amount @error('min_purchase_amount')
{{ $message }}
@enderror
is_active : 1) == 1 ? 'checked' : '' }}>
Cancel
Quick Info
@if(isset($discount))
Discount ID

#{{ $discount->id }}

Times Used

{{ $discount->usage_count ?? 0 }} / {{ $discount->usage_limit ?? '∞' }}

Created

{{ $discount->created_at->format('M d, Y') }}

Last Updated

{{ $discount->updated_at->format('M d, Y H:i') }}

@else

Fill in the form to create a new discount coupon

@endif
@endsection