@extends('layouts.master') @push('css') @endpush @section('content') {{-- ════════ FILTER CARD ════════ --}}

Trial Balance   کُل کھاتہ میزان

@if ($errors->any())
Errors:
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
{{-- From Date --}}
{{-- To Date --}}
{{-- From Customer (Khata) --}}
{{-- To Customer (Khata) --}}
{{-- .row --}}
@if(isset($trialData) && $trialData !== null)   پرنٹ @endif

{{-- ════════ RESULT ════════ --}} @if(isset($trialData) && $trialData !== null) @if(empty($trialData))
کوئی اندراج نہیں ملا۔
@else {{-- Summary Cards --}}
کل ڈیبٹ (Total Debit) {{ number_format($grandTotalDebit, 0) }}
کل کریڈٹ (Total Credit) {{ number_format($grandTotalCredit, 0) }}
فرق (Difference) {{ number_format(abs($grandTotalDebit - $grandTotalCredit), 0) }} @if($grandTotalDebit != $grandTotalCredit) {{ ($grandTotalDebit - $grandTotalCredit) > 0 ? 'Dr' : 'Cr' }} @endif
{{-- Trial Balance Table --}}
{{-- Company Header --}}
M.D.S
Trial Balance
{{-- Header Row --}}
As From   {{ $fromDate ? \Carbon\Carbon::parse($fromDate)->format('d/m/Y') : '/' }}   To   {{ $toDate ? \Carbon\Carbon::parse($toDate)->format('d/m/Y') : '/' }}
کُل کھاتہ میزان
{{-- Account Range --}}
Account Nos.: {{ $fromCustomer ?? '—' }} Till {{ $toCustomer ?? '—' }}
{{-- Group headers --}} @foreach($trialData as $row) @if($row['type'] === 'category') {{-- e.g. ASSETS / LIABILITIES --}} @elseif($row['type'] === 'subcategory') {{-- e.g. DEBTORS / CREDITORS --}} @elseif($row['type'] === 'account') {{-- Leaf account --}} {{-- Opening --}} {{-- Current --}} {{-- Balance --}} @elseif($row['type'] === 'subtotal') @endif @endforeach {{-- Grand Total --}}
A/C # Title Opening Current Balance
Debit Credit Debit Credit Debit Credit
{{ $row['ac'] }} {{ $row['title'] }}
{{ $row['ac'] }} {{ $row['title'] }}
{{ $row['ac'] }} {{ $row['title'] }}{{ $row['opening_debit'] ? number_format($row['opening_debit'], 0) : '' }} {{ $row['opening_credit'] ? number_format($row['opening_credit'], 0) : '' }}{{ $row['current_debit'] ? number_format($row['current_debit'], 0) : '' }} {{ $row['current_credit'] ? number_format($row['current_credit'], 0) : '' }}{{ $row['balance_debit'] ? number_format($row['balance_debit'], 0) : '' }} {{ $row['balance_credit'] ? number_format($row['balance_credit'], 0) : '' }}
{{ $row['title'] }} کُل {{ $row['opening_debit'] ? number_format($row['opening_debit'], 0) : '' }} {{ $row['opening_credit'] ? number_format($row['opening_credit'], 0) : '' }} {{ $row['current_debit'] ? number_format($row['current_debit'], 0) : '' }} {{ $row['current_credit'] ? number_format($row['current_credit'], 0) : '' }} {{ $row['balance_debit'] ? number_format($row['balance_debit'], 0) : '' }} {{ $row['balance_credit'] ? number_format($row['balance_credit'], 0) : '' }}
Grand Total   کُل مجموعہ {{ $grandOpeningDebit ? number_format($grandOpeningDebit, 0) : '' }} {{ $grandOpeningCredit ? number_format($grandOpeningCredit, 0) : '' }} {{ number_format($grandTotalDebit, 0) }} {{ number_format($grandTotalCredit, 0) }} {{ $grandBalanceDebit ? number_format($grandBalanceDebit, 0) : '' }} {{ $grandBalanceCredit ? number_format($grandBalanceCredit, 0) : '' }}
{{-- .tb-wrap --}} @endif @endif {{-- end results --}}
{{-- .card-body --}}
{{-- .card --}} @endsection @push('scripts') @endpush