@extends('backend.template.layouts.template-base') @section('title', 'Bill - #' . $regNo) @section('styles') @php $billPrintPageSize = $printSettings['page_size'] ?? 'A4'; $billPrintOrientation = $printSettings['orientation'] ?? 'portrait'; @endphp @endsection @section('content') @php $patient = $bill->patient; $reportCanBeSent = $reportCanBeSent ?? $bill->isPatientPortalReady(); @endphp
Page size: {{ $printSettings['page_size'] ?? 'A4' }} Orientation: {{ ucfirst($printSettings['orientation'] ?? 'portrait') }} Print settings guide
@if (session('success')) @endif @if (session('error')) @endif @if ($errors->any())
@endif
@include('backend.template.diagnostic.cases.bill.partials.bill-print-paper')
Modify View lab report
SMS credits remaining —
Transaction history
@if ($transactions->isNotEmpty()) @foreach ($transactions as $txn) @endforeach
Date Time Amount Received by Mode
{{ $txn->transaction_date ? \Carbon\Carbon::parse($txn->transaction_date)->format('d/m/Y') : '-' }} @if ($txn->transaction_time) {{ \Carbon\Carbon::parse($txn->transaction_time)->format('h:i A') }} @else - @endif + Rs.{{ number_format(abs((float) $txn->amount), floor($txn->amount) == $txn->amount ? 0 : 2) }} {{ $txn->received_by ?? '-' }} {{ ucfirst($txn->payment_method ?? $bill->payment_mode ?? '-') }}
@else

No transactions recorded.

@endif
Sidebar
@if ($patient)
Patient info
@endif
Doctor info
@if ($patient)
Patient history
@endif
Recent lab reports
@forelse ($recentReports as $report) Bill #{{ $report->patient?->uhid ?? $report->id }} — {{ $report->created_at?->format('d/m/Y') }} @empty No other reports @endforelse
@include('backend.template.diagnostic.cases.bill.partials.whatsapp-share-report', [ 'waModalId' => 'whatsAppShareReportModal', 'waSignedOff' => $reportCanBeSent, ]) @include('backend.template.diagnostic.cases.bill.partials.lab-letterhead-address-modal', [ 'letterheadModalId' => 'billLabAddressModal', 'letterheadRedirectTo' => 'show', ]) @endsection @section('scripts') @endsection