@extends ('../welcome') @section('content')
| ID | Type | State | broker | Agent | check in | Creator | To Do Date | Close Date | Created at | Control |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $communication->id }} | {{ $communication->type ?? '' }} | {{ $communication->state ?? '' }} | @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('brokers-show')) {{ $communication->broker->name ?? '' }} @else {{ $communication->broker->name ?? '' }} @endif | @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('agents-show')) {{ $communication->agent->name ?? '' }} @else {{ $communication->agent->name ?? '' }} @endif | {{ $communication->check_in == 0 ? 'no' : 'yes' }} | @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('users-show')){{ $communication->user?->name }} | @else {{ $communication->user?->name ?? '' }} @endif{{ $communication->event?->start }} | {{ $communication->event?->end }} | {{ $communication->created_at }} | @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('communications-show')) @endif |