@extends('layouts.master') @section('title', $title) @section('content')

Contact History

@if ($error = Session::get('error'))

{{ $error }}

@endif @if ($message = Session::get('message'))

{{ $message }}

@endif

:

{{ $contact->contact_id }}

:

{{ $contact->first_name }}

:

{{ $contact->last_name }}

:

{{($contact->company) ? $contact->company->company_name : ''}}

:

{{ $contact->title }}

:

{{ !empty($contact->department) ? $contact->department->name : ''}}

:

{{ $contact->phone_work }}

:

{{ $contact->phone_cell }}

:

{{ $contact->phone_other }}

:

{{ !empty($contact->reportTo) ? $contact->reportTo->first_name.' '.$contact->reportTo->last_name : ''}}

:

{{ $contact->email1 }}

:

{{ $contact->email2 }}

:

{{ $contact->address }}

:

{{ $contact->created_at }}

:

{{ !empty($contact->ownerUser) ? $contact->ownerUser->name : ''}}

@if(!empty($history)) @php $jobArr = $history->toArray(); @endphp @foreach($history as $res) @if($res->description) @if($value%5 == 0) @endif @endif @endforeach @endif
@endsection