@extends('layouts.admin') @section('page-title') {{ __('Account Drilldown Report') }} @endsection @section('breadcrumb')
| {{ __('Account Name') }} | {{ __('Name') }} | {{ __('Transaction Type') }} | {{ __('Transaction Date') }} | {{ __('Debit') }} | {{ __('Credit') }} | {{ __('Balance') }} | |
|---|---|---|---|---|---|---|---|
| {{ $accountName->name }} | @php $invoice = \App\Models\Invoice::where('id', $invoiceData->invoice_id)->first(); @endphp{{ !empty($invoice->customer) ? $invoice->customer->name : '-' }} | {{ \Auth::user()->invoiceNumberFormat($invoice->invoice_id) }} | {{ $invoiceData->created_at->format('d-m-Y') }} | - | @php $total = $invoiceData->price * $invoiceData->quantity; $balance += $total; $totalCredit += $total; @endphp{{ \Auth::user()->priceFormat($total) }} | {{ \Auth::user()->priceFormat($balance) }} | |
| {{ $accountName->name }} | @php $invoice = \App\Models\Invoice::where('id', $invoicePaymentData->invoice_id)->first(); @endphp{{ !empty($invoice->customer) ? $invoice->customer->name : '-' }} | {{ \Auth::user()->invoiceNumberFormat($invoice->invoice_id) }} {{ __(' Manually Payment') }} | {{ $invoicePaymentData->created_at->format('d-m-Y') }} | - | {{ \Auth::user()->priceFormat($invoicePaymentData->amount) }} | @php $balance += $invoicePaymentData->amount; $totalCredit += $invoicePaymentData->amount; @endphp{{ \Auth::user()->priceFormat($balance) }} | |
| {{ $accountName->name }} | {{ !empty($revenueData->customer) ? $revenueData->customer->name : '-' }} | {{ __('Revenue') }} | {{ $revenueData->created_at->format('d-m-Y') }} | - | {{ \Auth::user()->priceFormat($revenueData->amount) }} | @php $balance += $revenueData->amount; $totalCredit += $revenueData->amount; @endphp{{ \Auth::user()->priceFormat($balance) }} | |
| {{ $accountName->name }} | @php $bill = \App\Models\Bill::find($billProduct->bill_id); $vendor = \App\Models\Vender::find(!empty($bill) ? $bill->vender_id : ''); @endphp{{ !empty($vendor) ? $vendor->name : '-' }} | {{ \Auth::user()->billNumberFormat($bill->bill_id) }} | {{ $billProduct->created_at->format('d-m-Y') }} | @php $total = $billProduct->price * $billProduct->quantity; $balance -= $total; $totalCredit -= $total; @endphp{{ \Auth::user()->priceFormat($total) }} | - | {{ \Auth::user()->priceFormat($balance) }} | |
| {{ $accountName->name }} | {{ !empty($vendor) ? $vendor->name : '-' }} | @if (!empty($bill->bill_id)){{ \Auth::user()->billNumberFormat($bill->bill_id) }} | @else- | @endif{{ $billData->created_at->format('d-m-Y') }} | {{ \Auth::user()->priceFormat($billData->price) }} | - | @php $balance -= $billData->price; $totalDebit -= $billData->price; @endphp{{ \Auth::user()->priceFormat($balance) }} |
| {{ $accountName->name }} | {{ !empty($vendor) ? $vendor->name : '-' }} | {{ \Auth::user()->billNumberFormat($billId->bill_id) }}{{ __(' Manually Payment') }} | {{ $billPaymentData->created_at->format('d-m-Y') }} | {{ \Auth::user()->priceFormat($billPaymentData->amount) }} | - | @php $balance += $billPaymentData->amount; $totalDebit += $billPaymentData->amount; @endphp{{ \Auth::user()->priceFormat($totalCredit - $totalDebit) }} | |
| {{ $accountName->name }} | {{ !empty($vendor) ? $vendor->name : '-' }} | {{ __('Payment') }} | {{ $paymentData->created_at->format('d-m-Y') }} | {{ \Auth::user()->priceFormat($paymentData->amount) }} | - | @php $balance += $paymentData->amount; $totalDebit += $paymentData->amount; @endphp{{ \Auth::user()->priceFormat($totalCredit - $totalDebit) }} | |
| {{ $accountName->name }} | {{ '-' }} | {{ AUth::user()->journalNumberFormat($journalItemData->journal_id) }} | {{ $journalItemData->created_at->format('d-m-Y') }} | {{ Auth::user()->priceFormat($journalItemData->debit) }} | {{ \Auth::user()->priceFormat($journalItemData->credit) }} | @if ($journalItemData->debit) @php $balance-= $journalItemData->debit @endphp @else @php $balance+= $journalItemData->credit @endphp @endif {{ \Auth::user()->priceFormat($balance) }} |