@extends('layouts.app') @section('content')

Détails du Client

Modifier Nouvel Abonnement
@if(session('success')) @endif

Informations personnelles

Nom complet
{{ $client->prenom }} {{ $client->nom }}
Contact
{{ $client->contact }}
Adresse
{{ $client->adresse }}
Agent assigné
{{ $client->agent->name }}

Historique des abonnements

@if($client->abonnements->count() > 0)
@foreach($client->abonnements as $abonnement) @endforeach
Type Prix Début Fin Statut Actions
{{ $abonnement->type_abonnement }} mois
{{ number_format($abonnement->prix, 0, ',', ' ') }} FCFA
{{ $abonnement->date_debut->format('d/m/Y') }} {{ $abonnement->date_fin->format('d/m/Y') }} @if($abonnement->statut == 'Actif') Actif @elseif($abonnement->statut == 'En attente') En attente @elseif($abonnement->statut == 'Expiré') Expiré @else {{ $abonnement->statut }} @endif Détails
@else

Aucun abonnement enregistré pour ce client.

@endif
@endsection