@php $tittre=$fiche_recherche; if($tittre=='ligne_commande'){ switch ($article_type){ case 0: $tittre = 'formule'; break; case 1: $tittre = 'service'; break; case 2: $tittre = 'Ajout manuel'; break; case 3: $tittre = 'Adjuvant'; break; case 4: $tittre = 'Zone'; break; case 5: $tittre = 'Granulat'; break; case 9: $tittre = 'commentaires stockés'; break; } } @endphp @if(!in_array($fiche_recherche, ['planification_commande_manuel', 'planification_commande_auto']))

{{strtoupper(str_replace('_',' ',$tittre))}}

@endif @switch($fiche_recherche) @case('client') @include('fiche_annexe.table_client_fiche_annexe', ['type_fiche_annexe' => 'commande', 'id_fiche_annexe' => NULL]) @break @case('chantier') @include('fiche_annexe.table_chantier_fiche_annexe', ['type_fiche_annexe' => 'commande', 'id_fiche_annexe' => NULL,'client_id'=>$client_id]) @break @case('contact') @include('fiche_annexe.table_contact_fiche_annexe', ['type_fiche_annexe' => 'commande', 'id_fiche_annexe' => NULL,'client_id'=>$client_id]) @break @case('centrale') @include('fiche_annexe.table_centrale_fiche_annexe', ['type_fiche_annexe' => 'commande', 'id_fiche_annexe' => NULL]) @break @case('formule') @include('fiche_annexe.table_formule_fiche_annexe', ['type_fiche_annexe' => 'commande', 'id_fiche_annexe' => NULL,'centrale_id'=>$centrale_id]) @break @case('vehicule') @include('fiche_annexe.table_vehicule_fiche_annexe', ['type_fiche_annexe' => $type_fiche_annexe ?? 'commande', 'id_fiche_annexe' => NULL,'centrale_id'=>$centrale_id]) @break @case('ligne_commande') @switch($article_type) @case('0') @include('fiche_annexe.table_formule_fiche_annexe', ['type_fiche_annexe' => 'ligne_commande', 'id_fiche_annexe' => NULL,'centrale_id'=>$centrale_id]) @break @case('1') @include('fiche_annexe.table_service_fiche_annexe', ['type_fiche_annexe' => 'ligne_commande', 'id_fiche_annexe' => NULL,'centrale_id'=>$centrale_id]) @break @case('2') @include('fiche_annexe.table_ajout_fiche_annexe', ['type_fiche_annexe' => 'ligne_commande', 'id_fiche_annexe' => NULL,'centrale_id'=>$centrale_id]) @break @case('3') @include('fiche_annexe.table_produit_fiche_annexe', ['type_fiche_annexe' => 'ligne_commande', 'id_fiche_annexe' => NULL,'centrale_id'=>$centrale_id,'produit_type'=>3]) @break @case('4') @include('fiche_annexe.table_zone_fiche_annexe', ['type_fiche_annexe' => 'ligne_commande', 'id_fiche_annexe' => NULL,'centrale_id'=>$centrale_id]) @break @case('5') @include('fiche_annexe.table_produit_fiche_annexe', ['type_fiche_annexe' => 'ligne_commande', 'id_fiche_annexe' => NULL,'centrale_id'=>$centrale_id,'produit_type'=>0]) @break @case('9') @include('fiche_annexe.table_commentaire_stocker_fiche_annexe') @break @endswitch @break @case('dupliquer_multipe') @include('commande.commande_dupliquer_multiple_form', ['type_fiche_annexe' => 'commande', 'id_fiche_annexe' => NULL,'commande_id'=>$commande_id]) @break @case('pdf_personalise') @include('commande.commande_ligne_commande_table',['type_fiche_annexe'=>'pdf_personalise','commande_id'=>$commande_id ]) @break @case('planification_commande_manuel') @include('commande.planification_commande.planification_commande_manuel',['commande_id'=>$commande_id ]) @break @case('planification_commande_auto') @include('commande.planification_commande.planification_commande_auto',['commande_id'=>$commande_id ]) @break @default {{-- Rien à afficher --}} @endswitch