@extends('layouts.handa') @section('content')

Contacts

{!! Form::open(['url' => 'backdoor/contacts/search', 'class' => 'form-inline', 'role' => 'form', 'autocomplete' => 'off']) !!}
{!! Form::text('search', $search, ['class' => 'form-control', 'placeholder' => 'search contacts', 'required']) !!}
{!! Form::button('', ['class' => 'btn btn-outline-secondary', 'type' => 'submit', 'title' => 'Search']) !!}
{!! Form::close() !!}
@if($contacts->isEmpty())
No record(s) found.
@else @foreach($contacts as $contact) @endforeach
Name Mobile Number Group Agency Position Status
{{ $contact->c_lname }}, {{ $contact->c_fname }} {{ $contact->c_number }} @foreach($contact->groups as $group)
{{ $group->g_name }}
@endforeach
{{ $contact->c_agency }} {{ $contact->c_position }} {!! $contact->is_active == 1 ? '' : '' !!}
@if($contacts->render()) @endif @endif
@stop