64 lines
2.5 KiB
PHP
64 lines
2.5 KiB
PHP
@extends('layout.app')
|
|
|
|
@section('title', __('models.classes.companies'))
|
|
@section('description', __('Liste de toutes les :model', ['model' => __('models.classes.companies')]))
|
|
|
|
@section('content')
|
|
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center">
|
|
@include('breadcrumbs.breadcrumb-body')
|
|
<a href="{{ route('bo.companies.create') }}"
|
|
class="btn btn-primary float-right"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="{{ __('crud.helpers.create_model', ['model' => Str::singular(__('models.classes.companies'))]) }}">
|
|
<i class="fa-solid fa-plus"></i>
|
|
</a>
|
|
</div>
|
|
@include('bo.modules.search-bar')
|
|
<table class="table table-hover">
|
|
@if (count($companyModels) > 0)
|
|
<thead>
|
|
@include('bo.modules.table-col-sorter', [
|
|
'cols' => [
|
|
'name' => Str::ucfirst(__('validation.attributes.name')),
|
|
],
|
|
])
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($companyModels as $companyModel)
|
|
<tr class="list-item border-bottom">
|
|
<td class="text-center align-middle">{{ $companyModel->name }}</td>
|
|
<td class="text-end align-middle">
|
|
<form action="{{ route('bo.companies.destroy', $companyModel->id) }}"
|
|
method="POST"
|
|
class="btn-group confirmDeleteTS"
|
|
novalidate>
|
|
<a class="btn btn-sm btn-primary"
|
|
href="{{ route('bo.companies.edit', ['company' => $companyModel->id]) }}"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="{{ __('crud.actions.update') }}">
|
|
<i class="fa-solid fa-pencil"></i>
|
|
</a>
|
|
@csrf
|
|
@method('DELETE')
|
|
<button type="submit"
|
|
class="btn btn-sm btn-danger"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="{{ __('crud.actions.delete') }}">
|
|
<i class="fa-solid fa-trash"></i>
|
|
</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
@else
|
|
<tr>
|
|
<td class="border-0">{{ __('list.no_model_found', ['model' => Str::singular(__('models.classes.companies'))]) }}</td>
|
|
</tr>
|
|
@endif
|
|
</table>
|
|
{!! $companyModels->links() !!}
|
|
@endsection
|