@extends('layouts.app') @php $locale = app()->getLocale(); $isRtl = $locale === 'ar'; $currency = \App\Models\Setting::currencyLabel($locale); @endphp @section('title', $isRtl ? 'التدفقات النقدية' : 'Cash Flow') @section('content')

{{ $isRtl ? 'التدفقات النقدية' : 'Cash Flow' }}

{{ $isRtl ? 'حركة النقد خلال فترة' : 'Cash movements over a period' }}

{{ $isRtl ? 'التدفقات الداخلة' : 'Cash Inflows' }}

{{ number_format((float)$cashInflows, 2) }} {{ $currency }}

{{ $isRtl ? 'التدفقات الخارجة' : 'Cash Outflows' }}

{{ number_format((float)$cashOutflows, 2) }} {{ $currency }}

{{ $isRtl ? 'صافي التدفق' : 'Net Cash Flow' }}

{{ number_format((float)$netCashFlow, 2) }} {{ $currency }}

{{ $isRtl ? 'تفاصيل الإيرادات' : 'Inflow Details' }}

@forelse($inflowDetails as $row) @empty @endforelse
{{ $isRtl ? 'النوع' : 'Type' }} {{ $isRtl ? 'الإجمالي' : 'Total' }}
{{ $row->payment_type }} {{ number_format((float)$row->total, 2) }}
{{ $isRtl ? 'لا توجد بيانات' : 'No data' }}

{{ $isRtl ? 'تفاصيل المصروفات' : 'Outflow Details' }}

@forelse($outflowDetails as $row) @empty @endforelse
{{ $isRtl ? 'التصنيف' : 'Category' }} {{ $isRtl ? 'الإجمالي' : 'Total' }}
{{ $row->category->name_ar ?? $row->category->name ?? '—' }} {{ number_format((float)$row->total, 2) }}
{{ $isRtl ? 'لا توجد بيانات' : 'No data' }}
@endsection