@php $isEdit = isset($clientDiscount) && $clientDiscount->exists; $tenant_id = session('tenant_id'); @endphp
@csrf @if($isEdit) @method('PATCH') @endif @if($show_tenant_dropdown ?? false)
@error('tenant_id')
{{ $message }}
@enderror
@else @endif
@error('title')
{{ $message }}
@enderror
Enter a descriptive title for the discount (max 120 characters)
@error('discount_type')
{{ $message }}
@enderror
Choose whether the discount is a percentage or fixed amount
@if(old('discount_type', $isEdit ? $clientDiscount->discount_type : '') == 'Percentage' || !$isEdit) % @else $ @endif
@error('amount')
{{ $message }}
@enderror
@if(old('discount_type', $isEdit ? $clientDiscount->discount_type : '') == 'Percentage') Enter percentage (0-100) @else Enter fixed amount @endif
is_active : true) ? 'checked' : '' }}>
Active discounts are available for use
Cancel
@push('page_script') @endpush