lk.zachem.info/resources/views/livewire/clients-table.blade.php
2025-03-06 16:06:00 +08:00

54 lines
2.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div>
<div class="fs-5 bg-light p-0 m-0 border border-1 rounded-4 overflow-hidden">
@if ($deals->count() == 0)
<div class="text-center py-5">Нет данных для отображения</div>
@endif
<table class="table m-0">
<tbody class="">
@foreach ($deals as $deal)
<tr>
<td>
<img src="../../images/icons/user.png" class="img-fluid align-middle" style="height: 50px;">
</td>
<td class="fw-semibold fs-5 align-middle">
{{ $deal->user->name }}
@if ($deal->status == $statuses::MODERATION)
<div>
<span class="badge text-bg-secondary">
На проверке уникальности
</span>
</div>
@endif
</td>
@if ($mode == 'full')
<td class="align-middle">
{{ $deal->user->phone }}
</td>
<td class="align-middle">
{{ $deal->user->email }}
</td>
<td class="align-middle">
{{ $deal->complex->city->name }}
</td>
<td class="align-middle">
<a href="#" class="btn">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-three-dots-vertical" viewBox="0 0 16 16">
<path
d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" />
</svg>
</a>
</td>
@endif
</tr>
@endforeach
</tbody>
</table>
</div>
@if ($mode == 'full')
<div class="mt-3">
{{ $deals->links('vendor.pagination.bootstrap-5', ['scrollTo' => false]) }}
</div>
@endif
</div>