@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 $grand_total_amount = 0; $grand_total_paid = 0; $grand_total_due = 0; @endphp @foreach ($transaction_purchases as $key => $purchase) @php $grand_total_paid += $total_paid = $purchase->debit_amount; $grand_total_due += $total_due = $purchase->credit_amount; $grand_total_amount += $total_amount = ($purchase->debit_amount + $purchase->credit_amount); @endphp @endforeach
Sl Date Inv No Company Supplier Paid Due Total
{{ $transaction_purchases->firstItem() + $key }} {{ $purchase->date }} {{ $purchase->invoice_no }} {{ optional($purchase->company)->name }} {{ optional($purchase->account)->name }} {{ number_format($total_paid, 2) }} {{ number_format($total_due, 2) }} {{ number_format($total_amount, 2) }}
Total In Page {{ number_format($grand_total_paid, 2) }} {{ number_format($grand_total_due, 2) }} {{ number_format($grand_total_amount, 2) }}
Grand Total {{ number_format($total_purchase_paid, 2) }} {{ number_format($total_purchase_due, 2) }} {{ number_format($total_purchase_amount, 2) }}
@include('partials._paginate', ['data' => $transaction_purchases])
@endsection @section('js') @endsection