@extends('layouts.list_pdf') @section('pdf-title')
{{ __('Supplier Ledger') }}
{{ __('Name:') }} {{ isset($supplier) ? $supplier : ''}}
@if (isset($date_range) && !empty($date_range)){{ __('Period:') }} {{ $date_range }}
@endif{{ __('Print Date:') }} {{ formatDate(date('d-m-Y')) }}
| {{ __('SL No') }} | {{ __('Date') }} | {{ __('Purchase Order') }} | {{ __('Paid Amount') }} | {{ __('Bill Amount') }} | {{ __('Balance') }} | {{ __('Currency') }} |
| {{ ++$key }} | {{ formatDate($data['transaction_date']) }} | @if(!empty($data['purchase_order_id'])) {{ $data['purchase_order']['reference'] }} @else {{ $data['reference'] }} @endif | @if(isset($data['amount'])) {{ formatCurrencyAmount($data['amount']) }} @else {{ '-' }} @endif | @if(isset($data['total'])) {{ formatCurrencyAmount($data['total']) }} @else {{ '-' }} @endif | {{ formatCurrencyAmount($balance) }} | {{ $data['currency']['name'] }} |
| {{ __('Total') }} = | @php $supplierLedger = !empty($supplierLedger[0]['currency']['name']) ? $supplierLedger[0]['currency']['name'] : ''; @endphp{{ formatCurrencyAmount($totalPaid, $supplierLedger) }} | {{ formatCurrencyAmount($totalBill, $supplierLedger) }} | {{ formatCurrencyAmount($balance, $supplierLedger) }} |