@extends('layouts.main') @push('styles') @endpush @section('content')
| # | {{ __('prescriptions.drug') }} | {{ __('prescriptions.dosage') }} | {{ __('prescriptions.duration') }} | {{ __('prescriptions.quantity') }} | {{ __('prescriptions.total_cost') }} | {{ __('prescriptions.instructions') }} |
|---|---|---|---|---|---|---|
| {{ $x+1 }} | {{ get_name($drugs_array[$x], 'id', 'name', 'drugs') }} | {{ $dosage_array[$x] }} {{ get_name($frequencies_array[$x], 'id', 'name', 'dosage_frequencies') }} | {{ $duration_array[$x] }} | {{ $quantity_dispensed_array[$x] }} | @php if(get_name($drugs_array[$x], "id", "insurance_coverage", "drugs") == 1 && patient_insurance_status($patient->id) == 1){ $cost_price = get_name($drugs_array[$x], "id", "insured_price", "drugs"); } else { $cost_price = get_name($drugs_array[$x], "id", "non_insured_price", "drugs"); } $drug_price = $cost_price * $quantity_dispensed_array[$x]; $total_drug_price += $drug_price; @endphp{{ ugandan_shillings($drug_price) }} | {{ trim($instructions_array[$x]) }} |
| {{ __('prescriptions.total') }} | {{ ugandan_shillings($total_drug_price) }} | |||||