@extends('client.layouts.app') @section('title', __('client.contacts.title')) @section('content')
| {{ __('common.table.name') }} | {{ __('common.table.email') }} | {{ __('common.form.phone') }} | {{ __('client.contacts.receives') }} | {{ __('common.table.actions') }} |
|---|---|---|---|---|
| {{ $contact->first_name }} {{ $contact->last_name }} | {{ $contact->email }} | {{ $contact->phone_number ?: '-' }} | @php $kinds = collect([ 'general_emails' => __('client.contacts.kind_general'), 'invoice_emails' => __('client.contacts.kind_invoice'), 'product_emails' => __('client.contacts.kind_product'), 'domain_emails' => __('client.contacts.kind_domain'), 'support_emails' => __('client.contacts.kind_support'), ])->filter(fn ($label, $field) => $contact->{$field})->values(); @endphp {{ $kinds->isEmpty() ? __('client.contacts.receives_nothing') : $kinds->implode(', ') }} | |
| {{ $filtered ? __('client.list.no_matches') : __('client.contacts.no_contacts') }} | ||||