@extends('admin.layout')
@section('title','Liste et etat des clients')
@section('content')



                        <!-- [ Main Content ] start -->

                            <!-- [ Hover-table ] start -->
                            <div class="col-xl-12">
                                <div class="card">
                                    <div class="card-header">
                                        <h5>ETAT DES CLIENTS</h5>
                                        <span class="d-block m-t-5">Listes des clients inscrits</span>
                                    </div>
                                    <div class="card-block table-border-style">
                                        <div class="table-responsive">
                                            <table class="table table-hover">
                                                <thead>
                                                    <tr>
                                                        <th>#</th>
                                                        <th>MSISDN(Téléphone)</th>
                                                        <th>Alias</th>
                                                        <th>Code service</th>
                                                        <th>Libelle(Info client)</th>
                                                        <th>Devise</th>
                                                        <th>Clé d'activation</th>
                                                        <th>Date ajout</th>
                                                        <th>Etat</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    @forelse ($clients as $u)
                                                    <tr>
                                                        <th scope="row">{{$u->id}}</th>
                                                        <td>{{$u->msisdn}}</td>
                                                        <td>{{$u->alias}}</td>
                                                        <td>{{$u->code_service}}</td>
                                                        <td>{{$u->libelle}}</td>
                                                        <td>{{$u->devise}}</td>
                                                        <td>{{$u->key}}</td>
                                                        <td>{{$u->created_at}}</td>
                                                        <td>
                                                            @if($u->status == 1)
                                                            <span class="badge badge-success">Actif</span>
                                                            @else
                                                            <span class="badge badge-danger">Inactif</span>
                                                            @endif
                                                        </td>
                                                    </tr>
                                                    @empty

                                                    @endforelse

                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- [ Hover-table ] end -->



@endsection
