<?php
use App\Classes\jDate;
$jDate	= new jDate();
$persian = ['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹'];
$english = [ 0 ,  1 ,  2 ,  3 ,  4 ,  5 ,  6 ,  7 ,  8 ,  9 ];
$today = str_replace($persian,$english , $jDate::forge(time())->format('d'));
?>




<style>
    .bg-task0 {
        background: #ff6a00 !important;
    }
    .bg-task1 {
        background: #a2010c !important;
    }
    .bg-task2 {
        background: #a2010c !important;
    }
    .bg-task3 {
        background: #626262 !important;
    }
    .bg-task4 {
        background: #626262 !important;
    }
    .bg-task100 {
        background: #05875c !important;
    }
</style>


<?php $__env->startSection('content'); ?>

    <div class="page-content">
        <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>
        <div class="row">

            <?php $__currentLoopData = $tasks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $task): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-lg-4">
                    <div class="card bg-task<?php echo e($task->status); ?> text-white-50 class<?php echo e($task->status); ?>">
                        <div class="card-body">
                            <h5 class="mt-0 mb-4 text-white"><i class="mdi mdi-bullseye-arrow mr-3"></i><?php echo e($task->title); ?> </h5>




                            <button type="button" class="btn btn-dark w-lg waves-effect waves-light" data-toggle="modal" data-target="#exampleModalScrollable<?php echo e($task->id); ?>">اطلاعات</button>



                            <div class="modal fade" id="exampleModalScrollable<?php echo e($task->id); ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalScrollableTitle" aria-hidden="true">
                                <div class="modal-dialog modal-dialog-scrollable">
                                    <div class="modal-content">
                                        <form method="post" action="https://admin.borjeweb.com/editNote/<?php echo e($task->id); ?>" id="taskStatus">
                                            <?php echo csrf_field(); ?>
                                        <div class="modal-header">
                                            <h5 class="modal-title mt-0" id="exampleModalScrollableTitle"><input name="title" value="<?php echo e($task->title); ?>"style="border: none"></h5>

                                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                                <span aria-hidden="true">×</span>
                                            </button>
                                        </div>
                                        <div class="modal-body text-dark">
                                            <span class="text-success">
                                                تاریخ :
                                                <input name="d1" value="<?php echo e($jDate::forge($task->d1)->format('Y/m/d')); ?>"style="border: none">
                                            </span>
                                            <hr>
                                            <textarea name="task"><?php echo $task->task; ?></textarea>


                                        </div>
                                        <div class="modal-footer">



                                                <select class="form-control" id="pet-select" name="status"  onclick="">
                                                    <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>
                                                <input type="submit">

                                        </div>
                                    </form>
                                    </div>
                                    <!-- /.modal-content -->
                                </div>
                                <!-- /.modal-dialog -->
                            </div>


                        </div>

                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>





        </div>
    </div>
<?php $__env->stopSection(); ?>
<button type="button" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-target=".bs-example-modal-center">مودال وسط</button>

<?php echo $__env->make('index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/adminborjeweb/adminborjeweb/resources/views/content/note/index.blade.php ENDPATH**/ ?>