@extends('layouts.user') @section('title', __('balance_sheet.balance_sheet')) @section('page_title', __('balance_sheet.balance_sheet')) @section('breadcrumb', __('balance_sheet.reports') . ' / ' . __('balance_sheet.balance_sheet')) @section('content') @php $fmt = fn($v) => number_format((float) $v, 2); $asOfDate = \Carbon\Carbon::parse($asOf)->format('d M, Y'); $differenceAbs = abs((float) ($difference ?? 0)); $isBalanced = $differenceAbs < 0.01; $assetItems = [ ['label' => __('balance_sheet.cash_bank_mfs_balance'), 'amount' => $totalAccountBalances ?? 0], ['label' => __('balance_sheet.customer_receivable'), 'amount' => $customerDue ?? 0], ['label' => __('balance_sheet.employee_outstanding_advance'), 'amount' => $employeeOutstandingAdvance ?? 0], ]; $liabilityItems = [ ['label' => __('balance_sheet.supplier_payable'), 'amount' => $supplierDue ?? 0], ['label' => __('balance_sheet.loan_payable'), 'amount' => $loanPayable ?? 0], ['label' => __('balance_sheet.unpaid_employee_bonus'), 'amount' => $unpaidEmployeeBonus ?? 0], ['label' => __('balance_sheet.salary_due'), 'amount' => $salaryDue ?? 0], ]; $equityItems = [ ['label' => __('balance_sheet.owner_capital'), 'amount' => $ownerCapital ?? 0], ['label' => __('balance_sheet.retained_earnings'), 'amount' => $retainedEarnings ?? 0], ]; @endphp
{{ __('balance_sheet.financial_position') }}
{{ __('balance_sheet.as_of') }} {{ $asOfDate }}
{{ __('balance_sheet.total_assets') }}
{{ $fmt($totalAssets ?? 0) }}
{{ __('balance_sheet.total_liabilities') }}
{{ $fmt($totalLiabilities ?? 0) }}
{{ __('balance_sheet.total_equity') }}
{{ $fmt($equity ?? 0) }}
{{ __('balance_sheet.status') }}
{{ $isBalanced ? __('balance_sheet.balanced') : __('balance_sheet.needs_review') }}
{{ __('balance_sheet.company_will_receive_owns') }}
{{ __('balance_sheet.company_needs_to_pay') }}
{{ __('balance_sheet.owner_interest_in_business') }}
{{ __('balance_sheet.account_wise_balance_summary') }}
| {{ __('balance_sheet.account') }} | {{ __('balance_sheet.type') }} | {{ __('balance_sheet.account_no') }} | {{ __('balance_sheet.opening') }} | {{ __('balance_sheet.debit') }} | {{ __('balance_sheet.credit') }} | {{ __('balance_sheet.balance') }} |
|---|---|---|---|---|---|---|
| {{ $row['name'] }} | {{ str_replace('_', ' ', $row['type']) }} | {{ $row['account_number'] ?: '—' }} | {{ $fmt($row['opening']) }} | {{ $fmt($row['debit']) }} | {{ $fmt($row['credit']) }} | {{ $fmt($row['balance']) }} |
| {{ __('balance_sheet.no_active_account_found') }} | ||||||
| {{ __('balance_sheet.total') }} | {{ $fmt($totalOpeningBalances ?? 0) }} | {{ $fmt(collect($accountRows)->sum('debit')) }} | {{ $fmt(collect($accountRows)->sum('credit')) }} | {{ $fmt($totalAccountBalances ?? 0) }} | ||