@php $ids = collect($rows->items())->pluck('contact_id')->unique()->values()->all(); @endphp @if ($canManage) Export @endif New contact
@foreach (\App\Http\Controllers\Doctor\ContactController::VIEWS as $key => $label) $view === $key, 'bg-white text-ink-600 ring-ink-200 hover:bg-ink-50 dark:bg-ink-900 dark:text-ink-300 dark:ring-ink-700' => $view !== $key])>{{ $label }} @endforeach
@if ($canManage)
contact(s) selected
@csrf @method('DELETE')
@endif
@if ($rows->isEmpty()) @else
@if ($canManage) @endif @foreach ($rows as $r) @php $msg = match ((string) $r->MessageStatusId) { '1' => ['New', 'badge-blue'], '2' => ['Sent', 'badge-green'], '4' => ['Failed', 'badge-red'], '6' => ['Deleted', 'badge-gray'], '-1' => ['Cancelled', 'badge-gray'], default => null }; $dnd = match ((string) $r->DndStatus) { '1' => ['DND', 'badge-red'], '2' => ['Non-DND', 'badge-green'], '-1' => ['DND n/a', 'badge-gray'], default => null }; @endphp @if ($canManage) @endif @endforeach
Msg / DND Product Number type Assigned to Edit
@if ($r->task_id) {{ $r->status ?: '—' }} @else Not allocated @endif @if ($r->data_allocation_date)
{{ $r->data_allocation_date }}
@endif
{{ $r->company ?: $r->contact_name ?: '—' }} @if ($r->contact_name && $r->contact_name !== $r->company)
{{ $r->contact_name }}
@endif @if ($r->dr_data){{ $r->dr_data }}@endif
{{ $r->mobile ?: '—' }} @if ($r->task_id) {{ $r->subject ?: 'Task #'.$r->task_id }} @if ($r->final_remark_ins_loan)
{{ $r->final_remark_ins_loan }}
@endif @else No task @endif
@if ($msg){{ $msg[0] }}@endif @if ($dnd){{ $dnd[0] }}@endif @if (! $msg && ! $dnd)—@endif
{{ $r->keyword ?: '—' }} {{ $r->product ?: '—' }} {{ $r->number_type ?: '—' }}
{{ $r->location ?: '—' }}
@if ($r->other_street)
{{ $r->other_street }}
@endif
{{ $r->assigned_user ?: ($r->assigned_user_id ? 'User #'.$r->assigned_user_id : '—') }}
@endif @if ($canManage)
@csrf

Creating a “Not Started” task for contact(s). Contacts that already have a doctor task are skipped.

@unless ($isProductManager) @endunless
@endif
@if ($canManage)
@csrf

Upload a CSV with a header row. Columns: {{ implode(', ', \App\Http\Requests\Doctor\ContactRequest::IMPORT_COLUMNS) }}. Rows whose mobile already exists are skipped.

Download sample file
@endif