@extends('layouts.master') @section('title', $title) @php $f = $filters; $fmt = fn($d) => $d ? \Carbon\Carbon::parse($d)->format('d M, Y') : ''; $money = fn($v) => '$ ' . number_format((float) $v, 2); $typeMeta = [ 'emergency' => ['Emergency', 'ti-ambulance', 'danger'], 'admission' => ['Admission', 'ti-bed', 'primary'], 'appointment' => ['Appointment', 'ti-stethoscope', 'info'], 'other' => ['Other', 'ti-receipt', 'secondary'], ]; @endphp @section('content') {{-- ===== Filters ===== --}}
@foreach ($pharmacyProducts ?? [] as $pn)
Leave the dates empty to see every visit (all time).
@if (!isset($patient))
Select a patient to see their statement.
@else
Print unpaid @can('statement-pay') @if ($payable->isNotEmpty()) @endif @endcan
{{-- ===== Pay: every unpaid bill with its own discount and amount ===== --}} @can('statement-pay') @endcan @endif @endsection @section('page_js') @endsection