%PDF- %PDF-
Direktori : /var/www/html/resources/views/cheques/ |
Current File : //var/www/html/resources/views/cheques/index.blade.php |
@extends('template') @section('title') la liste des chéques @endsection @section('content') <div class="container fluid"> <div class="card"> <div class="card-header"> <h5 class="card-title font-weight-bold text-primary">Liste des chéques</h5> </div> <div class="card-body"> <ul class="nav nav-tabs" id="myTab" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Non réglé</a> </li> <li class="nav-item"> <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">Réglé</a> </li> </ul> <div class="tab-content" id="myTabContent"> <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab"> <div class="table-responsive"> <table class="table table-hover table-sm"> <thead> <th>Num Chéque</th> <th>Montant</th> <th>Date Réglement</th> <th>Client</th> <th>Actions</th> </thead> <tbody> @foreach ($non_regle as $non) <tr> <td>{{ $non->num }}</td> <td><span class="badge badge-pill badge-info">{{ $non->montant }} DH</span></td> <td>{{ $non->date_reglement }}</td> <td> {{ $non->commande->facture->user->name }}</td> <td> <button class="btn btn-success btn-sm" type="button" data-toggle="modal" data-target="#confirmModal" data-delete-id="{{ $non->id }}">payé</button> </td> </tr> @endforeach </tbody> </table> </div> </div> <div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab"> <div class="table-responsive"> <table class="table table-hover table-sm"> <thead> <th>Num Chéque</th> <th>Montant</th> <th>Date Réglement</th> <th>Client</th> </thead> <tbody> @foreach ($cheques as $ch) <tr> <td>{{ $ch->num }}</td> <td><span class="badge badge-pill badge-info">{{ $ch->montant }} DH</span></td> <td>{{ $ch->date_reglement }}</td> <td>{{ $ch->commande->facture->user->name }}</td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> </div> @endsection @section('scripts') <x-confirm-paid-cheque /> @endsection