@extends('layouts/layoutMaster') @section('title', 'View OPD') @section('vendor-style') @vite(['resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.scss', 'resources/assets/vendor/libs/select2/select2.scss', 'resources/assets/vendor/libs/@form-validation/form-validation.scss', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.scss']) @endsection @section('vendor-script') @vite(['resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js', 'resources/assets/vendor/libs/select2/select2.js', 'resources/assets/vendor/libs/@form-validation/popular.js', 'resources/assets/vendor/libs/@form-validation/bootstrap5.js', 'resources/assets/vendor/libs/@form-validation/auto-focus.js', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.js', 'resources/assets/vendor/libs/cleavejs/cleave.js', 'resources/assets/vendor/libs/cleavejs/cleave-phone.js']) @endsection @section('page-script') @vite('resources/assets/js/app-user-list.js') @vite('resources/assets/js/opd-cases-list.js') @endsection @section('content')
@if (session('success')) @endif @if (session('error')) @endif
OPD Management
Header Image

Patient Information

MRN: {{ $opdCase->patient->mrn }}

Name: {{ $opdCase->patient->name }}

Visit No#: {{ $opdCase->visit_no }}

Age: {{ $opdCase->patient->age }}

@if ($opdCase->patient->height)

Height: {{ $opdCase->patient->height . ' ft in' }}

@endif

Weight: {{ $opdCase->patient->weight . ' kg' }}

Pulse: {{ $opdCase->patient->pulse . ' bpm' }}

@if ($opdCase->patient->blood_pressure)

Blood Pressure: {{ $opdCase->patient->blood_pressure . ' mm Hg' }}

@endif

Temperature: {{ $opdCase->patient->temperature . ' °C' }}

@if ($opdCase->patient->respiratory)

Respiratory: {{ $opdCase->patient->respiratory }}

@endif

Doctor: {{ $opdCase->doctor->name }}


Complaint

Patient's Complain: {!! $opdCase->presenting_complaint ?? 'n/a' !!}

Patient's History: {!! $opdCase->history ?? 'n/a' !!}

Examination

Patient's Diagnose: {!! $opdCase->provisional_diagnose ?? 'n/a' !!}

Patient's Examination: {!! $opdCase->examination ?? 'n/a' !!}

@if ($opdCase->special_instruction)

Treatment Plan: {!! $opdCase->special_instruction ?? 'n/a' !!}

@endif

Follow-up-days: {{ $opdCase->follow_up_days }}

@php $hasMedication = $opdCase->medicine->contains(function ($medication) { return $medication->medicine_name !== 'None'; }) || $opdCase->othermedicine->contains(function ($medication) { return $medication->medicine_name !== 'None'; }); @endphp @if ($hasMedication) {{--

Medication


@foreach ($opdCase->medicine as $index => $medication) @if ($medication->medicine_name !== 'None')

Name: {{ $medication->medicine_name ?? 'n/a' }}

Dose: {{ $medication->dose ?? 'n/a' }}

Frequency: {{ $medication->frequency ?? 'n/a' }}

Duration (days): {{ $medication->duration ?? 'n/a' }}

@endif @endforeach

@foreach ($opdCase->othermedicine as $index => $medication) @if ($medication->medicine_name !== 'None')

Name: {{ $medication->medicine_name ?? 'n/a' }}

Dose: {{ $medication->dose ?? 'n/a' }}

Frequency: {{ $medication->frequency ?? 'n/a' }}

Duration (days): {{ $medication->duration ?? 'n/a' }}

@endif @endforeach
--}}

Medication


@foreach ([$opdCase->medicine, $opdCase->othermedicine] as $medications) @foreach ($medications as $medication) @if ($medication->medicine_name !== 'None') @endif @endforeach @endforeach
Medicine Name Dose Frequency Duration (days)
{{ $medication->medicine_name ?? '-' }} {{ $medication->dose ?? '-' }} {{ $medication->frequency ?? '-' }} {{ $medication->duration ?? '-' }}
@endif @if ($opdCase->other_medicine)

Instructions: {!! $opdCase->other_medicine ?? 'n/a' !!}

@endif
Footer Image
@endsection