 <?php $__env->startSection('title','Intern Stipends'); ?> <?php $__env->startSection('content'); ?><div class="space-y-6"><h1 class="text-2xl font-black">Intern Stipends</h1><form method="POST" action="<?php echo e(route('stipends.calculate')); ?>" class="card flex gap-3 p-4"><?php echo csrf_field(); ?><input class="input" type="month" name="period" required><button class="btn btn-primary">Calculate stipend batch</button></form><div class="card overflow-x-auto"><table class="w-full text-sm"><thead><tr><th class="p-3 text-left">Period</th><th>Status</th><th>Items</th><th>Actions</th></tr></thead><tbody><?php $__currentLoopData = $batches; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $b): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr class="border-t"><td class="p-3"><?php echo e($b->period); ?></td><td><?php echo e($b->status); ?></td><td><?php echo e($b->items_count); ?></td><td class="flex gap-2 p-3"><?php if(!$b->locked_at): ?><form method="POST" action="<?php echo e(route('stipends.approve',$b)); ?>"><?php echo csrf_field(); ?><button class="btn btn-soft">Approve & lock</button></form><?php endif; ?> <?php if($b->status==='approved'): ?><form method="POST" action="<?php echo e(route('stipends.paid',$b)); ?>"><?php echo csrf_field(); ?><button class="btn btn-primary">Mark paid</button></form><?php endif; ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div><?php echo e($batches->links()); ?></div><?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/macbook/Desktop/crm/softsuite-cms/resources/views/stipends/index.blade.php ENDPATH**/ ?>