add account->balance in form-inputs for estimations
This commit is contained in:
parent
704551c165
commit
4eda19604c
1 changed files with 4 additions and 2 deletions
|
|
@ -8,9 +8,11 @@
|
|||
<div class="form-group mb-5">
|
||||
<label for="creditAccount"><b>{{ __('Compte à débiter') }}</b></label>
|
||||
<select class="form-select" name="credit_account_id" id="creditAccount" aria-describedby="creditAccountHelp">
|
||||
<option value="" @if(!old('credit_account_id')) selected @endif disabled>{{ __('Veuillez sélectionner un compte à débiter') }}</option>
|
||||
<option value="" @selected(!old('credit_account_id')) disabled>{{ __('Veuillez sélectionner un compte à débiter') }}</option>
|
||||
@foreach($ticket->site->brand->accounts as $account)
|
||||
<option value="{{ $account->id }}" @if(old('credit_account_id') == $account->id) selected @endif>{{ $account->label }}</option>
|
||||
<option value="{{ $account->id }}" @selected(old('credit_account_id') === $account->id)>
|
||||
<?= sprintf('%s (Solde restant: %s)', $account->label, number_format($account->balance, 2, ',', ' ')); ?>
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
@include('modules.input-error', [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue