
<?php $__env->startSection('title'); ?> Email appel <?php $__env->stopSection(); ?>
<?php $__env->startSection('title_card',""); ?>
<?php $__env->startSection('subtitle_card',""); ?>


<?php $__env->startSection('content'); ?>
    <div class="card">
        <div class="col-lg-max col-lg-offset-1 container-fluid">
            <div class="card-header bg-info">
                Emails envoyés à <?php echo $employeur->nom; ?>

            </div>
            <div class="card-body">
                <table id="_table" style="background-color:white"  
                    class="table table-condensed table-striped table-hover table-bordered">
                    <thead>
                        <tr>
                            <th width='1%'>N°</th>
                            <th >Date/Destinataire</th>
                            <th width='1%'>Expéditeur</th>
                            <th >Objet</th>
                            <th  width='25%'>Texte</th>
                            <th width='1%'>PJ</th>
                            <th width='1%'>Statut</th>
                        </tr>
                    </thead>
         
                    <tbody>
                        <?php $__currentLoopData = $emails; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $email): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
                            <?php
                                $nom_fichier=$email->pj;
                                $pj="";
                                if($nom_fichier!="") $pj=url("/upload/recouvrement/bordereau/".$nom_fichier);
                            ?>
                            <tr>
                                <td nowrap><?php echo $email->id; ?></td>
                                <td nowrap><?php echo $email->date."<br>".$email->destinataire; ?></td>
                                <td nowrap><?php echo $email->NomUser; ?></td>
                                <td><?php echo $email->objet; ?></td>
                                <td><?php echo $email->texte; ?></td>
                                <td ><a href="<?php echo $pj; ?>" target="_blank"><?php echo ($pj=="")?'':$nom_fichier; ?></a></td>
                                <td nowrap><?php echo $email->statut; ?></td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
             </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
               

<?php $__env->startSection('scripts'); ?>
    <script>
    $(document).ready(function() {
       $.fn.dataTable.moment('D/M/YYYY');
        var table =$('#_table').dataTable( {
            bAutoWidth: false,
            bPaginate: true,
            bInfo: true,
            bFilter: true,
            deferRender:    true,
            scrollCollapse: false,
            scroller:       false,
            iDisplayLength:10,
            oLanguage: {
                "sZeroRecords": "Aucune ligne",
                "sInfo": "Affichage de _START_ &agrave; _END_ sur _TOTAL_ lignes",
                "sInfoEmpty": "Showing 0 to 0 of 0 records",
                "sInfoFiltered": "(sur un total de _MAX_ lignes)",
                "oPaginate": {
                    "sPrevious": "Pr&eacute;c&eacute;dente","sNext": "Suivante"
                    ,"sFirst": "Premi&egrave;re","sLast": "Derni&egrave;re"
                    },
                "sSearch":"Chercher ",
                buttons: {
                        colvis: 'Colonnes à afficher',
                        copy: 'Copier',
                        print: 'Imprimer',
                        copyTitle: 'Ajouté au presse-papiers',
                        copyKeys: 'Appuyez sur <i>ctrl</i> ou <i>\u2318</i> + <i>C</i> pour copier les données du tableau à votre presse-papiers. <br><br>Pour annuler, cliquez sur ce message ou appuyez sur Echap.',
                        copySuccess: {
                            _: '%d lignes copiées',
                            1: '1 ligne copiée'
                        }
                    }

                },
                    dom: "<'row'<'col-sm-2 text-left'f><'col-sm-4'><'col-sm-6 text-right'B>>" +
                    "<'row'<'col-sm-12'tr>>" +
                    "<'row'<'col-sm-5'i><'col-sm-7'p>>",

                buttons: [ 
                    {extend: 'copy',exportOptions: {columns: ':visible'} },
                    {extend: 'excel',exportOptions: {columns: ':visible'} },                
                ],
                

            } );
    } );
    </script>
<?php $__env->stopSection(); ?>





<?php echo $__env->make('layouts.dash_pop', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre2\resources\views/recouvrement/suivi/emails_detail.blade.php ENDPATH**/ ?>