67 lines
3.2 KiB
PHP
67 lines
3.2 KiB
PHP
@extends('layout.app', ['brParam' => $credit_accountModel->brand])
|
|
|
|
@section('title', __('Créditer un :model', ['model' => Str::singular(__('models.classes.accounts'))]))
|
|
@section('description', __('Création d\'un tout nouveau crédit d\'un :model', ['model' => Str::singular(__('models.classes.accounts'))]))
|
|
@section('breadcrumb', request()->route()->getName())
|
|
|
|
@section('content')
|
|
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-3">
|
|
<div class="d-flex flex-row align-items-center">
|
|
<a href="{{ route('bo.credit_accounts.index', $credit_accountModel->brand) }}"
|
|
class="btn btn-primary text-decoration-none m-0 me-2"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="{{ __('crud.helpers.list_all', ['model' => __('models.classes.accounts')]) }}">
|
|
<i class="fa-solid fa-arrow-left"></i>
|
|
</a>
|
|
@include('breadcrumbs.breadcrumb-body', ['brParam' => $credit_accountModel->brand])
|
|
</div>
|
|
<div class="mb-2 mb-md-0">
|
|
<div class="btn-group" role="group">
|
|
<a class="btn btn-secondary"
|
|
href="{{ route('bo.brands.credit_accounts.credit_logs.index', [
|
|
'brand' => $credit_accountModel->brand,
|
|
'account' => $credit_accountModel
|
|
]) }}?sort_col=created_at&sort_way=desc"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="{{ __('crud.helpers.view_model', ['model' => Str::singular(__('models.classes.creditlogs'))]) }}">
|
|
<i class="fa-solid fa-clock-rotate-left"></i>
|
|
</a>
|
|
<button id="formSubmitClone"
|
|
type="submit"
|
|
class="btn btn-warning"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="{{ __('crud.helpers.credit_model', ['model' => Str::singular(__('models.classes.accounts'))]) }}">
|
|
{{ __('crud.actions.credit') }}
|
|
</button>
|
|
<a class="btn btn-info"
|
|
href="{{ route('bo.brands.show', ['brand' => $credit_accountModel->brand->id]) }}"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="{{ __('crud.helpers.view_model', ['model' => Str::singular(__('models.classes.brands'))]) }}">
|
|
<i class="fa-solid fa-eye"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<form action="{{ route('bo.brands.credit_accounts.credit_logs.store', ['brand' => $credit_accountModel->brand, 'account' => $credit_accountModel]) }}"
|
|
method="POST"
|
|
enctype="multipart/form-data">
|
|
@csrf
|
|
@include('bo.pages.credit_logs.form-inputs')
|
|
<div class="row mt-3">
|
|
<div class="col text-center">
|
|
<button id="formSubmit"
|
|
type="submit"
|
|
class="btn btn-warning"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="{{ __('crud.helpers.credit_model', ['model' => Str::singular(__('models.classes.accounts'))]) }}">
|
|
{{ __('crud.actions.credit') }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
@endsection
|