<?php $__env->startSection('contenu'); ?>
    <?php echo $__env->make('/partials/modalModifierOperation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalConfirmSuppOperation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalAjouterOperation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('/partials/modalDetailsOperation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('partials/modalRapport', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <section
        style="background-image: url('/img/board.png'); background-attachment: fixed; background-repeat: no-repeat; background-size: cover; min-height: 93.2vh;"
        class="section p-3 mt-0 mb-0 mx-2-touch columns mx-0 is-centered is-flex-desktop is-flex-direction-column is-justify-content-center">
        <nav class="panel mx-auto is-info column is-half p-0">
            <p class="panel-heading">
                Les transactions
            </p>
            <p class="panel-tabs has-background-white">
                <a id="default" class="tab" onclick="openContent(event, 'tout')">Tout</a>
                <a class="tab" onclick="openContent(event, 'depenses')">Dépenses</a>
                <a class="tab" onclick="openContent(event, 'encaissements')">Encaissements</a>
            </p>
            <div class="mb-5" style="background: #E4E9F2; height: 25rem; overflow-y: auto">
                <div class="has-text-centered p-3">
                    <a onclick="openForm('modalAjouterOperation')" class="button is-info is-rounded mr-3">
                        <strong>Ajouter Transaction</strong>
                    </a>
                    <a onclick="openForm('modalRapport')" class="button is-info is-rounded">
                        <strong>Rapport</strong>
                    </a>
                </div>
                <div id="tout" class="contenu-block columns m-0">
                    <div class="column px-0">
                        <?php $__currentLoopData = $operations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $operation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span class="columns is-flex m-auto">
                                <span class="column is-three-quarters">
                                    <span class="panel-block">
                                        <span class="panel-icon">
                                            <i class="fas fa-money-bill" aria-hidden="true"></i>
                                        </span>
                                        <?php echo e($operation->libelle); ?>(<?php echo e($operation->type_operation); ?>) par
                                        <?php echo e($operation->user != null ? $operation->user->prenom . ' ' . $operation->user->nom : 'UPGROUP-PAY'); ?>

                                        <?php echo e($operation->statut == 'annule' ? ' (Annulee)' : ''); ?>

                                    </span>
                                </span>
                                <?php if(auth()->user()->administrateur == 1): ?>
                                    <span class="column px-0 is-flex is-justify-content-right">
                                        <a class="icon is-medium"
                                            onclick="openForm('modalDetailsOperation'); get_ref_det('<?php echo e($operation->reference); ?>'); get_libelle_det('<?php echo e(addslashes($operation->libelle)); ?>'); get_type_det('<?php echo e($operation->type_operation); ?>'); get_descr_det('<?php echo e(addslashes($operation->description == null ? '' : $operation->description)); ?>'); get_montant_det('<?php echo e($operation->montant); ?>'); get_author_det('<?php echo e($operation->user != null ? $operation->user->prenom . ' ' . $operation->user->nom : 'UPGROUP-PAY'); ?>'); get_date_det('<?php echo e(date('d/m/Y', strtotime($operation->created_at))); ?>'); get_update_det('<?php echo e(date('d/m/Y', strtotime($operation->updated_at))); ?>'); get_statut_det('<?php echo e($operation->statut); ?>');">
                                            <i title="Détails" class="fas fa-info" aria-hidden="true"></i>
                                        </a>
                                        <a class="icon is-medium"
                                            onclick="openForm('modalModifierOperation'); get_id_operation(<?php echo e($operation->id); ?>); get_libelle_operation('<?php echo e(addslashes($operation->libelle)); ?>'); get_type_operation('<?php echo e($operation->type_operation); ?>'); get_descr('<?php echo e(addslashes($operation->description == null ? '' : $operation->description)); ?>'); get_montant('<?php echo e($operation->montant); ?>');">
                                            <i title="Modifier" class="fas fa-edit" aria-hidden="true"></i>
                                        </a>
                                        <a class="icon is-medium"
                                            onclick="get_id_operation(<?php echo e($operation->id); ?>); openForm('modalSuppOperation')">
                                            <i title="Supprimer" class="fas fa-trash-alt" aria-hidden="true"></i>
                                        </a>
                                    </span>
                                <?php endif; ?>
                            </span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
                <div id="depenses" class="contenu-block columns m-0">
                    <div class="column">
                        <?php $__currentLoopData = $depenses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $operation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span class="columns is-flex m-auto">
                                <span class="column is-three-quarters">
                                    <span class="panel-block">
                                        <span class="panel-icon">
                                            <i class="fas fa-money-bill" aria-hidden="true"></i>
                                        </span>
                                        <?php echo e($operation->libelle); ?> par
                                        <?php echo e($operation->user != null ? $operation->user->prenom . ' ' . $operation->user->nom : 'UPGROUP-PAY'); ?>

                                        <?php echo e($operation->statut == 'annule' ? ' (Annulee)' : ''); ?>

                                    </span>
                                </span>
                                <span class="column is-flex is-justify-content-right">
                                    <a class="icon is-medium"
                                        onclick="openForm('modalDetailsOperation'); get_ref_det('<?php echo e($operation->reference); ?>'); get_libelle_det('<?php echo e(addslashes($operation->libelle)); ?>'); get_type_det('<?php echo e($operation->type_operation); ?>'); get_descr_det('<?php echo e(addslashes($operation->description == null ? '' : $operation->description)); ?>'); get_montant_det('<?php echo e($operation->montant); ?>'); get_author_det('<?php echo e($operation->user != null ? $operation->user->prenom . ' ' . $operation->user->nom : 'UPGROUP-PAY'); ?>'); get_date_det('<?php echo e(date('d/m/Y', strtotime($operation->created_at))); ?>'); get_update_det('<?php echo e(date('d/m/Y', strtotime($operation->updated_at))); ?>'); get_statut_det('<?php echo e($operation->statut); ?>');">
                                        <i title="Détails" class="fas fa-info" aria-hidden="true"></i>
                                    </a>
                                    <a title="Modifier" class="icon is-medium"
                                        onclick="openForm('modalModifierOperation'); get_id_operation(<?php echo e($operation->id); ?>); get_libelle_operation('<?php echo e(addslashes($operation->libelle)); ?>'); get_type_operation('<?php echo e($operation->type_operation); ?>'); get_descr('<?php echo e(addslashes($operation->description == null ? '' : $operation->description)); ?>'); get_montant('<?php echo e($operation->montant); ?>');">
                                        <i class="fas fa-edit" aria-hidden="true"></i>
                                    </a>
                                    <a title="Supprimer" class="icon is-medium"
                                        onclick="get_id_matiere(<?php echo e($operation->id); ?>); openForm('modalSuppMatiere')">
                                        <i class="fas fa-trash-alt" aria-hidden="true"></i>
                                    </a>
                                </span>
                            </span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
                <div id="encaissements" class="contenu-block columns m-0">
                    <div class="column">
                        <?php $__currentLoopData = $encaissements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $operation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span class="columns is-flex m-auto">
                                <span class="column is-three-quarters">
                                    <span class="panel-block">
                                        <span class="panel-icon">
                                            <i class="fas fa-money-bill" aria-hidden="true"></i>
                                        </span>
                                        <?php echo e($operation->libelle); ?> par
                                        <?php echo e($operation->user != null ? $operation->user->prenom . ' ' . $operation->user->nom : 'UPGROUP-PAY'); ?>

                                        <?php echo e($operation->statut == 'annule' ? ' (Annulee)' : ''); ?>

                                    </span>
                                </span>
                                <span class="column is-flex is-justify-content-right">
                                    <a class="icon is-medium"
                                        onclick="openForm('modalDetailsOperation'); get_ref_det('<?php echo e($operation->reference); ?>'); get_libelle_det('<?php echo e(addslashes($operation->libelle)); ?>'); get_type_det('<?php echo e($operation->type_operation); ?>'); get_descr_det('<?php echo e(addslashes($operation->description == null ? '' : $operation->description)); ?>'); get_montant_det('<?php echo e($operation->montant); ?>'); get_author_det('<?php echo e($operation->user != null ? $operation->user->prenom . ' ' . $operation->user->nom : 'UPGROUP-PAY'); ?>'); get_date_det('<?php echo e(date('d/m/Y', strtotime($operation->created_at))); ?>'); get_update_det('<?php echo e(date('d/m/Y', strtotime($operation->updated_at))); ?>'); get_statut_det('<?php echo e($operation->statut); ?>');">
                                        <i title="Détails" class="fas fa-info" aria-hidden="true"></i>
                                    </a>
                                    <a title="Modifier" class="icon is-medium"
                                        onclick="openForm('modalModifierOperation'); get_id_operation(<?php echo e($operation->id); ?>); get_libelle_operation('<?php echo e(addslashes($operation->libelle)); ?>'); get_type_operation('<?php echo e($operation->type_operation); ?>'); get_descr('<?php echo e(addslashes($operation->description == null ? '' : $operation->description)); ?>'); get_montant('<?php echo e($operation->montant); ?>');">
                                        <i class="fas fa-edit" aria-hidden="true"></i>
                                    </a>
                                    <a title="Supprimer" class="icon is-medium"
                                        onclick="get_id_matiere(<?php echo e($operation->id); ?>); openForm('modalSuppMatiere')">
                                        <i class="fas fa-trash-alt" aria-hidden="true"></i>
                                    </a>
                                </span>
                            </span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            </div>
            <div class="columns"></div>
            <div style="position: relative;" class="is-flex is-justify-content-center">
                <img src="/img/upschool.svg" width="200" alt="">
            </div>
        </nav>
    </section>
    <?php echo $__env->make('/partials/operationJs', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/dide1435/luqman.upschool-sn.com/resources/views/operations.blade.php ENDPATH**/ ?>