@extends('layouts.user') @section('title', __('profit_loss.title')) @section('page_title', __('profit_loss.page_title')) @section('breadcrumb', __('profit_loss.breadcrumb')) @section('content') @php $fmt = fn ($v) => number_format((float) $v, 2); $isProfit = (float) $netProfitLoss >= 0; $periodLabel = $from->format('M Y') . ' - ' . $to->format('M Y'); $pdfUrl = url('/user/reports/profit-loss/pdf') . (request()->query() ? ('?' . http_build_query(request()->query())) : ''); $resetUrl = url('/user/reports/profit-loss'); $chartLabelsJson = json_encode($chartLabels ?? []); $chartIncomeJson = json_encode($chartIncome ?? []); $chartExpenseJson = json_encode($chartExpense ?? []); $chartNetJson = json_encode($chartNet ?? []); @endphp
{{ __('profit_loss.financial_report') }}
{{ __('profit_loss.total_income') }}
{{ __('profit_loss.total_income_hint') }}
{{ __('profit_loss.total_expense') }}
{{ __('profit_loss.total_expense_hint') }}
{{ $isProfit ? __('profit_loss.net_profit') : __('profit_loss.net_loss') }}
{{ $isProfit ? __('profit_loss.profit_hint') : __('profit_loss.loss_hint') }}
{{ __('profit_loss.selected_period') }}
{{ $from->format('d M Y') }} - {{ $to->format('d M Y') }}
{{ __('profit_loss.customer_bill_income') }}
{{ __('profit_loss.daily_expense') }}
{{ __('profit_loss.supplier_expense') }}
{{ __('profit_loss.salary_expense') }}
{{ __('profit_loss.bonus_bank_charge') }}
{{ __('profit_loss.loan_finance_cost') }}
{{ ($chartMode ?? 'monthly') === 'yearly' ? __('profit_loss.chart_yearly') : __('profit_loss.chart_monthly') }}
{{ __('profit_loss.income_sources') }}
| {{ __('profit_loss.particulars') }} | {{ __('profit_loss.amount') }} |
|---|---|
| {{ $row['label'] }} | {{ $fmt($row['amount']) }} |
| {{ __('profit_loss.no_income_data') }} | |
| {{ __('profit_loss.total_income') }} | {{ $fmt($totalIncome) }} |
{{ __('profit_loss.expense_details') }}
| {{ __('profit_loss.particulars') }} | {{ __('profit_loss.amount') }} |
|---|---|
| {{ $row['label'] }} | {{ $fmt($row['amount']) }} |
| {{ __('profit_loss.no_expense_data') }} | |
| {{ __('profit_loss.loan_finance_cost') }} | {{ $fmt($loanFinanceCostTotal) }} |
| {{ __('profit_loss.total_expense') }} | {{ $fmt($totalExpense) }} |
{{ __('profit_loss.total_income') }}
{{ __('profit_loss.total_expense') }}
{{ $isProfit ? __('profit_loss.net_profit') : __('profit_loss.net_loss') }}