@extends('layouts.master') @section('title', 'Supplier Report') @section('page-header') Supplier Report @stop @push('style') @endpush @section('content')
@include('partials._alert_message')

@yield('page-header')

Date
Refresh
@php $total_amount = 0; $total_paid = 0; $total_due = 0; @endphp @foreach ($purchases as $key => $purchase) @php $total_amount += $purchase->total_amount; $total_paid += $purchase->paid_amount; $total_due += $purchase->due_amount; @endphp @endforeach {{-- @if($transactions->currentPage() == $transactions->lastPage()) @endif --}}
Sl Date Inv No Company Supplier Paid Due Total
{{ $purchases->firstItem() + $key }} {{ $purchase->date }} {{ $purchase->invoice_no }} {{ optional($purchase->company)->name }} {{ optional($purchase->supplier)->name }} {{ number_format($purchase->paid_amount, 2) }} {{ number_format($purchase->due_amount, 2) }} {{ number_format($purchase->total_amount, 2) }}
Total In Page {{ number_format($total_paid, 2) }} {{ number_format($total_due, 2) }} {{ number_format($total_amount, 2) }}
Grand Total {{ number_format($grand_total_debit_balance, 2) }} {{ number_format($grand_total_credit_balance, 2) }}
@include('partials._paginate', ['data' => $purchases])
@endsection @section('js') @endsection