freescout-restricted-customers/Resources/views/customers/partials/customers_table.blade.php

26 lines
1.3 KiB
PHP

@if (count($customers))
<div class="table-customers" data-page="{{ (int)request()->get('page', 1) }}">
<div class="container">
<div class="card-list margin-top">
@foreach ($customers as $customer)
<a href="{{ Eventy::filter('customer.card.url', route('customers.update', ['id' => $customer->id]), $customer) }}" class="card hover-shade" @action('customer.card.link', $customer) >
<img src="{{ $customer->getPhotoUrl() }}" />
@if ($customer->mailbox_id == null)
<p style="font-size:12px; color: red;">{{ __('mmfrestrictedcustomers::customers.no-mailbox') }}</p>
@endif
<h4 title="{{ $customer->first_name }} {{ $customer->last_name }}">{{ $customer->first_name }} {{ $customer->last_name }}</h4>
<p class="text-truncate"><small>{{ $customer->getEmailOrPhone() }}</small></p>
</a>
@endforeach
</div>
</div>
@if ($customers->lastPage() > 1)
<div class="customers-pager">
{{ $customers->links('conversations/conversations_pagination') }}
</div>
@endif
</div>
@else
@include('partials/empty', ['empty_text' => __('No customers found')])
@endif