@extends('layouts.app') @section('content')
{{ $supplier->company_name }}
| # | Date | Type | Reference | Description | Debit | Credit | Balance |
|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | @if($transaction['date']) {{ \Carbon\Carbon::parse( $transaction['date'] )->format('d-m-Y') }} @else - @endif | @if($transaction['type'] === 'Purchase') Purchase @elseif( $transaction['type'] === 'Payment' ) Payment @else Opening @endif | {{ $transaction['reference'] }} | {{ $transaction['description'] }} | @if($transaction['debit'] > 0) ₹{{ number_format( $transaction['debit'], 2 ) }} @else - @endif | @if($transaction['credit'] > 0) ₹{{ number_format( $transaction['credit'], 2 ) }} @else - @endif | ₹{{ number_format( $transaction['balance'], 2 ) }} |
| No transactions found. | |||||||
| Closing Balance | ₹{{ number_format( $totalPurchases + $openingBalance, 2 ) }} | ₹{{ number_format( $totalPaid, 2 ) }} | ₹{{ number_format( $outstanding, 2 ) }} | ||||