@extends('layouts.app') @section('title','OPD Booking Billings') @section('pages')
Patient

{!! $patients['name'] ?? '' !!}

{!! isset($patients['phone_no']) && $patients['phone_no'] != '' ? ' ' . $patients['phone_no'] : '' !!}

{!! isset($patients['gender']) && $patients['gender'] != '' ? ' ' . $patients['gender'] : '' !!}{!! isset($patients['date_of_birth']) && $patients['date_of_birth'] != '' ? ', ' . age($patients['date_of_birth']) . ' Years' : '' !!}

Doctor
@if(!empty($doctors))

{!! $doctors['name'] ?? '' !!}

{!! $doctors['qualifications']?Str::limit(ucfirst($doctors['qualifications']), 60):''!!}

@else

Self

@endif
Center
@if(!empty($refferal_lab))

{!! $refferal_lab['name'] ?? '' !!}

{!! isset($refferal_lab['phone_no']) && $refferal_lab['phone_no'] != '' ? ' ' . $refferal_lab['phone_no'] : '' !!}

{!! isset($refferal_lab['gender']) && $refferal_lab['gender'] != '' ? ' ' . $refferal_lab['gender'] : '' !!}

{!! isset($refferal_lab['date_of_birth']) && $refferal_lab['date_of_birth'] != '' ? ' ' . $refferal_lab['date_of_birth'] : '' !!}

@else

Self

@endif
Agent
@if(!empty($collection_agent))

{!! $collection_agent['name'] ?? '' !!}

{!! isset($collection_agent['phone_no']) && $collection_agent['phone_no'] != '' ? ' ' . $collection_agent['phone_no'] : '' !!}

{!! isset($collection_agent['gender']) && $collection_agent['gender'] != '' ? ' ' . $collection_agent['gender'] : '' !!}

{!! isset($collection_agent['date_of_birth']) && $collection_agent['date_of_birth'] != '' ? ' ' . $collection_agent['date_of_birth'] : '' !!}

@else

Self

@endif
@csrf @method('Patch')
Billing Details

@php $amount = 0; @endphp @foreach($creditTransaction as $credit) @php $amount+=$credit->amount; @endphp @endforeach
@if(isset($accounting_group) && count($accounting_group) > 0) @foreach($accounting_group as $key => $list) @php $totalAmount = 0; @endphp {{-- @foreach($creditTransaction as $transaction) @if($transaction->payment_mode_id == $list->id) @php $totalAmount=$transaction->amount; @endphp @endif @endforeach--}} @endforeach @else @endif @if($discount_group) @endif @if($round_off) @endif
Transaction Mode Transaction Reference Amount
{{$list->name ?? ''}}
No Data Found
{{$discount_group->name ?? ''}}
{{$round_off->name ?? ''}}
Additional Details

@endsection @section('js') @endsection