55 lines
2.5 KiB
PHP
55 lines
2.5 KiB
PHP
@extends('layouts.admin')
|
|
@section('content')
|
|
<div>
|
|
@if ($companies->count() == 0)
|
|
<div class="text-center py-5">Нет данных для отображения</div>
|
|
@else
|
|
<div class="fs-5 bg-light p-0 m-0 border border-1 rounded-4 py-3">
|
|
<table class="table m-0">
|
|
<thead>
|
|
<tr scope="col">
|
|
<th>Название
|
|
<th>
|
|
<th>
|
|
<th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class=" ">
|
|
@foreach ($companies as $company)
|
|
<tr scope="row">
|
|
<td class="align-middle">
|
|
{{ $company->name }}
|
|
</td>
|
|
<td class="align-middle">
|
|
|
|
</td>
|
|
<td class="align-middle">
|
|
|
|
</td>
|
|
<td class="text-end">
|
|
<div class="dropdown" style="">
|
|
<button class="btn btn-light" type="button" id="dropdownMenuButton"
|
|
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<i class="bi bi-three-dots-vertical"></i>
|
|
</button>
|
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
|
<a class="dropdown-item"
|
|
href="{{ route('admin.companies.edit', ['company' => $company]) }}">Редактировать</a>
|
|
<form method="post"
|
|
action="{{ route('admin.companies.delete', ['company' => $company]) }}">
|
|
@csrf
|
|
<button class="dropdown-item" type="submit">Удалить</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
@endsection
|