@if ($fiche_recherche=='client' OR $fiche_recherche=='client_comptant_id' OR $fiche_recherche=='client_prefa' OR $fiche_recherche=='decalege_facturation_client')
LISTE CLIENT
@elseif ($fiche_recherche=='chantier_comptant_id' OR $fiche_recherche=='chantier_prefa' OR $fiche_recherche=='decalege_facturation_chantier')
LISTE CHANTIER
@endif
X
@switch($fiche_recherche)
@case('client')
@include('fiche_annexe.table_client_fiche_annexe', ['type_fiche_annexe' => 'parametre', 'id_fiche_annexe' => NULL])
@break
@case ('client_comptant_id')
@include('fiche_annexe.table_client_fiche_annexe', ['type_fiche_annexe' => 'parametre_client_comptant_defaut', 'id_fiche_annexe' => NULL])
@break
@case('chantier_comptant_id')
@include('fiche_annexe.table_chantier_fiche_annexe', ['type_fiche_annexe' => 'parametre_chantier_comptant_id', 'id_fiche_annexe' => NULL, 'client_id' => $client_id])
@break
@case('client_prefa')
@include('fiche_annexe.table_client_fiche_annexe', ['type_fiche_annexe' => 'parametre_client_prefa', 'id_fiche_annexe' => NULL])
@break
@case('chantier_prefa')
@include('fiche_annexe.table_chantier_fiche_annexe', ['type_fiche_annexe' => 'parametre_chantier_prefa', 'id_fiche_annexe' => NULL, 'client_id' => $client_id])
@break
@case('decalege_facturation_client')
@include('fiche_annexe.table_client_fiche_annexe', ['type_fiche_annexe' => 'decalege_facturation', 'id_fiche_annexe' => NULL])
@break
@case('decalege_facturation_chantier')
@include('fiche_annexe.table_chantier_fiche_annexe', ['type_fiche_annexe' => 'decalege_facturation', 'id_fiche_annexe' => NULL, 'client_id' => $client_id])
@break
@default
{{-- Rien à afficher --}}
@endswitch