33 lines
1.5 KiB
PHP
33 lines
1.5 KiB
PHP
@extends('layout.app')
|
|
|
|
@section('bodyClass', 'col-md-8')
|
|
|
|
@section('content')
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h2 class="col h4">
|
|
<a href="{{ route('brands.credit_accounts.index', $brand) }}" class="text-decoration-none btn btn-sm btn-primary" role="button" aria-roledescription="{{ _('Revenir en arrière') }}"><i class="fa-solid fa-arrow-left-long"></i></a>
|
|
{{ $brand->name }} :
|
|
{{ $account->label }}
|
|
<span class="text-decoration-underline">{{ __('Créditer un compte') }}</span>
|
|
</h2>
|
|
</div>
|
|
<div class="card-body">
|
|
<form method="POST" action="{{ route('brands.credit_accounts.creditSubmit', ['brand' => $brand, 'account' => $account]) }}">
|
|
@csrf
|
|
@method('PUT')
|
|
<div class="form-group mb-5">
|
|
<label for="amount" class="col-form-label text-md-right">{{ __('Montant crédité') }}</label>
|
|
<input class="form-control" name="amount" id="amount" type="number" min="0.5" step="0.5" value="{{ old('number', 0.5) }}" aria-describedby="amountHelper"/>
|
|
@include('modules.input-error', [
|
|
'inputName' => 'amount', 'helperId' => 'amountHelper' , 'helper' => __('Le montant en homme jour à créditer')
|
|
])
|
|
</div>
|
|
|
|
<div class="form-group text-center">
|
|
<input type="submit" class="btn btn-warning" value="Créditer">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection
|