@extends('layout') @section('content')
@php $statusCheck = true; if (old('status', $ticket->status) === 'inactive') { $statusCheck = false; } @endphp
@csrf @method('PUT')

{{ __('Basic Information') }} icon

@error('name') {{ $message }} @enderror
@error('ticket_category_id') {{ $message }} @enderror
@error('description') {{ $message }} @enderror

{{ __('Price Information') }} icon

icon {{ __('15% VAT will be added automatically. Final price:') }} {{ old('price', $ticket->price) * 1.15 }} @error('price') {{ $message }} @enderror
@error('currency_id') {{ $message }} @enderror

{{ __('Ticket Features') }} icon

icon {{ __('Type a new feature and press Enter to add it') }}
{{-- @if (!empty($ticket->features) && is_array($ticket->features)) @foreach ($ticket->features as $feature)
{{ $feature }}
@endforeach @endif --}}
@php $features = implode(',', $ticket->features ?? []); if (old('features') ?? '') { $features = old('features'); } @endphp
{{ __('Cancel') }}
{{-- active and inactive --}} {{-- --}} {{-- Include JustValidate --}} @endsection