@extends('layouts.base') @section('content') @section('breadcrumb') @endsection
@if ($errors->any()) @endif
{{ isset($option) ? 'Modifier une option' : 'Créer une option' }}
@csrf @if(isset($option)) @method('PUT') @endif
@if(!auth()->user()->isRole('ROLE_SUPPORT')) @endif @error('product_id')
{{ $message }}
@enderror
@if(!auth()->user()->isRole('ROLE_SUPPORT')) @endif @error('client_id')
{{ $message }}
@enderror
@if(isset($option)) @php $currentState = $option->state; $isCreated = $currentState === \App\Enums\OptionState::CREATED; @endphp
@error('state')
{{ $message }}
@enderror
@endif
Retour @if(auth()->user()->isRole('ROLE_SUPPORT')) @endif
@endsection