@extends('layouts.main') @push('styles') @endpush @section('content')
| {{ __('pharmacy.number') }} | {{ __('pharmacy.item_name') }} | {{ __('pharmacy.quantity') }} | @if($requisition_model->quotation_type_id ==1 || $requisition_model->quotation_type_id ==5){{ __('pharmacy.units') }} | @endif{{ __('pharmacy.cost_value') }} | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $counter }}. | @if($requisition_type_id == 1){{ get_name($item_array[$i], 'id', 'name', 'drugs') }} | @php $cost_price = get_name($item_array[$i], 'id', 'cost_price', 'drugs'); $drug_form = get_name($item_array[$i], 'id', 'form_id', 'drugs'); $drug_form_name = get_name($drug_form,'id','name','drug_forms'); if ($drug_form_name == 'N/A') $drug_form_name =null; @endphp @elseif($requisition_type_id == 2){{ get_name($item_array[$i], 'id', 'name','sundries') }} | @php $cost_price = get_name($item_array[$i], 'id', 'cost_price', 'sundries'); $drug_form = get_name($item_array[$i], 'id', 'package_unit_id', 'sundries'); @endphp @elseif($requisition_type_id == 3){{ get_name($item_array[$i], 'id', 'name','dentals') }} | @php $cost_price = get_name($item_array[$i], 'id', 'cost_price', 'dentals'); $drug_form = null; @endphp @elseif($requisition_type_id == 4){{ get_name($item_array[$i], 'id', 'name','radiologies') }} | @php $cost_price = get_name($item_array[$i], 'id', 'cost_price', 'radiologies'); $drug_form = get_name($item_array[$i], 'id', 'form_id', 'radiologies'); @endphp @elseif($requisition_type_id == 5){{ get_name($item_array[$i], 'id', 'name','labs') }} | @php $cost_price = get_name($item_array[$i], 'id', 'cost_price', 'labs'); $drug_form = get_name($item_array[$i], 'id', 'form_id', 'labs'); $drug_form_name=get_name($drug_form, 'id','name','lab_forms'); if ($drug_form_name == 'N/A') $drug_form_name =null; @endphp @elseif($requisition_type_id == 6){{ get_name($item_array[$i], 'id', 'name','general_items') }} | @php $cost_price = get_name($item_array[$i], 'id', 'cost_price', 'general_items'); $drug_form = null; @endphp @elseif($requisition_type_id == 7){{ get_name($item_array[$i], 'id', 'name','eye_glasses') }} | @php $cost_price = get_name($item_array[$i], 'id', 'buying_price', 'eye_glasses'); $drug_form = null; @endphp @endif{{ $quantity_array[$i] }} | @if($requisition_type_id ==1 || $requisition_type_id ==5 ){{ $drug_form_name }} | @endif@php if (track_items_using_batches()){ $item_sub_total =get_unit_cost_from_store_batch($item_array[$i],$requisition_type_id,$quantity_array[$i],'store_stock'); }else{ $quantity = (isset($quantity_array[$i]) && is_numeric($quantity_array[$i])) ? $quantity_array[$i] : 0; $item_cost = is_numeric($cost_price) ? $cost_price : 0; $item_sub_total = $quantity * $item_cost; } $grand_total += $item_sub_total; @endphp {{ ugandan_shillings($item_sub_total) }} |
| @if($requisition_type_id ==1 || $requisition_model->quotation_type_id ==5) | @endif | {{ __('pharmacy.total') }} | {{ ugandan_shillings($grand_total) }} | |||||||