@extends('layouts.app') @section('title', __('messages.finance_dashboard')) @section('content') @php $isRtl = app()->getLocale() === 'ar'; @endphp

{{ __('messages.finance_dashboard') }}

{{ __('messages.finance_dashboard_subtitle') }}

{{ __('messages.total_registers') }}

{{ $totalRegisters }}

{{ __('messages.total_balance') }}

{{ number_format($totalBalance, 0, ',', ' ') }}

{{ __('messages.total_suppliers') }}

{{ $totalSuppliers }}

{{ __('messages.total_purchases') }}

{{ number_format($totalPurchases, 0, ',', ' ') }}

{{ __('messages.client_payments') }}

{{ number_format($totalClientPayments, 0, ',', ' ') }}

{{ __('messages.monthly_in') }}

{{ number_format($monthlyIn, 0, ',', ' ') }}

{{ __('messages.monthly_out') }}

{{ number_format($monthlyOut, 0, ',', ' ') }}
{{ __('messages.recent_movements') }}
@foreach ($recentMovements as $movement) @php $typeIn = $movement->type === 'in'; @endphp @endforeach
{{ __('messages.date') }} {{ __('messages.category') }} {{ __('messages.type') }} {{ __('messages.amount') }} {{ __('messages.register') }} {{ __('messages.method') }} {{ __('messages.user') }}
{{ $movement->movement_date ? $movement->movement_date->format('d/m/Y H:i') : '-' }} {{ $movement->category?->name_fr ?? '-' }} @if ($typeIn) {{ __('messages.incoming') }} @else {{ __('messages.outgoing') }} @endif {{ $typeIn ? '+' : '-' }}{{ number_format($movement->amount, 0, ',', ' ') }} {{ $movement->register?->name ?? '-' }} {{ $movement->payment_method ?? '-' }} {{ $movement->user?->name ?? '-' }}
@endsection @section('scripts') @endsection