%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/var/www/html/storage/framework/views/
Upload File :
Create Path :
Current File : //proc/self/root/var/www/html/storage/framework/views/d8092d1c76c9c5f43e0a92264787ce8c3773644f.php


<?php $__env->startSection('title'); ?>
    la liste des factures
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="container fluid">
  <div class="card">
    <div class="card-header">
        <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">Clients</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">Fournisseurs</a>
            </li>
        </ul>
    </div>
    <div class="card-body">
        <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">
                        <thead>
                            <th>Num Facture</th>
                            <th>Type</th>
                            <th>Date</th>
                            <th>Client</th>
                            <th>détail</th>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $factures_client; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $facture): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($facture->num_facture); ?></td>
                                <td><?php if (isset($component)) { $__componentOriginalca334c67800a6a4b951d6a00b035e449ab64588b = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\TypeFacture::class, ['type' => $facture->type]); ?>
<?php $component->withName('type-facture'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php if (isset($__componentOriginalca334c67800a6a4b951d6a00b035e449ab64588b)): ?>
<?php $component = $__componentOriginalca334c67800a6a4b951d6a00b035e449ab64588b; ?>
<?php unset($__componentOriginalca334c67800a6a4b951d6a00b035e449ab64588b); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?></td>
                                <td><?php echo e($facture->date); ?></td>
                                <td><?php echo e($facture->user->name); ?></td>
                                <td> <button class="btn btn-info btn-sm" data-toggle="collapse"
                                      data-target="#facture_products-<?php echo e($facture->id); ?>"><i class="fas fa-eye"></i></button> </td>
                            </tr>
                            <tr id="facture_products-<?php echo e($facture->id); ?>" class="collapse collapsed">
                                <td colspan="5">
                                    <ul>
                                        <?php $__currentLoopData = $facture->commande->commande_products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $com_prod): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <li><span><?php echo e($com_prod->product->parent->name_prod); ?></span> -
                                                <span><?php echo e($com_prod->product->ref_prod); ?></span> -
                                                <span><?php echo e($com_prod->product->prixvente - $com_prod->remise); ?>DH</span>
                                            </li>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </ul>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </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">
                        <thead>
                            <th>Num Facture</th>
                            <th>Type</th>
                            <th>Date</th>
                            <th>Fournisseur</th>
                            <th>détail</th>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $factures_fournisseur; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $facture): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($facture->num_facture); ?></td>
                                <td><?php if (isset($component)) { $__componentOriginalca334c67800a6a4b951d6a00b035e449ab64588b = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\TypeFacture::class, ['type' => $facture->type]); ?>
<?php $component->withName('type-facture'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php if (isset($__componentOriginalca334c67800a6a4b951d6a00b035e449ab64588b)): ?>
<?php $component = $__componentOriginalca334c67800a6a4b951d6a00b035e449ab64588b; ?>
<?php unset($__componentOriginalca334c67800a6a4b951d6a00b035e449ab64588b); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?></td>
                                <td><?php echo e($facture->date); ?></td>
                                <td><?php echo e($facture->user->name); ?></td>
                                <td> <button class="btn btn-info btn-sm" data-toggle="collapse"
                                    data-target="#facture_products-<?php echo e($facture->id); ?>"><i class="fas fa-eye"></i></button> </td>
                            </tr>
                            <tr id="facture_products-<?php echo e($facture->id); ?>" class="collapse collapsed">
                                <td colspan="5">
                                    <ul> 
                                        <?php $__currentLoopData = $facture->products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $com_prod): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <li><span><?php echo e($com_prod->parent ? $com_prod->parent->name_prod : ''); ?></span> -
                                                <span><?php echo e($com_prod->ref_prod); ?></span> -
                                                <span><?php echo e($com_prod->prixachat); ?>DH</span>
                                            </li>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </ul>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> 
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
  </div>
    </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('template', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\gestionstock\resources\views/factures/index.blade.php ENDPATH**/ ?>

Zerion Mini Shell 1.0