@extends('layouts.nav') @section('title') {{$type}} Invoice @endsection @section('content')

{{$type}} Invoice

Date

@php use Carbon\Carbon; $todayLongDate = Carbon::now()->format(' F j, Y'); @endphp

{{$todayLongDate}}

Invoice #

{{$invoice}}

@foreach ($pdetails as $pdetail)

{{ $pdetail->Name}}

{{ $pdetail->Address}}

{{ $pdetail->Email}}

{{ $pdetail->Phone}}

@endforeach
@foreach ($cst as $cs)

{{ $cs->Name}}

{{ $cs->Address}}

{{ $cs->Email}}

{{ $cs->Contact}}

@endforeach
@foreach ($Jts as $Jt) @php $contractCode = $Jt->ContraCode; if (!empty($Jt->ContraSubCode)) { $contractCode .= '/' . $Jt->ContraSubCode; } @endphp @endforeach
Description Qty Price Tax % Tax Amt Disc % Disc Amt Total
{{$contractCode.' '.$Jt->Narration}} {{ number_format($Jt->Qnty, 2) }} {{ number_format($Jt->Price * $Jt->Rate, 2) }} {{ number_format($Jt->Tax, 2) }} {{ number_format((($Jt->Price - ($Jt->Price * ($Jt->Discount / 100))) * $Jt->Qnty) * ($Jt->Tax / 100) * $Jt->Rate, 2) }} {{ number_format($Jt->Discount, 2) }} {{ number_format((($Jt->Price * $Jt->Qnty) * ($Jt->Discount / 100)) * $Jt->Rate, 2) }} {{ number_format(($Jt->Price * $Jt->Qnty) * $Jt->Rate, 2) }}
Total (Excl):
{{ $symbol.' '.number_format($totalExcludingTax, 2) }}
Tax Amount:
{{ $symbol.' '.number_format($totalTaxAmount, 2) }}
Total (Disc):
{{ $symbol.' '.number_format($totalDiscounts, 2) }}
Total (Incl):
{{ $symbol.' '.number_format($totalIncludingTax, 2) }}

PAYMENT DETAILS

@foreach ($Bankaccounts as $Bankaccount)

Bank Name: {{$Bankaccount->Name}}

Account Number: {{$Bankaccount->Account}}

@endforeach

Notes

@foreach ($pdetails as $pdetail)

{{'Please make all payments to '. $pdetail->Name.'. Ensure that the invoice number is included with your payment for proper allocation.'}}

@endforeach

@endsection