{{-- DTHospital - pharmacy receipt. Copyright (c) ICT Innovations Part of DTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content') @if (Session::get('success'))
{{ Session::get('success') }}
@endif

Receipt {{ $sale->date }}

Patient: @if ($patient) {{ $patient->name }} ({{ $patient->patient_id }}) @else Counter sale @endif

@foreach ($sale->items as $item) @endforeach
Medicine Quantity Unit Total
{{ $item->name }} {{ $item->quantity }} {{ number_format((float) $item->unit_price, 2) }} {{ number_format((float) $item->line_total, 2) }}
Subtotal {{ number_format((float) $sale->amount, 2) }}
Discount {{ number_format((float) $sale->discount, 2) }}
Tax {{ number_format((float) $sale->vat, 2) }}
Total {{ number_format((float) $sale->gross_total, 2) }}
Received {{ number_format((float) $sale->amount_received, 2) }}
@stop @section('script') @stop