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

Gestion des commerciaux

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

Commerciaux

@foreach($commercials as $commercial) @endforeach
Code Matricule Nom Prénom Téléphone Email Fonction Departement Service Statut Action
{{$commercial->code}} {{$commercial->matricule}} {{$commercial->nom}} {{$commercial->prenom}} {{$commercial->tel}} {{$commercial->email}} @php $fonctions_names = DB::table('fonctions')->select('libelle')->where('id', $commercial->fonction_id)->get(); foreach($fonctions_names as $fonctions_name) echo $fonctions_name->libelle; @endphp @php $departements_names = DB::table('departements')->select('libelle')->where('id', $commercial->departement_id)->get(); foreach($departements_names as $departements_name) echo $departements_name->libelle; @endphp @php $services_names = DB::table('services')->select('libelle')->where('id', $commercial->service_id)->get(); foreach($services_names as $services_name) echo $services_name->libelle; @endphp @php $statuts_names = DB::table('statuts')->select('libelle')->where('id', $commercial->statuts_id)->get(); foreach($statuts_names as $statuts_name) echo $statuts_name->libelle; @endphp Modifier
@csrf @method('DELETE')
@endsection