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


    <div class="page-header mb-4 border-radius-xl" style="background-image: url('/plan.jpg');">
        <span class="mask bg-gradient-dark"></span>
        <div class="container">
            <div class="row">
                <div class="col-lg-6 my-auto">

                    <h5 class="text-white fadeIn2 fadeInBottom mt-4">“A dream without a plan is just a wish.”
                    </h5>
                    <p class="lead text-white opacity-8 fadeIn3 fadeInBottom"> — Katherine Paterson</p>
                    <p class="text-white">Do Something Today That your Future Self will Thank you for. Our Actions and Decisions Today will shape the way we will be living in the future.</p>

                </div>
            </div>

            <a href="/goal-plans" type="button" class="btn bg-gradient-light">Plans for your goals</a>

        </div>
    </div>

    <div class="row">
        <div class="col-md-12 mt-4">
            <div class="card">
                <div class="card-header pb-0 px-3">
                    <h6 class="mb-0">Your Plans</h6>
                </div>
                <div class="card-body pt-4 p-3">
                    <ul class="list-group">

                        <?php $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                            <li class="list-group-item border-0 d-flex p-4 mb-2 mt-3 bg-gray-100 border-radius-lg">
                                <div class="d-flex flex-column">
                                    <h6 class="mb-3 "><?php echo e($plan->title); ?></h6>

                                    <span class="mb-2 "><h6>Goal Name:  <?php if(isset($goals[$plan->goal_id])): ?>
                                                <?php echo e($goals[$plan->goal_id]->name); ?>

                                            <?php endif; ?></h6>



                                         <span class="text-dark font-weight-bold ms-sm-2"></span></span>

                                    <span class="text-xs">Date: <span class="text-dark ms-sm-2 font-weight-bold"><?php echo e($plan->date); ?></span></span>
                                </div>
                                <div class="ms-auto text-end">

                                    <a class="btn btn-link text-danger text-gradient px-3 mb-0" href="/delete/goal-plan/<?php echo e($plan->id); ?>"><i class="far fa-trash-alt me-2"></i>Delete</a>
                                    <a class="btn btn-link text-dark px-3 mb-0" href="/goal-plans?id=<?php echo e($plan->id); ?>"><i class="fas fa-pencil-alt text-dark me-2" aria-hidden="true"></i>Edit</a>
                                </div>
                            </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>




                    </ul>
                </div>
            </div>
        </div>

    </div>


<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.marketing_crm', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/sadia/Documents/valet/marketing-crm/resources/views/plans/plans.blade.php ENDPATH**/ ?>