@extends('layouts.master') @section('title', 'Détails de l\'Exercice') @section('content')

Opérateur: {{ $operateur->denomination }}

Informations générales

Contact: {{ $operateur->contact ?? 'N/A' }}
Email: {{ $operateur->email ?? 'N/A' }}
Téléphone: {{ $operateur->telephone ?? 'N/A' }}
Adresse: {{ $operateur->adresse ?? 'N/A' }}

Statistiques

Nombre de marchés: {{ $operateur->marches->count() }}
Nombre de factures: {{ $operateur->factures->count() }}
Montant total des factures: {{ number_format($operateur->getMontantTotalFacturesAttribute(), 2, ',', ' ') }} FCFA
Montant total des marchés: {{ number_format($operateur->getMontantTotalMarchesAttribute(), 2, ',', ' ') }} FCFA

Marchés associés

@if($operateur->marches->count() > 0)
@foreach($operateur->marches as $marche) @endforeach
N° Marché Intitulé Montant Date Début Date Fin Statut Actions
{{ $marche->reference }} {{ Str::limit($marche->intitule, 50) }} {{ number_format($marche->cout_final, 2, ',', ' ') }} FCFA {{ $marche->date_debut->format('d/m/Y') }} {{ $marche->date_fin->format('d/m/Y') }} {{ ucfirst($marche->statut) }} Voir Marché
@else
Cet opérateur n'a aucun marché associé.
@endif

Factures associées

@if($operateur->factures->count() > 0)
@foreach($operateur->factures as $facture) @endforeach
Intitulé Montant Récue Pris en charge Statut Actions
{{ $facture->numero_facture }} {{ Str::limit($facture->prestation, 50) }} {{ number_format($facture->montant, 2, ',', ' ') }} FCFA {{ $facture->date_facture ? $facture->date_facture->format('d/m/Y') : '-' }} {{ $facture->date_recue ? $facture->date_recue->format('d/m/Y') : '-' }} {{ ucfirst($facture->statut) }} Voir Facture
@else
Cet opérateur n'a aucune facture associée.
@endif
@endsection