@extends('layouts.master') @push('css') @endpush @section('content')

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

@if ($errors->any())
Errors:
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
{{-- From Date --}}
{{-- To Date --}}
{{-- From Account --}}
{{-- To Account --}}
{{-- .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 --}}
M.D.S
Trial Balance
As From   {{ $fromDate ? \Carbon\Carbon::parse($fromDate)->format('d/m/Y') : '/' }}   To   {{ $toDate ? \Carbon\Carbon::parse($toDate)->format('d/m/Y') : '/' }}
کُل کھاتہ میزان
Account Nos.: {{ $fromCustomer ?? '—' }} Till {{ $toCustomer ?? '—' }}
@foreach($trialData as $row) @if($row['type'] === 'category') {{-- Section heading: Suppliers / Customers --}} @elseif($row['type'] === 'subcategory') @elseif($row['type'] === 'account') @elseif($row['type'] === 'subtotal') @endif @endforeach {{-- Grand Total --}}
A/C # Title Opening Current Balance
DebitCredit DebitCredit DebitCredit
{{ $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
{{-- .card-body --}}
{{-- .card --}} @endsection @push('scripts') @endpush