@if (isset($result) && count($result) > 0) @php // dumper($result); $i = pageIndex($result); @endphp @foreach ($result as $key => $row) @php $backgroundColor = !empty($row->reference_office_id) && !empty($row->reference_client_id) && $row->id !== $row->reference_client_id ? 'bisque' : ''; $cloned = !empty($row->reference_office_id) && !empty($row->reference_client_id) && $row->id !== $row->reference_client_id ? 'Cloned' : ''; @endphp @endforeach @else @endif
{{ __('common.sr_no') }} {!! sorting('name', __('common.name'), $sortOrder, $sortEntity) !!} {!! sorting('customer_code', __('common.customer_code'), $sortOrder, $sortEntity) !!} {!! sorting('email', __('common.email'), $sortOrder, $sortEntity) !!} {!! sorting('phone', __('common.phone'), $sortOrder, $sortEntity) !!} {!! sorting('type', __('common.type'), $sortOrder, $sortEntity) !!} {!! sorting('address', __('common.address'), $sortOrder, $sortEntity) !!} {!! sorting('balance', __('common.balance'), $sortOrder, $sortEntity) !!} {!! sorting('office_id', __('common.office_name'), $sortOrder, $sortEntity) !!} {!! sorting('status', __('common.status'), $sortOrder, $sortEntity) !!} {!! __('action') !!}
{!! $i++ !!} {!! !empty($cloned) ? "{$cloned}
" : '' !!} {!! $row->name !!}
{!! $row->customer_code !!} {!! $row->email !!} {!! $row->dial_code !!} {!! $row->phone !!} {!! $row->client_type !!} {!! getLimitedCharacters($row->address) !!} {!! '$'. $row->balance !!} {!! $row->office_name !!} {!! statusText($row->status) !!}
{!! $result->links('pagination::bootstrap-4') !!}
{!! pageDetail($result) !!}
{!! __('common.no_records') !!}