@extends('layouts.app') @section('title', 'All Contacts') @push('css') @endpush @section('content')

Manage Contacts

Delete Import Export Add New Contact
{{-- table --}}
@foreach ($contacts as $contact) {{-- Profassional bussihness type --}} {{-- Profassional bussihness type END --}} {{-- Gernal Client Type Start --}} {{-- Gernal Client Type END --}} {{-- Tags/Property of intrest Start --}} {{-- Tags/Property of intrest End --}} {{-- Contact Source Start --}} {{-- Contact Source END --}} @endforeach
Name Contact Type Professional Business Type General - Client Type Company Phone Number Additional Phone Number Email Address Tags/Property of Interest Contact Source Website Pipeline Status Created At Action
{{ $contact['f_name'] ?? '' }} {{ $contact['l_name'] ?? '' }} {{ $contact['n_name'] ?? '' }} {{ isset($contact['contact_type']) ? str_replace('_', ' ', $contact['contact_type']) : '' }}
@php $transactionAssociates = explode(',', $contact['transaction_associate']); $transactionAssociatesCount = count($transactionAssociates); @endphp
@foreach ($transactionAssociates as $index => $transactionAssociate) @if ($index < 2) {{ strlen($transactionAssociate) > 15 ? substr($transactionAssociate, 0, 12) . '...' : $transactionAssociate }} @else @endif @endforeach
@if ($transactionAssociatesCount > 2) @endif
@php $assignTitle = explode(',', $contact['assign_title']); $assignTitleCount = count($assignTitle); @endphp @foreach ($assignTitle as $index => $title) @if ($index < 2) {{ $title }} @else @endif @endforeach @if ($assignTitleCount > 2) @endif
{{ $contact['company'] }} {{ $contact['cell_phone'] }} {{ $contact['office_phone'] }} {{ $contact['email'] }} {{ trim(($contact['street'] ?? '') . ', ' . ($contact['city'] ?? '') . ', ' . ($contact['state'] ?? '') . ' ' . ($contact['zip'] ?? ''), ', ') }}
@php $tags = is_string($contact['tags'] ?? '') ? explode(',', $contact['tags']) : []; $tagCount = count($tags); @endphp @foreach ($tags as $index => $tag) @if ($index < 2) {{ ucwords(str_replace('_', ' ', strlen($tag) > 18 ? substr($tag, 0, 18) . '...' : $tag )) }} @else @endif @endforeach @if ($tagCount > 2) @endif
@php $sources = explode(',', $contact['contact_source']); $sourceCount = count($sources); @endphp @foreach ($sources as $index => $source) @if ($index < 2) {{ ucwords(str_replace('_', ' ', $source)) }} @else @endif @endforeach @if ($sourceCount > 2) @endif
{{ $contact['website'] }} {{ $contact['conact_pipeline_status'] ?? '' }} {{ $contact['created_at'] ? \Carbon\Carbon::parse($contact['created_at'])->format('m-d-Y') : '' }}
@include('layouts.includes.particles.contact.import_modal') @include('layouts.includes.particles.contact.contact_modal') @include('layouts.includes.particles.contact.contact_delete_bulk')
@endsection {{-- custom js --}} @push('js')