%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/resources/views/Reglements/
Upload File :
Create Path :
Current File : //var/www/html/resources/views/Reglements/index.blade.php

@extends('template')

@section('title')
    La liste des réglements
@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 réglements</h5>
            </div>
            <div class="card-body">
                <div class="table-responsive">
                    <table class="table table-hover table-sm">
                        <thead>
                            <th>Num Facture</th>
                            <th>Type facture</th>
                            <th>Total</th>
                            <th>payé</th>
                            <th>crédit</th>
                            <th>voir</th>
                        </thead>
                        <tbody>
                            @foreach ($commandes as $commande)
                                <tr>
                                    <td>{{ $commande->facture->num_facture }}</td>
                                    <td>
                                        <x-type-facture :type="$commande->facture->type" />
                                    </td>
                                    <td>{{ $commande->facture->commande->total }} DH</td>
                                    <td>{{ $commande->facture->commande->paid_amount }} DH</td>
                                    <td>{{ $commande->facture->commande->un_paid_amount }} DH</td>
                                    <td><button class="badge badge-info btn-sm border-0"
                                            data-target="#facture_reg-{{ $commande->id }}" data-toggle="collapse"><i class="fas fa-eye"></i></button></td>
                                </tr>
                                <tr id="facture_reg-{{ $commande->id }}" class="collapse collapsed">
                                    <td colspan="6">
                                          @foreach ($commande->reglements as $reglement)
                                        <ul class="list-group mb-3">
                                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                                Méthode de paiement 
                                                <span class="badge badge-primary badge-pill">{{ $reglement->method }}</span>
                                            </li>
                                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                                Dapibus ac facilisis in
                                                <span class="badge badge-primary badge-pill">2</span>
                                            </li>
                                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                                Morbi leo risus
                                                <span class="badge badge-primary badge-pill">1</span>
                                            </li>
                                        </ul>
                                          @endforeach
                                    </td>
                                </tr>
                            @endforeach
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('scripts')

@endsection

Zerion Mini Shell 1.0