<?php $__env->startSection('title', 'Create Project'); ?>
<?php $__env->startSection('breadcrumb'); ?>
    <a href="<?php echo e(route('projects.index')); ?>" style="color:var(--text-secondary);">Projects</a>
    <span class="topbar-breadcrumb-sep">/</span>
    <span style="font-weight:600;color:var(--text-primary);">Create Project</span>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="page-header">
        <h1>Create New Project</h1>
    </div>

    <div class="card" style="max-width:680px;">
        <div class="card-body">
            <form method="POST" action="<?php echo e(route('projects.store')); ?>">
                <?php echo csrf_field(); ?>

                <div class="form-group">
                    <label class="form-label">Project Name *</label>
                    <input type="text" name="name" class="form-control" placeholder="Enter project name" value="<?php echo e(old('name')); ?>" required>
                    <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <div class="form-error"><?php echo e($message); ?></div> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>

                <div class="form-group">
                    <label class="form-label">Description</label>
                    <textarea name="description" class="form-control" rows="3" placeholder="What is this project about?"><?php echo e(old('description')); ?></textarea>
                </div>

                <div class="grid grid-2">
                    <div class="form-group">
                        <label class="form-label">Team</label>
                        <select name="team_id" class="form-control">
                            <option value="">No Team</option>
                            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($team->id); ?>"><?php echo e($team->name); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                    </div>
                    <div class="form-group">
                        <label class="form-label">Priority</label>
                        <select name="priority" class="form-control">
                            <option value="medium">Medium</option>
                            <option value="low">Low</option>
                            <option value="high">High</option>
                            <option value="urgent">Urgent</option>
                        </select>
                    </div>
                </div>

                <div class="grid grid-2">
                    <div class="form-group">
                        <label class="form-label">Start Date</label>
                        <input type="date" name="start_date" class="form-control" value="<?php echo e(old('start_date')); ?>">
                    </div>
                    <div class="form-group">
                        <label class="form-label">Due Date</label>
                        <input type="date" name="due_date" class="form-control" value="<?php echo e(old('due_date')); ?>">
                    </div>
                </div>

                <div class="form-group">
                    <label class="form-label">Color</label>
                    <div class="flex gap-2" x-data="{ color: '#6366f1' }">
                        <?php $__currentLoopData = ['#6366f1','#ec4899','#22c55e','#f97316','#3b82f6','#eab308','#14b8a6','#ef4444']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <label style="cursor:pointer;">
                                <input type="radio" name="color" value="<?php echo e($c); ?>" class="hidden" <?php echo e($loop->first ? 'checked' : ''); ?>>
                                <div style="width:32px;height:32px;border-radius:50%;background:<?php echo e($c); ?>;border:3px solid transparent;transition:all 0.15s;" onclick="this.style.borderColor='white';document.querySelectorAll('input[name=color]').forEach(el => { if(el.value !== '<?php echo e($c); ?>') el.nextElementSibling.style.borderColor = 'transparent'; });"></div>
                            </label>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>

                <div class="flex gap-3 mt-4">
                    <button type="submit" class="btn btn-primary">Create Project</button>
                    <a href="<?php echo e(route('projects.index')); ?>" class="btn btn-secondary">Cancel</a>
                </div>
            </form>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/XAMPP/xamppfiles/htdocs/asana/resources/views/projects/create.blade.php ENDPATH**/ ?>