@include('layouts.header')
@include('layouts.nav') @include('layouts.sidebar')

Transaction Add Payment

@if (session('success')) @endif @if (session('deleteStatus')) @endif @if (session('updateStatus')) @endif {{-- @dd($transaction); --}}
Transaction Name -{{ $transaction->transaction_name }}
{{--
Amount: {{ $TotalInvoice[$transaction->id] + $TotalDepositInvoice[$transaction->id] + $TotalRemainInvoice[$transaction->id] + $TotalDepositPoReturn[$transaction->id] + $TotalDepositPointOfSale[$transaction->id] - ($TotalDepositSaleReturnPos[$transaction->id] + $TotalPurchaseOrder[$transaction->id] + $TotalDepositPurchaseOrder[$transaction->id] + $TotalDepositSaleReturnInvoice[$transaction->id] + $TotalRemainPurchaseOrder[$transaction->id] + $TotalExpense[$transaction->id]) }}
--}} {{--
Amount: {{ number_format($TotalInvoice[$transaction->id] + $TotalDepositInvoice[$transaction->id] + $TotalRemainInvoice[$transaction->id] + $TotalDepositPoReturn[$transaction->id] + $TotalDepositPointOfSale[$transaction->id] - ($TotalPurchaseOrder[$transaction->id] + $TotalDepositPurchaseOrder[$transaction->id] + $TotalDepositSaleReturnInvoice[$transaction->id] + $TotalDepositSaleReturn[$transaction->id] + $TotalExpense[$transaction->id] + $TotalRemainPurchaseOrder[$transaction->id])) }}
--}} {{--
Transaction Name -{{ $transaction->transaction_name }}
--}}
Amount: {{ number_format($total_invoices + $total_deposit_invoices + $total_remain_invoices + $total_deposit_po_returns + $total_deposit_point_of_sales + $totalIn - ($total_purchase_orders + $total_deposit_purchase_orders + $total_deposit_sale_return_invoices + $total_deposit_sale_return_pos + $total_expense + $total_remain_purchase_orders + $totalOut)) }}
{{-- Modal Content --}} {{--
--}}
{{--
--}}
@php $no = '1'; $total = 0; @endphp @foreach ($payment as $index => $payments) @php $no++; $total += $payments->amount; @endphp @endforeach @foreach ($invoices as $invoice) {{-- --}} @php $no++; $total += $invoice->total; @endphp @endforeach @foreach ($deposit_invoices as $invoice) {{-- --}} @php $no++; $total += $invoice->deposit; @endphp @endforeach @foreach ($point_of_sales as $invoice) {{-- --}} @php $no++; $total += $invoice->deposit; @endphp @endforeach @foreach ($sale_return_pos as $invoice) {{-- --}} @php $no++; $total += $invoice->deposit; @endphp @endforeach @foreach ($invoices_remain as $invoice) {{-- --}} @php $no++; $total += $invoice->remain_balance; @endphp @endforeach @foreach ($po_returns as $po_return) @php $no++; $total += $po_return->total; @endphp @endforeach @foreach ($purchase_orders as $po) @php $no++; $total += $po->total; @endphp @endforeach @foreach ($purchase_orders_remain as $po) @php $no++; $total += $po->remain_balance; @endphp @endforeach @foreach ($purchase_orders_deposit as $po) @php $no++; $total += $po->deposit; @endphp @endforeach @foreach ($sale_return_invoices as $po) @php $no++; $total += $po->deposit; @endphp @endforeach @foreach ($expense as $exp) @php $no++; $total += $exp->amount; @endphp @endforeach
No Account Name Transaction Name Source Status Amount Description
{{ $no }} {{ $payments->account->account_name }} {{ $payments->transaction->transaction_name }} Add Payment {{ $payments->payment_status }} {{-- $TotalInvoice = []; $TotalDepositInvoice = []; $TotalRemainInvoice = []; $TotalDepositPurchaseOrder = []; $TotalPurchaseOrder = []; $TotalRemainPurchaseOrder = []; $TotalDepositSaleReturn = []; $TotalDepositPointOfSale = []; $TotalExpense = []; --}} {{ number_format($payments->amount ?? 0, 2) }} {{ $payments->note ?? 'N/A' }}
{{ $no }} {{ $account->account_name }} {{ $invoice->transaction->transaction_name }} {{ $invoice->invoice_no }} {{ $invoice->invoice_no }} IN {{ number_format($invoice->total) }} {{ $invocie->remark ?? 'N/A' }}
{{ $no }} {{ $account->account_name }} {{ $invoice->transaction->transaction_name }}{{ $invoice->invoice_no }}{{ $invoice->invoice_no }} IN {{ number_format($invoice->deposit) }} {{ $invocie->remark ?? 'N/A' }}
{{ $no }} {{ $account->account_name }} {{ $invoice->transaction->transaction_name }}{{ $invoice->invoice_no }}{{ $invoice->invoice_no }} IN {{ number_format($invoice->deposit) }} {{ $invocie->remark ?? 'N/A' }}
{{ $no }} {{ $account->account_name }} {{ $invoice->transaction->transaction_name }}{{ $invoice->invoice_no }}{{ $invoice->quote_no }} OUT {{ number_format($invoice->deposit) }} {{ $invocie->remark ?? 'N/A' }}
{{ $no }} {{ $account->account_name }} {{ $invoice->transaction->transaction_name }}{{ $invoice->invoice_no }}{{ $invoice->invoice_no }} IN {{ number_format($invoice->remain_balance) }} {{ $invocie->remark ?? 'N/A' }}
{{ $no }} {{ $account->account_name }} {{ $po_return->transaction->transaction_name }} {{ $po_return->invoice_no }} OUT {{ number_format($po_return->total) }} {{ $po_return->remark ?? 'N/A' }}
{{ $no }} {{ $account->account_name }} {{ $po->transaction->transaction_name }} {{ $po->quote_no }} OUT {{ number_format($po->total) }} {{ $po->remark ?? 'N/A' }}
{{ $no }} {{ $account->account_name }} {{ $po->payable_transaction->transaction_name }} {{ $po->quote_no }} OUT {{ number_format($po->remain_balance) }} {{ $po->remark ?? 'N/A' }}
{{ $no }} {{ $account->account_name }} {{ $po->transaction->transaction_name }} {{ $po->quote_no }} OUT {{ number_format($po->deposit) }} {{ $po->remark ?? 'N/A' }}
{{ $no }} {{ $account->account_name }} {{ $po->transaction->transaction_name }} {{ $po->quote_no }} OUT {{ number_format($po->deposit) }} {{ $po->remark ?? 'N/A' }}
{{ $no }} {{ $account->account_name }} {{ $exp->transaction->transaction_name }} Expense OUT {{ number_format($exp->amount) }} {{ $exp->description ?? 'N/A' }}
Total {{ number_format($total) }}
{{-- --}} @php $no = '1'; @endphp @foreach ($invoices as $invoice) @if ($invoice->total == $invoice->deposit) @elseif($invoice->total > $invoice->deposit && $invoice->deposit > 0) @else @endif @php $no++; @endphp @endforeach @foreach ($invoices_remain as $invoice) @if ($invoice->total == $invoice->deposit) @elseif($invoice->total > $invoice->deposit && $invoice->deposit > 0) @else @endif @php $no++; @endphp @endforeach @foreach ($deposit_invoices as $invoice) @if ($invoice->total == $invoice->deposit) @elseif($invoice->total > $invoice->deposit && $invoice->deposit > 0) @else @endif @php $no++; @endphp @endforeach
No Invoice No.LocationDeposit Balance Total Payment Status Invoice Date
{{ $no }} {{ $invoice->invoice_no }} {{ number_format($invoice->deposit) }} {{ number_format($invoice->remain_balance) }} {{ number_format($invoice->total) }} Paid Partial PaidUnpaid {{ $invoice->invoice_date }}
{{ $no }} {{ $invoice->invoice_no }} {{ number_format($invoice->deposit) }} {{ number_format($invoice->remain_balance) }} {{ number_format($invoice->total) }} Paid Partial PaidUnpaid {{ $invoice->invoice_date }}
{{ $no }} {{ $invoice->invoice_no }} {{ number_format($invoice->deposit) }} {{ number_format($invoice->remain_balance) }} {{ number_format($invoice->total) }} Paid Partial PaidUnpaid {{ $invoice->invoice_date }}
@php $no = '1'; @endphp @foreach ($point_of_sales as $pos) @php $no++; @endphp @endforeach
No. POS No. Location Date Cash Change Due Total Amount Sale By
{{ $no }} {{ $pos->invoice_no }} @foreach ($warehouses as $warehouse) @if ($warehouse->id == $pos->branch) {{ $warehouse->name }} @endif @endforeach {{ $pos->invoice_date }} {{ number_format($pos->deposit) }} {{ number_format($pos->remain_balance) }} {{ number_format($pos->total) }} {{ $pos->sale_by }}
{{-- --}} @php $no = '1'; @endphp @foreach ($purchase_orders as $po) {{-- --}} @php $no++; @endphp @endforeach @foreach ($purchase_orders_deposit as $po) {{-- --}} @php $no++; @endphp @endforeach @foreach ($purchase_orders_remain as $po) {{-- --}} @php $no++; @endphp @endforeach
No PO No.LocationDeposit Balance Total PO Date
{{ $no }} {{ $po->quote_no }} @foreach ($warehouses as $warehouse) @if ($warehouse->id == $po->branch) {{ $warehouse->name }} @endif @endforeach {{ number_format($po->remain_balance) }} {{ number_format($po->deposit) }} {{ number_format($po->total) }} {{ $po->po_date }}
{{ $no }} {{ $po->quote_no }} @foreach ($warehouses as $warehouse) @if ($warehouse->id == $po->branch) {{ $warehouse->name }} @endif @endforeach {{ number_format($po->remain_balance) }} {{ number_format($po->deposit) }} {{ number_format($po->total) }} {{ $po->po_date }}
{{ $no }} {{ $po->quote_no }} @foreach ($warehouses as $warehouse) @if ($warehouse->id == $po->branch) {{ $warehouse->name }} @endif @endforeach {{ number_format($po->remain_balance) }} {{ number_format($po->deposit) }} {{ number_format($po->total) }} {{ $po->po_date }}
@php $no = '1'; @endphp @foreach ($po_returns as $po) @php $no++; @endphp @endforeach
No PO Return No. Location Deposit Balance Total Invoice Date
{{ $no }} {{ $po->invoice_no }} @foreach ($warehouses as $warehouse) @if ($warehouse->id == $po->branch) {{ $warehouse->name }} @endif @endforeach {{ number_format($po->deposit) }} {{ number_format($po->remain_balance) }} {{ number_format($po->total) }} {{ $po->invoice_date }}
@php $no = '1'; @endphp @foreach ($sale_return_invoices as $sr_inv) @php $no++; @endphp @endforeach
No Sale Return No. Location Deposit Balance Total Date
{{ $no }} {{ $sr_inv->quote_no }} @foreach ($warehouses as $warehouse) @if ($warehouse->id == $sr_inv->branch) {{ $warehouse->name }} @endif @endforeach {{ number_format($sr_inv->deposit) }} {{ number_format($sr_inv->remain_balance) }} {{ number_format($sr_inv->total) }} {{ $sr_inv->po_date }}
@php $no = '1'; @endphp @foreach ($sale_return_pos as $sr_pos) @php $no++; @endphp @endforeach
No Sale Return No. Location Deposit Balance Total Date
{{ $no }} {{ $sr_pos->quote_no }} @foreach ($warehouses as $warehouse) @if ($warehouse->id == $sr_pos->branch) {{ $warehouse->name }} @endif @endforeach {{ number_format($sr_pos->deposit) }} {{ number_format($sr_pos->remain_balance) }} {{ number_format($sr_pos->total) }} {{ $sr_pos->po_date }}