@php $isPaginator = $rows instanceof \Illuminate\Contracts\Pagination\Paginator; $ids = collect($isPaginator ? $rows->items() : $rows)->pluck('id')->all(); @endphp @if ($canManage) Export CSV Assign contacts @endif
@if (! $restricted) @endif @if ($canManage)
selected
@csrf @method('DELETE')
@endif
@if ($queue)
Your work queue shows the next {{ \App\Http\Controllers\Doctor\ActivityController::QUEUE_SIZE }} not-started tasks. Save a task and the next one moves up automatically.
@endif @if (count($ids) === 0) @else
@if ($canManage) @endif @unless ($restricted)@endunless @foreach ($rows as $r) @php($overdue = $r->due_date && $r->status !== 'Completed' && $r->due_date < today()->toDateString()) @if ($canManage) @endif @unless ($restricted)@endunless @endforeach
CallerAction
{{ $r->status ?: '—' }} @if ($r->data_allocation_date)
Allocated {{ $r->data_allocation_date }}
@endif
{{ $r->company ?: '—' }}
@if ($r->contact_name && $r->contact_name !== $r->company)
{{ $r->contact_name }}
@endif
@if ($r->mobile){{ $r->mobile }}@else — @endif {{ $r->subject ?: 'Task #'.$r->id }} {{ $r->final_remark_ins_loan ?: '—' }} {{ $r->due_date ? \Carbon\Carbon::parse($r->due_date)->format('d-m-Y') : '—' }} {{ $r->modified_by ? \Carbon\Carbon::parse($r->modified_by)->format('d-m-Y') : '—' }} {{ $r->keyword ?: '—' }}
{{ $r->location ?: '—' }}
@if ($r->other_street)
{{ $r->other_street }}
@endif
{{ $r->assigned_user ?: ($r->user_id ? 'User #'.$r->user_id : '—') }} Log call
@if ($isPaginator) @endif @endif