@extends('hms.layout') @section('title','Invoice review & controls') @section('content')

{{ $bill->number }} @if($bill->billing_label) · {{ $bill->billing_label }} @endif

{{ $patient->first_name }} {{ $patient->last_name }} · {{ ucfirst($bill->status) }} · {{ $bill->currency }} {{ number_format($bill->total,2) }}

Billing & paymentsPrint included charges

Exclusions affect billing only; they do not reverse care, stock movements or clinical records. Issued invoices and invoices with payment history are locked. Splitting moves whole charges into a linked draft for the same patient and facility.

Charges and exclusions

@foreach($lines as $line)
{{ $line->description }} · {{ $line->quantity }} × {{ number_format($line->unit_price,2) }} = {{ number_format($line->line_total,2) }} @if($line->excluded_at)Excluded

Reason: {{ $line->exclusion_reason }}

@endif @if($canManage && $editable)
@csrf
@endif
@endforeach

Payable total: {{ number_format($bill->total,2) }} {{ $bill->currency }}

@if($canManage && $editable)

Split selected charges

Leave at least one included charge on this invoice. Quantities and prices are preserved. The label is a billing reference; it does not create insurance cover or transfer payments.

@csrf @foreach($lines->whereNull('excluded_at') as $line) @endforeach
@endif

Related invoices

@foreach($related as $other){{ $other->number }} · {{ $other->billing_label??'Original invoice' }} · {{ $other->status }} · {{ number_format($other->total,2) }} {{ $other->currency }} @endforeach

Change history

@forelse($events as $event)

{{ str_replace('_',' ',$event->action) }} · {{ $event->name }} · {{ $event->created_at }}
{{ $event->reason }}

@empty

No exclusions or splits recorded.

@endforelse
@endsection