@extends ('../welcome') @section('content')
Filter
Back
Activities
@if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('brokers-create-activities')) @endif
Total: {{ count($totalActions) }}
user()->type == 'admin' || auth()->user()->role->hasPermission('agent-activities-export') ? 'example2' : 'nonExport' }} class="table table-bordered table-striped"> @foreach ($communications as $communication) @if ($communication->agent_id != null) @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('users-show')) @else {{ $communication->user?->name ?? '' }} @endif @endif @endforeach
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' }} {{ $communication->user?->name }} {{ $communication->event?->start }} {{ $communication->event?->end }} {{ $communication->created_at }} @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('communications-show'))
@csrf
@endif
@endsection