@extends('admin.layouts.master') @section('title', 'قائمة الدخل') @section('content')
@include('admin.Alerts')

قائمة الدخل

من {{ \Carbon\Carbon::parse($fromDate)->format('Y/m/d') }} إلى {{ \Carbon\Carbon::parse($toDate)->format('Y/m/d') }}

عودة
{{-- Date Filter --}}
@php $netIncome = $report['net_income']; $isProfit = $netIncome >= 0; @endphp {{-- KPIs --}}
إجمالي الإيرادات
{{ number_format($report['revenues']['total'], 2) }}
مجمل الربح
{{ number_format($report['gross_profit'], 2) }}
ربح التشغيل
{{ number_format($report['operating_income'], 2) }}
صافي الربح / الخسارة
{{ $isProfit ? '' : '-' }}{{ number_format(abs($netIncome), 2) }}
{{-- Detailed Table --}}
{{-- Revenues --}} @foreach($report['revenues']['accounts'] as $acc) @endforeach {{-- COGS --}} @foreach($report['cost_of_goods_sold']['accounts'] as $acc) @endforeach {{-- Operating Expenses --}} @foreach($report['operating_expenses']['accounts'] as $acc) @endforeach {{-- Net Income --}}
البندالمبلغ
الإيرادات
{{ $acc->account_number ?? '' }} {{ $acc->name ?? '' }} {{ number_format((float)($acc->balance ?? 0), 2) }}
إجمالي الإيرادات{{ number_format($report['revenues']['total'], 2) }}
تكلفة البضاعة المباعة
{{ $acc->account_number ?? '' }} {{ $acc->name ?? '' }} {{ number_format((float)($acc->balance ?? 0), 2) }}
مجمل الربح{{ number_format($report['gross_profit'], 2) }}
المصروفات التشغيلية
{{ $acc->account_number ?? '' }} {{ $acc->name ?? '' }} {{ number_format((float)($acc->balance ?? 0), 2) }}
ربح التشغيل{{ number_format($report['operating_income'], 2) }}
صافي {{ $isProfit ? 'الربح' : 'الخسارة' }} {{ number_format(abs($netIncome), 2) }}
@endsection