ldc-supportweb/resources/views/estimations/form-inputs.blade.php

19 lines
1.2 KiB
PHP

<div class="form-group mb-5">
<label for="amount" class="col-form-label text-md-right">{{ __('Montant estimé') }}</label>
<input class="form-control" name="amount" id="amount" type="number" min="0.125" step="0.125" value="{{ old('number', 0.125) }}" aria-describedby="amountHelper"/>
@include('modules.input-error', [
'inputName' => 'amount', 'helperId' => 'amountHelper' , 'helper' => __('Le montant en homme jour estimé.')
])
</div>
<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>
@foreach($ticket->site->brand->accounts as $account)
<option value="{{ $account->id }}" @if(old('credit_account_id') == $account->id) selected @endif>{{ $account->label }}</option>
@endforeach
</select>
@include('modules.input-error', [
'inputName' => 'brand_id', 'helperId' => 'creditAccountHelp' , 'helper' => __('Le compte de la marque à débiter')
])
</div>