 <?php $__env->startSection('title','Interns'); ?> <?php $__env->startSection('content'); ?><div class="space-y-6"><div><p class="text-sm font-semibold text-violet-600">INTERNSHIP PROGRAM</p><h1 class="text-3xl font-black">Interns</h1><p class="text-slate-500">Separate intern lifecycle, mentor, learning, evaluation and stipend.</p></div><form method="POST" action="<?php echo e(route('interns.store')); ?>" class="card grid gap-3 p-4 md:grid-cols-3"><?php echo csrf_field(); ?><input class="input" name="name" placeholder="Full name" required><input class="input" type="email" name="email" placeholder="Email" required><input class="input" name="intern_code" placeholder="Intern code" required><input class="input" name="institution" placeholder="Institution"><input class="input" name="degree_program" placeholder="Degree program"><select class="input" name="mentor_user_id"><option value="">Mentor</option><?php $__currentLoopData = $mentors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $x): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($x->id); ?>"><?php echo e($x->name); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select><select class="input" name="department_id"><option value="">Department</option><?php $__currentLoopData = $departments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $x): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($x->id); ?>"><?php echo e($x->name); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select><select class="input" name="office_id"><option value="">Office</option><?php $__currentLoopData = $offices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $x): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($x->id); ?>"><?php echo e($x->name); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select><select class="input" name="shift_id"><option value="">Shift</option><?php $__currentLoopData = $shifts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $x): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($x->id); ?>"><?php echo e($x->name); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select><input class="input" type="date" name="start_date" required><input class="input" type="date" name="end_date"><input class="input" type="number" name="stipend_amount" min="0" value="0" required><button class="btn btn-primary">Create intern</button></form><div class="card overflow-x-auto"><table class="w-full text-sm"><thead><tr><th class="p-3 text-left">Code</th><th>Name</th><th>Institution</th><th>End</th><th>Status</th><th></th></tr></thead><tbody><?php $__currentLoopData = $interns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr class="border-t"><td class="p-3"><?php echo e($i->intern_code); ?></td><td><?php echo e($i->user->name); ?></td><td><?php echo e($i->institution); ?></td><td><?php echo e(optional($i->end_date)->format('Y-m-d')); ?></td><td><?php echo e($i->status); ?></td><td><a class="text-blue-600" href="<?php echo e(route('interns.development',$i)); ?>">Development</a></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div><?php echo e($interns->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/interns/index.blade.php ENDPATH**/ ?>