@extends('layouts.head_office_app') @section('title', 'Head office Settings') @section('content')
@include('head_office.contacts.sidebar', ['tab' => 'all_contacts']) @include('head_office.contacts.bulk_editor', ['tab' => 'all_contacts'])
@include('head_office.contacts.search', ['tab' => 'all_contacts'])
@if (!empty($contacts)) @foreach ($contacts as $contact) @if ($contact->is_archive == false && $contact->is_deleted == false) @include('head_office.contacts.contact', [ 'tab' => 'all_contacts', ]) @endif @endforeach @endif
@include('head_office.contacts.sidebar', ['tab' => 'archived_contacts']) @include('head_office.contacts.bulk_editor', ['tab' => 'archived_contacts'])
@include('head_office.contacts.search', ['tab' => 'archived_contacts'])
@if (!empty($contacts)) @foreach ($contacts as $contact) @if ($contact->is_archive == true) @include('head_office.contacts.contact', [ 'tab' => 'all_contacts', ]) @endif @endforeach @endif
@include('head_office.contacts.sidebar', ['tab' => 'deleted_contacts']) @include('head_office.contacts.bulk_editor', ['tab' => 'deleted_contacts'])
@include('head_office.contacts.search', ['tab' => 'deleted_contacts'])
@if (!empty($contacts)) @foreach ($contacts as $contact) @if ($contact->is_deleted == true && $contact->is_archive == false) @include('head_office.contacts.contact', [ 'tab' => 'all_contacts', ]) @endif @endforeach @endif
@include('head_office.contacts.contacts_addresses')
@include('head_office.contacts.sidebar', ['tab' => 'my_contacts']) @include('head_office.contacts.bulk_editor', ['tab' => 'my_contacts'])
@include('head_office.contacts.search', ['tab' => 'my_contacts'])
@if (!empty($user_to_contacts)) @foreach ($user_to_contacts as $user_to_contact) @php $contact = $user_to_contact->new_contact; @endphp @if (!empty($contact)) @include('head_office.contacts.contact', [ 'tab' => 'my_contacts', ]) @endif @endforeach @endif
@include('head_office.contacts.sidebar', ['tab' => 'favourites']) @include('head_office.contacts.bulk_editor', ['tab' => 'favourites'])
@include('head_office.contacts.search', ['tab' => 'favourites'])
@if (!empty($contacts)) @foreach ($contacts as $contact) @if (in_array($contact->id, $user_favourite_contacts->pluck('contact_id')->toArray())) @include('head_office.contacts.contact', [ 'tab' => 'favourites', ]) @endif @endforeach @endif
{{--
@include('head_office.contacts.contacts_groups')
@include('head_office.contacts.contacts_tags')
--}}
@endsection @if (Session::has('success')) @elseif(Session::has('error')) @endif