 <?php $__env->startSection('title','Employees'); ?> <?php $__env->startSection('content'); ?><div class="space-y-6"><div><p class="text-sm font-semibold text-blue-600">PEOPLE OPERATIONS</p><h1 class="text-3xl font-black">Employees</h1><p class="text-slate-500">Dedicated employee lifecycle and access.</p></div><form method="POST" action="<?php echo e(route('employees.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="employee_code" placeholder="Employee code" required><input class="input" name="designation" placeholder="Designation"><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="joining_date"><input type="hidden" name="employment_type" value="full_time"><button class="btn btn-primary">Create employee</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>Designation</th><th>Department</th><th>Office</th><th>Status</th><th></th></tr></thead><tbody><?php $__currentLoopData = $employees; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $e): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr class="border-t"><td class="p-3"><?php echo e($e->employee_code); ?></td><td><?php echo e($e->user->name); ?></td><td><?php echo e($e->designation); ?></td><td><?php echo e($e->department?->name); ?></td><td><?php echo e($e->office?->name); ?></td><td><?php echo e($e->status); ?></td><td><form method="POST" action="<?php echo e(route('employees.destroy',$e)); ?>"><?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?><button class="text-red-600">Remove</button></form></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div><?php echo e($employees->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/employees/index.blade.php ENDPATH**/ ?>