@livewire('customer-train-component', ['customer_id' => $customer->id ,'customer'=>$customer ,'component_name'=>"customer-contacts"])

{{ __('messages.Add Contacts') }} {{ __('messages.to') }} {{ __('messages.Customer') }} {{$customer->name}}

@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif
conatct_type_id change_contact_type @foreach (\App\Models\ContactType::all() as $type) @endforeach
# {{__('messages.Contact Type')}} {{__('messages.Contact')}} {{__('messages.Updated By')}} {{-- Created At --}}   # 2 {{__('messages.Contact Type')}} Mobile {{__('messages.Contact')}}{{$customer->mobile}} {{__('messages.Updated By')}}{{($customer->last_updated_by_user)?$customer->last_updated_by_user->name:"-"}} {{-- Created At{{$contact->created_at}} --}}
 
@if ($customer->email) # 1 {{__('messages.Contact Type')}} Email {{__('messages.Contact')}}{{$customer->email}} {{__('messages.Updated By')}}{{($customer->last_updated_by_user)?$customer->last_updated_by_user->name:"-"}} {{-- Created At{{$contact->created_at}} --}}
 
@endif @forelse ($customer->contacts as $key =>$contact) #{{$loop->iteration}} {{__('messages.Contact Type')}}{{$contact->contact_type->name}} {{__('messages.Contact')}}{{$contact->body}} {{__('messages.Updated By')}}{{($contact->last_updated_by_user)?$contact->last_updated_by_user->name:"-"}} {{-- Created At{{$contact->created_at}} --}}
@can("delete contacts") Contact {{$contact->contact_type->name}} {{$contact->id}} @endcan
@empty {{__('messages.Empty Result')}} @endforelse