@extends('admin.layout.app') @section('title','Rental Invoice') @section('content')

Rental Invoice

Garage

Invoice #
{{$invoice->invoice_number}}


Garage, Inc.

Start Date: {{date('d-M-Y', strtotime($invoice->start_date))}}

Receive Date {{date('d-M-Y', strtotime($invoice->receive_date))}}

@foreach($invoice_details as $invoice_detail) @endforeach
# Plate Number Description Quantity Unit Cost Amount Discount Gross Amount 5% VAT
{{ $invoice_detail->id }} {{$invoice_detail->plate_number}} {{$invoice_detail->description}} {{$invoice_detail->no_of_days}} {{$invoice_detail->unit_price}} {{$invoice_detail->no_of_days * $invoice_detail->unit_price}} {{$invoice_detail->discount}} {{($invoice_detail->no_of_days * $invoice_detail->unit_price) - $invoice_detail->discount}} {{$invoice_detail->vat}}
PAYMENT TERMS AND POLICIES
All accounts are to be paid within 7 days from receipt of invoice. To be paid by cheque or credit card or direct payment online. If account is not paid within 7 days the credits details supplied as confirmation of work undertaken will be charged the agreed quoted fee noted above.
@php $t_amount= 0; $t_discount = 0; $t_vat = 0; @endphp @foreach($invoice_details as $invoice_detail) @php $t_discount += $invoice_detail->discount; $t_amount += $invoice_detail->no_of_days * $invoice_detail->unit_price; $t_vat += $invoice_detail->vat; @endphp @endforeach

Sub-total: {{$t_amount}}

Discout: {{$t_discount}}

VAT: {{$t_vat}}


AED {{$t_amount - $t_discount + $t_vat}}


@endsection