@extends('layouts.app') @section('title','Booking Convert To Appointment 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
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) @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 ?? ''}}
{{--
--}}
@if($booking_type == 'Appointment') @php $totalDue = convertDecimelPoint($data['due_balance_amount']); @endphp @else @php $totalDue = convertDecimelPoint($transactionSummery['totalBilling'] - $transactionSummery['discountAmount']-$transactionSummery['receivedAmount']); @endphp @endif @php $total_advance_received = $transactionSummery['receivedAmount']??0; $totalDiscount = $transactionSummery['discountAmount']??0; @endphp
Additional Details

Transactions History
@endsection @section('js') @endsection