@extends('admin.layout.master') @section('title') {{ $current_route->{'name_' . trans('admin.lang')} }} @stop @section('page-breadcrumb') @include('admin.layout.breadcrumb_view') @stop @section('page-actions') @include('admin.accounts_reports.parts.buttons') @stop @section('page-content')

{{ csrf_field() }}
@if(($view_mode ?? null) === 'balance_sheet') @include('admin.accounts_reports.parts.balance_sheet_table') @elseif(($view_mode ?? null) === 'income_statement') @php $lang = trans('admin.lang'); $digits = $system_settings->system_digit ?? config('app.system_digit', 2); @endphp
@if ($start_date || $end_date) @endif @foreach($income_sections as $section) @include('admin.accounts_reports.parts.section_rows', ['tree' => $section['tree'], 'flip' => $section['flip']]) @endforeach @php // صافي ربح => أخضر، صافي خسارة => أصفر، لتمييز نتيجة الفترة بصرياً $netStyle = $net_income >= 0 ? 'background-color:#198754;color:#fff;font-weight:bold;' : 'background-color:#ffc107;color:#000;font-weight:bold;'; @endphp
@Lang('admin.start_date'):{{ $start_date }} - @Lang('admin.end_date'):{{ $end_date }}
@Lang('admin.level') @Lang('admin.account-code') @Lang('admin.account_name') @Lang('admin.sub_amount_1') @Lang('admin.sub_amount_2') @Lang('admin.partial_amount') @Lang('admin.total_amount')
{{ $net_income >= 0 ? __('admin.net_profit') : __('admin.net_loss') }} {{ number_format($net_income, $digits) }}
@endif @stop @section('css') @stop @section('js')