Total Entrées

{{ number_format($totalEntrees, 0, ',', ' ') }} F

Total Sorties

{{ number_format($totalSorties, 0, ',', ' ') }} F

Solde

{{ number_format($solde, 0, ',', ' ') }} F

Opérations caisse

{{ $nbOperations }}

Actions Rapides
@if(userHasPermission('can_add_cash_operation')) @endif @if(userHasPermission('can_view_cash_operations_agency')) @endif @if(userHasAnyPermission(['can_generate_agency_cash_reports','can_generate_all_cash_reports'])) @endif
5 Dernières Opérations - {{ $agence->name }} ({{ \Carbon\Carbon::createFromDate($selectedYear, $selectedMonth, 1)->locale('fr')->isoFormat('MMMM YYYY') }})
@if($dernieresOperations->count() > 0)
@foreach($dernieresOperations as $operation) @endforeach
Date Type Montant Identifiant Motif Ajouté par Actions
{{ $operation->operation_date ? $operation->operation_date->format('d/m/Y H:i') : 'N/A' }} @if($operation->type === 'entrée') Entrée @else Sortie @endif {{ number_format($operation->amount, 0, ',', ' ') }} F {{ $operation->uuid ?? 'N/A' }} {{ Str::limit($operation->reason, 30) ?? 'N/A' }} @php $addAction = $operation->actionOperations() ->where('type_action', 'Enregistrement d\'opération') ->with('user') ->first(); $addedBy = $addAction ? ($addAction->user ? $addAction->user->first_name . ' ' . $addAction->user->last_name : 'N/A') : 'N/A'; @endphp {{ $addedBy }} @php // Récupérer l'action d'ajout $addAction = $operation->actionOperations() ->where('type_action', 'Enregistrement d\'opération') ->with('user') ->first(); // Récupérer l'action d'export $exportAction = $operation->actionOperations() ->where('type_action', 'Export vers comptabilité') ->with('user') ->first(); $operationData = [ 'uuid' => $operation->uuid ?? null, 'type_badge' => $operation->type === 'entrée' ? ' Entrée' : ' Sortie', 'amount' => number_format($operation->amount, 0, ',', ' ') . ' F', 'operation_date' => $operation->operation_date ? $operation->operation_date->format('d/m/Y H:i') : '', 'external_reference' => $operation->external_reference, 'added_by' => $addAction ? ($addAction->user ? $addAction->user->first_name . ' ' . $addAction->user->last_name : 'N/A') : 'N/A', 'date_added' => $addAction ? $addAction->date_action->format('d/m/Y H:i') : 'N/A', 'exported_by' => $exportAction ? ($exportAction->user ? $exportAction->user->first_name . ' ' . $exportAction->user->last_name : 'N/A') : 'N/A', 'export_date' => $exportAction ? $exportAction->date_action->format('d/m/Y H:i') : 'N/A', 'is_exported_to_comptability' => $operation->is_exported_to_comptability, 'reason' => $operation->reason ]; @endphp
@else
Aucune opération trouvée

Aucune opération n'a encore été enregistrée pour cette agence.

@endif
@include('gestion_operation_caisse.partials.operation_details_modal', ['title' => "Détails de l'opération"])