Edit Promo Code

Back
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT') {{-- Enhanced Image Upload Section --}}
@if($promoCode->img_url)
{{ $promoCode->img_url }}
Current Image
@error('promo_code_image') {{ $message }} @enderror
{{-- Basic Information --}}
@error('title') {{ $message }} @enderror
@error('code') {{ $message }} @enderror
{{-- Description --}}
@error('description') {{ $message }} @enderror
{{-- Fixed Amount Discount and Date --}}

Enter a fixed dollar amount. Example: 10 for $10 off

@error('discount') {{ $message }} @enderror
@error('expiry_date') {{ $message }} @enderror
{{-- Status Configuration --}}
@error('status') {{ $message }} @enderror
{{-- Usage Information --}}

Promo Code Information

Created: {{ $promoCode->created_at->format('M d, Y h:i A') }}

Last Updated: {{ $promoCode->updated_at->format('M d, Y h:i A') }}

Status: {{ $promoCode->status ? 'Active' : 'Inactive' }}

Discount Type: Fixed Amount

{{-- Submit Button --}}