@props([ 'account' => null ]) @php $isEdit = !is_null($account); $action = $isEdit ? route('provider.treasury.accounts.update', $account) : route('provider.treasury.accounts.store'); $method = $isEdit ? 'PUT' : 'POST'; $title = $isEdit ? 'Modifier le compte' : 'Informations du compte'; $submitText = $isEdit ? 'Enregistrer' : 'Créer le compte'; $cancelUrl = $isEdit ? route('provider.treasury.movements.index', $account) : route('provider.finances.index', ['tab' => 'tresorerie']); @endphp

{{ $title }}

@csrf @if($isEdit) @method('PUT') @endif
@if(!$isEdit)
@else
@endif
@if(!$isEdit)
@endif
@if($isEdit)
@endif
Annuler {{ $submitText }}