@extends('layouts.admin') @section('content')
Due invoice list
@php $amount=0; @endphp @foreach($invoices as $invoice) @endforeach
Invoice date Client Amount Last payment date
{{$invoice->created_at->format('d M, Y')}} {{$invoice->ppp?$invoice->ppp->name:''}}
{{$invoice->ppp?$invoice->ppp->comments:''}}
@php $amount=$amount+$invoice->amount; @endphp Tk. {{number_format($invoice->amount,2)}} {{$invoice->last_pay_date->format('d M, Y')}}
@endsection