@extends('layouts.website.website') @section('content')
Payment History
to
All Bills & Deposits
@foreach ($payments as $item) @endforeach
Date Invoice # Bill Amount Deposit Deposit Type Options
{{ Carbon\Carbon::parse($item->date)->format('d,m Y') }} {{ $item->invoice_id }} $ {{ $item->total_amount->sum('price') }} $ {{ $item->diposited_amount }} {{ $item->diposit_type }}
Patient Name:

{{ $item->patient->name }}


Address:

{{ $item->patient->address }}

{{ $item->patient->email }}
{{ $item->patient->phone }}
Total Bill Amount
$ {{ $payments->sum('gross_total') }}
Total Deposit Amount
$ {{ $payments->sum('diposited_amount') }}
Due Amount
$ {{ $payments->sum('gross_total') - $payments->sum('diposited_amount') }}
{{-- --}} {{-- --}} @endsection