@extends('app.master') @section('title',$title) @section('breadcrumb') @include('app.layouts.rent.breadcrumb',[ 'pageTitle' => $title, 'lists' => [ [ 'link' => '#', 'name' => 'Invoice Management', ], [ 'link' => 'payments.index', 'name' => 'Payments', ], [ 'link' => 'invoices.generate', 'name' => $title, ] ] ]) @endsection @section('style') @endsection @section('content')
@yield('title')

Invoice

{{ $invoice->tenant->name }}

{{ $invoice->tenant->present_address }}
Mobile: {{ $invoice->tenant->mobile }}
Email: {{ $invoice->tenant->email }}

{{ config('company.name') }}

{{ config('company.address') }}
Phone: {{ config('company.phone') }}
Email: {{ config('company.email') }}

Invoice No {{ $invoice->invoice }}

{{--

Project ID 32334300

--}}

Issue Date: {{ date("F d, Y",strtotime($invoice->date)) }}

Due Date: {{ date("F d, Y",strtotime(date("Y-m-".config('rent.paymentDueDay')))) }}

@php $subTotal = 0; @endphp @foreach($invoice->houseRents as $key => $houserent) @php $subTotal += $houserent->amount; @endphp @endforeach {{-- --}} @if($invoice->arrear > 0) @endif
#Sl. Rent Items Month/Year SF PPSF Unit PPU Amount
{{ $key+1 }} {{ $houserent->rentHead->name }} {{ months()[$houserent->bill_month]."/".$houserent->bill_year }} {{ $houserent->sf }} {{ $houserent->ppsf }} {{ $houserent->unit }} {{ $houserent->ppu }} {{ $houserent->amount }}

Sub-Total {{ formatMoney($subTotal,2) }}
Tax (5%) $287.50
Paid {{ formatMoney($invoice->amount,2) }}
Arrear {{ $invoice->arrear }}
Total Due

{{ formatMoney($subTotal-$invoice->amount,2) }}


{!! poweredBy() !!}
@endsection @section('script') @endsection