 <?php $__env->startSection('title','Tasks'); ?> <?php $__env->startSection('content'); ?><p class="text-sm font-semibold text-blue-600">WORK MANAGEMENT</p><h1 class="text-3xl font-black">Tasks</h1><div class="mt-6 card overflow-x-auto"><table class="w-full text-sm"><thead class="bg-slate-50 text-left"><tr><th class="p-4">Task</th><th class="p-4">Project</th><th class="p-4">Assignee</th><th class="p-4">Due</th><th class="p-4">Status</th></tr></thead><tbody><?php $__currentLoopData = $tasks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $t): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr class="border-t"><td class="p-4 font-semibold"><?php echo e($t->title); ?></td><td class="p-4"><?php echo e($t->project->name); ?></td><td class="p-4"><?php echo e($t->assignee?->name); ?></td><td class="p-4"><?php echo e(optional($t->due_date)->format('d M')); ?></td><td class="p-4"><form method="POST" action="<?php echo e(route('tasks.status',$t)); ?>"><?php echo csrf_field(); ?> <?php echo method_field('PATCH'); ?><select name="status" onchange="this.form.submit()" class="rounded-lg border-slate-200 text-sm"><option selected><?php echo e($t->status); ?></option><?php $__currentLoopData = ['assigned','in_progress','blocked','in_review','qa','completed','cancelled']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if($s!==$t->status): ?><option value="<?php echo e($s); ?>"><?php echo e($s); ?></option><?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></form></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div><div class="mt-4"><?php echo e($tasks->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/tasks/index.blade.php ENDPATH**/ ?>