@extends('layouts.app')

@section('content')

<div class="container mt-5">
    <h2>{{ 'Add Project Status' }}</h2>
    @include('commons.notifications')
    <form action="{{ isset($project_status) ? route('project-status.update', $project_status->id) : route('project-status.store') }}" method="POST">
        <input type="hidden" name="assignee_id" value="{{ \Auth::user()->id }}">
        <input type="hidden" name="project_id" value="{{ $project->id }}">
        @csrf
        
        <div class="mb-3">
            <label for="description" class="form-label">Description</label>
            <textarea class="form-control" name="description" id="description" rows="4" required></textarea>
        </div>
        
        <div class="mb-3">
            <label for="status" class="form-label">Status</label>
            <select class="form-select" id="status" name="status" required>
                <option value="" disabled>-- Select Status--</option>
                <option value="Pending">Pending</option>
                <option value="In Progress">In Progress</option>
                <option value="Completed">Completed</option>
            </select>
        </div>
        <button type="submit" class="btn btn-primary">{{ 'Add Status' }}</button>
    </form>
</div>

@endsection