M1n1 Shira0ka File Manager
<?php $__env->startSection('content'); ?>
<h2>Pointages pour <?php echo e($member->lastname . ' ' . $member->firstname); ?></h2>
<a class="btn btn-primary" href="<?php echo e(route('member.index')); ?>">Retour</a><br/><br/>
<div id='calendar' style="max-width: 800px"></div>
<br />
<h2>Abonnements pour <?php echo e($member->lastname . ' ' . $member->firstname); ?></h2>
<a class="btn btn-primary" href="<?php echo e(route('member.index')); ?>">Retour</a><br/><br/>
<table class="table">
<thead>
<tr>
<th style="width:5px; padding:0"></th>
<th scope="col">Début</th>
<th scope="col">Fin</th>
<th scope="col">Coût</th>
<th scope="col">Reste à payer</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="5" style="text-align: center"><a class="btn btn-primary" href="<?php echo e(route('add_subscription', $member)); ?>">Ajouter un abonnement</a></td>
</tr>
<?php $__currentLoopData = $subscribes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sub): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr class="row_result">
<td style="width:3px; padding:0;background-color: <?php if($sub->is_good() == 1): ?>
<?php echo e('#28a745'); ?>
<?php elseif($sub->is_good() == 0): ?>
<?php echo e('#dc3545'); ?>
<?php else: ?>
<?php echo e('#856404'); ?>
<?php endif; ?>;"></td>
<td><?php echo e($sub->get_date_start()); ?></td>
<td><?php echo e($sub->get_date_end()); ?></td>
<td><?php echo e(number_format($sub->cost, 0, ',', ' ')); ?> Rps</td>
<td><?php echo e(number_format($sub->credit, 0, ',', ' ')); ?> Rps</td>
<td>
<a class="btn btn-primary" href="<?php echo e(route('subscription_edit', $sub)); ?>">Modifier</a>
<a class="btn btn-secondary" href="<?php echo e(route('subscription_destroy', $sub)); ?>">Supprimer</a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php if(count($subscribes) == 0): ?>
<tr>
<td style="text-align: center;font-size: 1.5em" colspan="5">Aucun Abonnement</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<script>
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
initialView: 'dayGridMonth',
events: '<?php echo e(route('list_event', $member)); ?>',
locale: 'fr',
timeZone: 'Asia/Hong_Kong',
});
calendar.render();
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\WWW\bullgym\resources\views/subscriptions_list.blade.php ENDPATH**/ ?>
GO Party By You