@extends('web.layouts.app') @section('content')
@if (env('APP_PROJECT') != 'Rouaa') @include('web.settings_menu') @endif
@csrf
{!! Form::select('tags[]', $tags, request()->input('tags'), ['class' => 'form-control ' . ($tagsCount > 100 ? 'tagsFilter' : 'select2'), 'data-placeholder' => __('user.tags'), 'multiple']) !!}
@include('web.contacts.create')
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@foreach ($contacts as $contact) @include('web.contacts.edit') @include('web.contacts.archive') @endforeach
@lang('user.first_name') @lang('user.last_name') @lang('user.email') @lang('user.mobile') @lang('user.tags') @lang('user.channel') @lang('user.created_at') @lang('user.actions')
{{ $contact->first_name }} {{ $contact->last_name }} {{ $contact->email }} {{ $contact->mobile }} {{ implode(', ', $contact->tags()->pluck('name')->toArray()) }} @if ($contact->channel == 1) WhatsApp @elseif($contact->channel == 2) Messenger @else Instagram @endif {{ $contact->created_at }}
@if ($contact->channel == 1) @endif
{{ $contacts->links('vendor.pagination.custom') }}
@foreach ($archiveContacts as $contact) @include('web.contacts.edit') @include('web.contacts.unArchive') @endforeach
@lang('user.first_name') @lang('user.last_name') @lang('user.email') @lang('user.mobile') @lang('user.tags') @lang('user.channel') @lang('user.created_at') @lang('user.actions')
{{ $contact->first_name }} {{ $contact->last_name }} {{ $contact->email }} {{ $contact->mobile }} @foreach ($contact->tags()->get() as $tag) {{ $tag->name }} @endforeach @if ($contact->channel == 1) WhatsApp @elseif($contact->channel == 2) Messenger @else Instagram @endif {{ $contact->created_at }}
{{ $archiveContacts->links('vendor.pagination.custom') }}

@lang('user.note')

@lang('notes.contacts_note')

@endsection @push('scripts') @endpush