@extends('pdf') @section('content-area')

@lang('All purchase payments')

@foreach ($payments as $key => $payment) @endforeach
@lang('#') @lang('Purchase No') @lang('Supplier') @lang('Total') @lang('Paid Amount') @lang('Account') @lang('Payment Date') @lang('Status')
{{ ++$key }} {{ $payment['purchase']['supplier']['name'] }} {{ config('config.purchasePrefix') . '-' . $payment['purchase']['purchase_no'] }} @currency($payment['purchase']['calculated_total']) @currency($payment['amount']) @if (isset($payment['purchase_payment_transaction'])) {{ $payment['purchase_payment_transaction']['cashbook_account']['bank_name'] }} [{{ $payment['purchase_payment_transaction']['cashbook_account']['account_number'] }}] @endif {{ \Carbon\Carbon::parse($payment['date'])->format('d-M-Y') }} @if ($payment['status']) @lang('Active') @else @lang('Inactive') @endif
@endsection