 <?php $__env->startSection('title','Projects'); ?> <?php $__env->startSection('content'); ?><div class="space-y-6"><div><p class="text-sm font-semibold text-blue-600">DELIVERY</p><h1 class="text-3xl font-black">Projects</h1></div><form method="POST" action="<?php echo e(route('projects.store')); ?>" class="card grid gap-3 p-4 md:grid-cols-3"><?php echo csrf_field(); ?><input class="input" name="code" placeholder="Code" required><input class="input" name="name" placeholder="Project name" required><select class="input" name="client_id"><option value="">Client</option><?php $__currentLoopData = $clients; $__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="manager_user_id"><option value="">Manager</option><?php $__currentLoopData = $managers; $__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><input class="input" name="technology_stack" placeholder="Technology stack"><input class="input" type="date" name="start_date"><input class="input" type="date" name="end_date"><select class="input" name="priority"><option>medium</option><option>high</option><option>low</option></select><input type="hidden" name="status" value="active"><button class="btn btn-primary">Create project</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>Client</th><th>Members</th><th>Tasks</th><th>Status</th></tr></thead><tbody><?php $__currentLoopData = $projects; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr class="border-t"><td class="p-3"><?php echo e($p->code); ?></td><td><a class="font-semibold text-blue-600" href="<?php echo e(route('projects.show',$p)); ?>"><?php echo e($p->name); ?></a></td><td><?php echo e($p->client?->name); ?></td><td><?php echo e($p->members_count); ?></td><td><?php echo e($p->tasks_count); ?></td><td><?php echo e($p->status); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div><?php echo e($projects->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/projects/index.blade.php ENDPATH**/ ?>