@extends('layout') @section('content')
@csrf

Basic Information icon

icon User Uppercase letter and numbers e.g. VIP485 @error('name') {{ $message }} @enderror
By default, it applies to all events on the platform @error('applicability') {{ $message }} @enderror
@php $oldEvents = collect(old()) ->filter(fn($v, $k) => Str::startsWith($k, 'question_')) ->values() ->map( fn($id) => [ 'id' => $id, 'event' => optional($events->firstWhere('id', $id))->title, ], ) ->filter(fn($q) => !is_null($q['event'])) ->toArray(); @endphp
@foreach ($oldEvents ?? [] as $event) @endforeach

Discount Information icon

@error('discount_type') {{ $message }} @enderror
@error('discount_value') {{ $message }} @enderror
@error('minimum_purchase') {{ $message }} @enderror
@error('maximum_discount') {{ $message }} @enderror

Validation Information icon

icon @error('valid_from') {{ $message }} @enderror
icon @error('valid_to') {{ $message }} @enderror

Usage Limits icon

icon Leave empty for unlimited uses
{{-- active and inactive --}} {{-- --}} {{-- Include JustValidate --}} @endsection