<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Add Project - Task Panel</title>
    
    <!-- Google Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap" rel="stylesheet">
    
    <!-- Inline CSS for styling (Consistent with dashboard & projects, pure Vanilla CSS) -->
    <style>
        /* CSS Custom Variables */
        :root {
            --primary-color: #3b46f1;
            --primary-hover: #2a35d8;
            --primary-light: #eff6ff;
            --bg-main: #f8fafc;
            --bg-card: #ffffff;
            
            --text-main: #0f172a;
            --text-muted: #64748b;
            --text-label: #334155;
            --border-color: #e2e8f0;
            --border-hover: #cbd5e1;
            --font-family: 'Instrument Sans', sans-serif;

            --color-completed: #10b981;
            --color-completed-light: #ecfdf5;
            --color-hold: #ef4444;
            --color-hold-light: #fef2f2;
            
            --sidebar-width: 260px;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
            --border-radius: 12px;
        }

        /* Global Reset & Base Styling */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-family);
            background-color: var(--bg-main);
            color: var(--text-main);
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
        }

        /* Main Page Layout Wrapper */
        .dashboard-layout {
            display: flex;
            position: relative;
            min-height: 100vh;
        }


        /* Main Content Panel Area */
        .main-content {
            margin-left: var(--sidebar-width);
            flex-grow: 1;
            padding: 2rem;
            display: flex;
            flex-direction: column;
            gap: 2rem;
            min-width: 0;
            transition: margin-left 0.3s ease;
        }

        /* Topbar Header Area */
        .topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        /* Right section: Admin Profile */
        .topbar-right {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-left: auto;
        }

        /* User Admin profile badge */
        .admin-profile {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background-color: var(--bg-card);
            padding: 0.375rem 0.875rem 0.375rem 0.375rem;
            border-radius: 50px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
        }

        .avatar-initials {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, #4f46e5, #3b82f6);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-weight: 700;
            font-size: 0.875rem;
            position: relative;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .online-dot {
            width: 10px;
            height: 10px;
            background-color: #10b981;
            border: 2px solid var(--bg-card);
            border-radius: 50%;
            position: absolute;
            bottom: 0;
            right: 0;
        }

        .admin-info {
            display: flex;
            flex-direction: column;
            line-height: 1.2;
        }

        .admin-name {
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .admin-role {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* Breadcrumbs navigation */
        .breadcrumbs-container {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-muted);
        }

        .breadcrumbs-link {
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .breadcrumbs-link:hover {
            color: var(--primary-hover);
        }

        /* Title block */
        .dashboard-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            animation: fadeIn 0.5s ease-out;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .dashboard-title {
            font-size: 1.875rem;
            font-weight: 800;
            letter-spacing: -0.03em;
            color: var(--text-main);
        }

        /* Card Component base styling */
        .card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
        }

        /* Grid for form inputs */
        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem 2rem;
            margin-bottom: 1.5rem;
            animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .form-group-full {
            grid-column: span 2;
        }

        .form-label {
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--text-label);
        }

        /* Text/Dropdown input fields */
        .input-wrapper {
            position: relative;
            border-radius: 8px;
            box-shadow: var(--shadow-sm);
        }

        .input-field {
            display: block;
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-main);
            background-color: #ffffff;
            font-size: 0.875rem;
            font-family: inherit;
            transition: all 0.2s ease;
        }

        .input-field::placeholder {
            color: var(--text-muted);
        }

        .input-field:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(59, 70, 241, 0.15);
        }

        /* Dropdown selector styles */
        select.input-field {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            padding-right: 2.5rem;
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 0.875rem;
        }

        select.input-field:focus {
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233b46f1' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
        }

        /* Textarea */
        textarea.input-field {
            resize: vertical;
            min-height: 100px;
        }

        /* Form action buttons footer block */
        .form-actions-footer {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 1rem;
            border-top: 1px solid var(--border-color);
            padding-top: 1.5rem;
            margin-top: 1rem;
            animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            border: 1px solid transparent;
        }

        .btn-cancel {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-label);
            box-shadow: var(--shadow-sm);
        }

        .btn-cancel:hover {
            border-color: var(--border-hover);
            background-color: #fafafb;
        }

        .btn-submit {
            background-color: var(--primary-color);
            color: #ffffff;
            box-shadow: 0 4px 6px -1px rgba(59, 70, 241, 0.1), 0 2px 4px -1px rgba(59, 70, 241, 0.06);
        }

        .btn-submit:hover {
            background-color: var(--primary-hover);
            box-shadow: 0 10px 15px -3px rgba(59, 70, 241, 0.2), 0 4px 6px -2px rgba(59, 70, 241, 0.1);
        }

        /* Error alerts */
        .alert-error {
            background-color: var(--color-hold-light);
            border-left: 4px solid var(--color-hold);
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1.5rem;
            box-shadow: var(--shadow-sm);
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            font-size: 0.875rem;
            font-weight: 600;
            color: #991b1b;
        }

        .alert-error ul {
            list-style: inside disc;
            padding-left: 0.5rem;
            font-weight: 500;
            font-size: 0.8rem;
            margin-top: 0.25rem;
        }

        /* General Animation keyframes */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(16px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .main-content {
                margin-left: 0;
                padding: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .form-grid {
                grid-template-columns: 1fr;
            }
            .form-group-full {
                grid-column: span 1;
            }
            .form-actions-footer {
                justify-content: stretch;
            }
            .btn {
                flex-grow: 1;
            }
        }
    </style>
</head>
<body>

    <div class="dashboard-layout">
        
        <!-- ==========================================
             LEFT SIDEBAR NAVIGATION
             ========================================== -->
        <?php echo $__env->make('admin.sidebar.sidebar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

        <main class="main-content">
            <?php echo $__env->make('admin.sidebar.topbar', [
                'title' => 'Add New Project',
                'breadcrumbs' => '<div class="breadcrumbs-container"><a href="'.route('projects.index').'" class="breadcrumbs-link">Projects</a><span>&gt;</span><span>Add Project</span></div>'
            ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

            <?php if($errors->any()): ?>
                <div class="alert-error">
                    <div style="display: flex; align-items: center; gap: 0.5rem;">
                        <svg style="width: 1.25rem; height: 1.25rem;" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
                            <path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z" clip-rule="evenodd"></path>
                        </svg>
                        <strong>Please correct the following errors:</strong>
                    </div>
                    <ul>
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li><?php echo e($error); ?></li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                </div>
            <?php endif; ?>

            <div class="card">
                <form id="add-project-form" method="POST" action="<?php echo e(route('projects.store')); ?>">
                    <?php echo csrf_field(); ?>
                    
                    <div class="form-grid">
                        
                        <div class="form-group">
                            <label for="name" class="form-label">Project Name</label>
                            <div class="input-wrapper">
                                <input type="text" name="name" id="name" value="<?php echo e(old('name')); ?>" class="input-field" placeholder="Enter project name" required>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="type" class="form-label">Project Type</label>
                            <div class="input-wrapper">
                                <select name="type" id="type" class="input-field" required>
                                    <option value="" disabled <?php echo e(old('type') === null ? 'selected' : ''); ?>>Select Project Type</option>
                                    <option value="Web" <?php echo e(old('type') === 'Web' ? 'selected' : ''); ?>>Web Application (Web)</option>
                                    <option value="App" <?php echo e(old('type') === 'App' ? 'selected' : ''); ?>>Mobile Application (App)</option>
                                    <option value="API" <?php echo e(old('type') === 'API' ? 'selected' : ''); ?>>API Integration (API)</option>
                                    <option value="UI/UX" <?php echo e(old('type') === 'UI/UX' ? 'selected' : ''); ?>>UI/UX Design (UI/UX)</option>
                                </select>
                            </div>
                        </div>

                        





                    </div>

                    <div class="form-actions-footer">
                        <a href="<?php echo e(route('projects.index')); ?>" class="btn btn-cancel">Cancel</a>
                        <button type="submit" class="btn btn-submit">Create Project</button>
                    </div>

                </form>
            </div>

        </main>
    </div>

</body>
</html>
<?php /**PATH /home/sainikcanteen/public_html/task/resources/views/admin/projects/addproject.blade.php ENDPATH**/ ?>