@php $rxStatusOptions = $column['rxStatusOptions']; $locationOptions = $column['locationOptions']; $issueOptions = $column['issueOptions']; @endphp {{-- This Blade will receive $entry (the Call model) --}}
@foreach($entry->aiPrescriptions as $prescription)
@php $class = ""; if ($prescription->has_collect) { $class="completed"; } $currentUrl = url($crud->route); if(request()->has('view')) { $currentUrl .= '?view=' . request()->get('view'); } $locationDropdownClass = ""; if ( $prescription->location_id ) { $locationDropdownClass = "bgcolor-".$prescription->location_id; } @endphp
@php $entryId = $entry->getKey(); $messageUrl = route('message', [ 'call_id' => $entryId, 'prescription_id' => $prescription->id, ]); $updateUrl = route('updateAiPrescriptionAiEndpoint', ['prescription_id' => $prescription->id]); $completeUrl = route('collectAiPrescriptionAiEndpoint', ['prescription_id' => $prescription->id]); $pivot = $prescription->calls()->wherePivot('call_id', $entryId)->first(); $textBackNumber = $pivot->pivot->text_back_number; @endphp
Ready for collect @if (!empty($textBackNumber)) Ready for collect and Send SMS @endif
@endforeach
@push('after_scripts') @if (request()->ajax()) @endpush @endif @if (!request()->ajax()) @endpush @endif