 <?php $__env->startSection('title',$project->name); ?> <?php $__env->startSection('content'); ?><p class="text-sm font-semibold text-blue-600"><?php echo e($project->code); ?></p><h1 class="text-3xl font-black"><?php echo e($project->name); ?></h1><p class="mt-2 max-w-3xl text-slate-600"><?php echo e($project->description); ?></p><div class="mt-6 grid gap-6 lg:grid-cols-2"><div class="card"><div class="border-b p-5 font-bold">Project team</div><?php $__currentLoopData = $project->members; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $m): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><div class="flex items-center justify-between border-b px-5 py-4 last:border-0"><div><p class="font-semibold"><?php echo e($m->user->name); ?></p><p class="text-xs text-slate-500"><?php echo e($m->role); ?></p></div><span class="badge"><?php echo e($m->allocation_percent); ?>%</span></div><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></div><div class="card"><div class="border-b p-5 font-bold">Tasks</div><?php $__currentLoopData = $project->tasks->take(15); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $t): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><div class="flex items-center justify-between border-b px-5 py-4 last:border-0"><div><p class="font-semibold"><?php echo e($t->title); ?></p><p class="text-xs text-slate-500"><?php echo e($t->assignee?->name); ?></p></div><span class="badge"><?php echo e($t->status); ?></span></div><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></div></div><div class="mt-6 grid gap-6 lg:grid-cols-2">
  <!-- Form 1: Assign member -->
  <form method="POST" action="<?php echo e(route('projects.members.store',$project)); ?>" class="card p-6 flex flex-col gap-4">
    <?php echo csrf_field(); ?>
    <h3 class="text-lg font-bold text-slate-800">Assign Project Member</h3>
    
    <div>
        <label class="block text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1.5">Developer / User</label>
        <select class="input" name="user_id">
          <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $u): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option value="<?php echo e($u->id); ?>"><?php echo e($u->name); ?></option>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
    
    <div>
        <label class="block text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1.5">Project Role</label>
        <input class="input" name="role" placeholder="e.g. Backend Engineer, QA" required>
    </div>
    
    <div>
        <label class="block text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1.5">Allocation Percentage</label>
        <input class="input" type="number" min="1" max="100" name="allocation_percent" value="100">
    </div>
    
    <button class="btn btn-primary mt-2">Assign Member</button>
  </form>

  <!-- Form 2: Create task -->
  <form method="POST" action="<?php echo e(route('tasks.store')); ?>" class="card p-6 flex flex-col gap-4">
    <?php echo csrf_field(); ?>
    <input type="hidden" name="project_id" value="<?php echo e($project->id); ?>">
    <h3 class="text-lg font-bold text-slate-800">Add Project Task</h3>
    
    <div>
        <label class="block text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1.5">Task Title</label>
        <input class="input" name="title" placeholder="e.g. Implement API endpoint" required>
    </div>
    
    <div>
        <label class="block text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1.5">Assignee</label>
        <select class="input" name="primary_assignee_id">
          <option value="">Unassigned</option>
          <?php $__currentLoopData = $project->members; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $m): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option value="<?php echo e($m->user->id); ?>"><?php echo e($m->user->name); ?> (<?php echo e($m->role); ?>)</option>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
    
    <div class="grid grid-cols-2 gap-3">
        <div>
            <label class="block text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1.5">Priority</label>
            <select class="input" name="priority">
              <option value="medium">Medium</option>
              <option value="high">High</option>
              <option value="low">Low</option>
            </select>
        </div>
        <div>
            <label class="block text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1.5">Due Date</label>
            <input class="input" type="date" name="due_date">
        </div>
    </div>
    
    <button class="btn btn-primary mt-2">Create Task</button>
  </form>
</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/show.blade.php ENDPATH**/ ?>