{{ __('customer.page_list') }}
{{ __('customer.btn_create') }}
{{-- Search --}}
@if ($customers->count())
@foreach ($customers as $customer) @endforeach
{{ __('customer.col_name') }} {{ __('customer.col_address') }} {{ __('customer.col_contact') }} {{ __('customer.col_notify') }} {{ __('customer.col_actions') }}
{{ $customer->name }} @php $firstObject = $customer->objects->first(); @endphp @if ($firstObject) @if ($firstObject->street) {{ $firstObject->street }} @endif {{ implode(' ', array_filter([$firstObject->zip, $firstObject->city])) }} @if ($customer->objects->count() > 1) (+{{ $customer->objects->count() - 1 }}) @endif @endif {{ $customer->contact_name }} @if ($customer->auto_notify_email) {{ __('customer.badge_notify_yes') }} @endif @if ($customer->portal_enabled) {{ __('customer.badge_portal') }} @endif {{ __('ui.button_edit') }}
@csrf @method('DELETE') {{ __('customer.modal_delete_submit') }}
{{ $customers->links() }}
@else {{ __('customer.empty_cta') }} @endif