@php use App\Helpers\Helper; @endphp @extends('layouts.master') @section('title', 'Contact Details') @section('content')
@include('admin.errors.error') @section('breadcrumbs') @endsection

Details

  • Name: {{ $contact->fullName }}
  • Label: {{ $contact->getlabel->label_name }}
  • Email: {{ isset($contact->email) ? $contact->email : '-' }}
  • Contact Number: {{ $contact->phone_number }}
  • Secondary Contact: {{ isset($contact->secondary_contact_no) ? $contact->secondary_contact_no : '-' }}
  • Date of Birth: {{ isset($contact->date_of_birth) ? Carbon\Carbon::parse($contact->date_of_birth)->format(config('const.displayDate')) : '-' }}
  • Address: {{ $contact->address }}
  • City: {{ $contact->city }}
  • State: {{ isset($contact->state) ? $contact->state->name : '-' }}
  • County: {{ isset($contact->county) ? $contact->county : '-' }}
  • Zip Code: {{ $contact->zip_code }}
  • Contact Index No: #{{ $contact->sequence_no }}
  • Created By: {{ $contact->getCreatedByName->first_name . ' ' . $contact->getCreatedByName->last_name }}
  • Updated By: {{ $contact->getUpdatedByName->first_name . ' ' . $contact->getUpdatedByName->last_name }}
  • Status: {!! Helper::status($contact->status) !!}
@if (auth()->user()->can('update-contact')) Edit @endif   Back
Associated Contacts
@if (isset($associtedContacts) && $associtedContacts->isNotEmpty()) @foreach ($associtedContacts as $associtedContactsData) @if (isset($associtedContactsData->getContacts) && $associtedContactsData->getContacts->isNotEmpty()) @foreach ($associtedContactsData->getContacts as $associatcontact) @endforeach @endif @endforeach @else @endif
# Name Email Contact Number Action
{!! Helper::displayUniqueNumberClickable( route('admin.contact.show', $associatcontact->id), $associatcontact->id, ) !!} {{ $associatcontact->full_name }} {{ $associatcontact->email }} {{ $associatcontact->phone_number }} @if (auth()->user()->can('list-contact')) @endif
No Associated Contacts Available
@include('admin.contact.create_associated_contact', ['contact_id' => $contact->id]) @include('admin.contact.create_notes', ['contact_id' => $contact->id]) @include('admin.confirmalert') @endsection @section('scripts') @endsection