 <div class="pd-20 bg-white border-radius-4 box-shadow mb-30">
     <div class="list-group">
         @foreach($listDemande as $data)
         <a class="list-group-item list-group-item-action flex-column align-items-start @if($data->id_demande == $itemActif ) active @endif" wire:click="vieWDemande({{$data->id_demande}})">
             <h6 class="mb-1 h6  @if($data->id_demande == $itemActif ) color-white @else color-black @endif"></h6>

             <p class="mb-1 " style="font-size: small; font-weight: 700;">{{ \Illuminate\Support\Str::limit($data->titre, 80) }}</p>
             <div class="pull-left"> <small><i>{{ $data->date_sm }}</i></small></div>
             @php
             $text = "";
             $color = "";
             if(is_null($data->stat) || $data->stat === "PENDING"){
             $text = "En attente";
             $color = "badge-default";
             }else if($data->stat === "ALLOWED"){
             $text = "Acceptée";
             $color = "badge-success";
             }else if($data->stat === "REJECTED"){
             $text = "Refusée";
             $color = "badge-danger";
             }else if($data->stat === "EXPIRED"){
             $text = "Refusée";
             $color = "badge-warning";
             }else{
             $text = "";
             $color = "";
             }
             @endphp
             <div class="pull-right"> <i class="badge {{ $color }}">{{ $text }}</i></div>
         </a>
         @endforeach
     </div>
 </div>