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

Gestion des clients

@if(session()->get('completed'))
Alert!
{{ session()->get('completed') }}
@endif

Clients

@foreach($clients as $client) @endforeach
Code Dénomination Téléphone Email Ville Zone Quartier Affectation Statut Action
{{$client->code}} {{$client->denomination}} {{$client->tel}} {{$client->email}} @php $ville_names = DB::table('villes')->select('libelle')->where('id', $client->ville_id)->get(); foreach($ville_names as $ville_name) echo $ville_name->libelle; @endphp @php $zones_names = DB::table('zones')->select('libelle')->where('id', $client->zone_id)->get(); foreach($zones_names as $zones_name) echo $zones_name->libelle; @endphp @php $quartiers_names = DB::table('quartiers')->select('libelle')->where('id', $client->quartier_id)->get(); foreach($quartiers_names as $quartiers_name) echo $quartiers_name->libelle; @endphp {{$client->affectation}} @php $statuts_names = DB::table('statuts')->select('libelle')->where('id', $client->statuts_id)->get(); foreach($statuts_names as $statuts_name) echo $statuts_name->libelle; @endphp Modifier
@csrf @method('DELETE')
@endsection