@extends('layouts.app') @section('title', 'Purchase Order Report') @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if ($errors->any())
{!! implode('
', $errors->all(':message')) !!}
@endif

Total Non Transferred Invoices

{{ $invoices->count() }}

Total Non Transferred Net Amount

0

has('from')) onfocus="this.type='date'" onblur="if(this.value===''){this.type='text'}" @else type="date" @endif class="form-control bg-white" placeholder="From" name="from" value="@if(request()->has('from')){{request()->from}}@endif" />
has('to')) onfocus="this.type='date'" onblur="if(this.value===''){this.type='text'}" @else type="date" @endif class="form-control bg-white" placeholder="To" name="to" value="@if(request()->has('to')){{request()->to}}@endif" />
@if(!request()->has('from'))

Showing results from past 90 days.

@endif
@php $net_amount = 0; @endphp @foreach($invoices as $invoice) @php $net_amount += $invoice->amount; @endphp @endforeach
Supplier Invoice No. Invoice Date Net Amount VAT Gross View
{{ $invoice->company_name }} {{ $invoice->invoice_no }} {{ date('d M, Y', strtotime($invoice->date)) }} £{{ number_format($invoice->amount, 2) }} £{{ number_format($invoice->vat, 2) }} £{{ number_format($invoice->vat+$invoice->amount, 2) }}
@endsection @section('js') @endsection