<?php
use App\Classes\jDate;
use App\Classes\jDateTime;
$jDate	= new jDate();
$jDateTime	= new jDateTime();
$domain = explode('/',$_SERVER['REQUEST_URI']);
$Date = date('Y-m-d');




?>


<?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="">فرم ها</a></li>
                            <li class="breadcrumb-item active"><?php echo e(date('Y-m-d', strtotime($Date. " $domain[2] days"))); ?></li>
                            <li class="breadcrumb-item active"><?php echo e($jDate::forge(date('Y-m-d', strtotime($Date. " $domain[2] days")))->format('date')); ?></li>
                        </ol>
                    </div><?php ($Day = $domain[2]); ?><?php ($Day2 = $domain[2]); ?>
                    <button type="button" class="btn btn-danger w-lg waves-effect waves-light" onmousedown="document.getElementById('bottomForm').action = 'https://admin.borjeweb.com/adminCalendarByDey/<?php echo e(++$Day); ?>'" onmouseup="document.getElementById('bottomForm').submit()">
                        next </button>
                    <button type="button" class="btn btn-danger w-lg waves-effect waves-light" onmousedown="document.getElementById('bottomForm').action = 'https://admin.borjeweb.com/adminCalendarByDey/<?php echo e(--$Day2); ?>'" onmouseup="document.getElementById('bottomForm').submit()">
                         back </button>
                </div>
            </div>
        </div>
<form method="post" id="linksInCalendar"><?php echo csrf_field(); ?>
    <div class="row">
        <?php $__currentLoopData = $tasks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $task): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if((date('Y-m-d', strtotime($Date. " $domain[2] days")) >= $task->d1 ) && (date('Y-m-d', strtotime($Date. " $domain[2] days")) <= $task->d3 )): ?>
                <div class="col-lg-4">
                    <div class="card bg-primary text-white-50">
                        <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); ?><label style="color: red; float: left;">task</label></h5>
                            <p class="card-text"><?php echo $task->task; ?></p>

                            <form action="" method="post" id="bottomForm"><?php echo csrf_field(); ?>

                                
                                
                                
                                
                                
                                

                            </form>
                        </div>

                    </div>
                </div>
            <?php endif; ?>

        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php $__currentLoopData = $project_infos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $project_info): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if((date('Y-m-d', strtotime($Date. " $domain[2] days")) >= $project_info->d1 ) && (date('Y-m-d', strtotime($Date. " $domain[2] days")) <= $project_info->d3 )): ?>
                <div class="col-lg-4" onmousedown="document.getElementById('linksInCalendar').action = 'https://admin.borjeweb.com/project_works/<?php echo e($project_info->id); ?>'" onmouseup="document.getElementById('linksInCalendar').submit()" style="cursor: pointer;">
                    <div class="card bg-primary text-white-50">
                        <div class="card-body">
                            <h5 class="mt-0 mb-4 text-white"><i class="mdi mdi-bullseye-arrow mr-3"></i><?php echo e($project_info->title); ?><label style="color: red;float: left;">project</label></h5>
                            <p class="card-text"><?php echo $project_info->body; ?></p>

                            <form action="" method="post" id="bottomForm"><?php echo csrf_field(); ?>

                                
                                
                                
                                
                                
                                

                            </form>
                        </div>

                    </div>
                </div>
            <?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php $__currentLoopData = $notes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $note): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if((date('Y-m-d', strtotime($Date. " $domain[2] days")) == $note->d1 )): ?>
                <div class="col-lg-4">
                    <div class="card bg-primary text-white-50">
                        <div class="card-body">
                            <h5 class="mt-0 mb-4 text-white"><i class="mdi mdi-bullseye-arrow mr-3"></i><?php echo e($note->title); ?><label style="color: red;float: left;">note</label></h5>
                            <p class="card-text"><?php echo $note->task; ?></p>

                            <form action="" method="post" id="bottomForm"><?php echo csrf_field(); ?>

                                
                                
                                
                                
                                
                                

                            </form>
                        </div>

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




    </div>
</form>

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