@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
{{-- Location dropdown --}}
Location
{{--
--}}
{{-- RxStatus dropdown --}}
Status
{{--
--}}
{{-- Prescription Issue Drowdown --}}
Issue
{{--
--}}
@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