<?php
error_reporting(1);
$explode = explode('/',$_SERVER['REQUEST_URI']);

?>

@extends('index')

@section('content')
    <link href="https://v3dboy.ir/previews/html/qovex/qovex/Vertical/assets/libs/datepicker-jalali/bootstrap-datepicker.min.css" rel="stylesheet">

    <div class="page-content">

        <!-- start page title -->
        <div class="row">
            <div class="col-12">
                <div class="page-title-box d-flex align-items-center justify-content-between">
                    <h4 class="page-title mb-0 font-size-18">عناصر فرم</h4>

                    <div class="page-title-right">
                        <ol class="breadcrumb m-0">
                            <li class="breadcrumb-item"><a href="javascript:%20void(0);">فرم ها</a></li>
                            <li class="breadcrumb-item active">عناصر فرم</li>
                        </ol>
                    </div>

                </div>
            </div>
        </div>
        <!-- end page title -->

        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-body">

                        <h4 class="card-title">ورودی های متنی</h4>
                        <p class="card-title-desc">در زیر مثال هایی از <code>.form-control</code> اعمال شده بر هر <code>type</code> از تگ <code>&lt;input&gt;</code> آورده شده است.</p>
                        <form action="savenewtask" method="post" id="sidebar">@csrf



                            <div class="form-group row">
                                <label for="example-date-input" class="col-md-2 col-form-label">عنوان</label>
                                <div class="col-md-10">
                                    <input class="form-control" name="title" type="text" id="example-date-input">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="example-text-input" class="col-md-2 col-form-label">title</label>
                                <div class="col-md-10">
                                    <div class="input-daterange input-group">
                                        <input name="d1" value="" type="text" class="form-control" placeholder="تاریخ شروع"  >
                                        <input name="d3" value="" type="text" class="form-control" placeholder="تاریخ پایان" >
                                    </div>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="example-date-input" class="col-md-2 col-form-label">توضیحات </label>
                                <div class="col-md-10">
                                   <textarea class="form-control" name="task" id="elm1"  >
                                </textarea>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="example-text-input" class="col-md-2 col-form-label">وضعیت</label>
                                <div class="col-md-10">
                            <select class="form-control" id="pet-select" name="status"  >
                                <option value="0">فعال</option>
                                <option value="1">مهم</option>
                                <option value="2">گذشته</option>
                                <option value="3">غیر فعال</option>
                                <option value="4">حذف شده</option>
                                <option value="100">انجام شده</option>
                            </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="example-text-input" class="col-md-2 col-form-label">ادمین هدف</label>
                                <div class="col-md-10">
                                    <select class="form-control" name="admin_id">
                                        @foreach($Admins as $admin)
                                            <option value="{{$admin->id}}|-|{{$admin->name}}">{{$admin->name}}</option>
                                        @endforeach
                                    </select>
                                    <hr>
                                </div>
                                <label for="example-text-input" class="col-md-2 col-form-label">پروژه هدف</label>
                                <div class="col-md-10">
                                    <select class="form-control" name="project_id">
                                        @foreach($Projects as $admin)
                                            <option value="{{$admin->id}}|-|{{$admin->title}}">{{$admin->title}}</option>
                                        @endforeach
                                    </select>
                                </div>
                                <input type="hidden" name="maker" value="{{$Admin->name}}">
                            </div>
                            <div class="form-group row">

                            </div>



                            <input type="submit" class="btn btn-success  btn-lg btn-block waves-effect waves-light mb-1">


                        </form>
                    </div>
                </div>
            </div>
            <!-- end col -->
        </div>
        <!-- end row -->

    </div>
@endsection
@section('script-time-custom')
    <!-- bootstrap datepicker -->
    <script src="https://v3dboy.ir/previews/html/qovex/qovex/Vertical/assets/libs/datepicker-jalali/bootstrap-datepicker.min.js"></script>
    <script src="https://v3dboy.ir/previews/html/qovex/qovex/Vertical/assets/libs/datepicker-jalali/bootstrap-datepicker.fa.min.js"></script>

    <!-- Summernote js -->
    <script src="https://v3dboy.ir/previews/html/qovex/qovex/Vertical/assets/libs/summernote/summernote-bs4.min.js"></script>
    <script src="https://v3dboy.ir/previews/html/qovex/qovex/Vertical/assets/libs/summernote/lang/summernote-fa-IR.min.js"></script>

    <!-- form repeater js -->
    <script src="https://v3dboy.ir/previews/html/qovex/qovex/Vertical/assets/libs/jquery.repeater/jquery.repeater.min.js"></script>

    <script src="https://v3dboy.ir/previews/html/qovex/qovex/Vertical/assets/js/pages/task-create.init.js"></script>
@endsection

