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

    <div class="row mb-4">
        <div class="mt-lg-0 ">
            <div class="card " id="basic-info">
                <div class="card-header">
                    <div class="float-end">
                        <a href="/projects" type="button" class="btn btn-sm btn-info">
                            <?php echo e(__('Product Plans')); ?>

                        </a>
                        <a href="/create-project?id=<?php echo e($project->id); ?>" type="button"
                           class="btn btn-sm bg-gradient-secondary"><?php echo e(__('Edit')); ?></a>
                    </div>
                    <span>
                        <h5 class="">
                            <?php echo e($project->title); ?>

                        </h5><span
                            class="badge bg-purple-light  font-weight-bold"><?php echo e($project->status); ?></span></span>
                </div>
                <div class=" ms-4">
                    <div class="pt-0">
                        <div class="row">
                            <div class="col-md-2">
                                <span>
                                    <div class="ms-auto">
                            <span class="badge badge-sm bg-gradient-faded-light text-dark fw-bolder mb-1">

                                <?php if(!empty($project->start_date)): ?>
                                    <?php echo e((\App\Supports\DateSupport::parse($project->start_date))->format(config('app.date_format'))); ?>


                                <?php endif; ?>
                            </span>
                                        <p class="text-sm fw-bolder text-black-50"><?php echo e(__('Start date')); ?></p>
                        </div>
                                </span>
                            </div>
                            <div class="col-md-2">

                                <span>

                                    <div class="ms-auto">
                            <span class="badge badge-sm bg-gradient-faded-light text-dark fw-bolder mb-1">

                              <?php if(!empty($project->end_date)): ?>
                                    <?php echo e((\App\Supports\DateSupport::parse($project->end_date))->format(config('app.date_format'))); ?>


                                <?php endif; ?>
                            </span>
                                                <p class="text-sm fw-bolder text-black-50"><?php echo e(__('Due date')); ?></p>
                        </div>
                                </span>
                            </div>

                            <div class="col-md-6">
                                <div class="d-flex">

                                    <?php if($project->members): ?>
                                        <?php $__currentLoopData = json_decode($project->members); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $member): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if(isset($users[$member])): ?>

                                                <div class="col-md-2 text-center">
                                                    <?php if(!empty($users[$member]->photo)): ?>
                                                        <a href="javascript:"
                                                           class="avatar avatar-md rounded-circle border border-secondary">
                                                            <img alt="" class="p-1"
                                                                 src="<?php echo e(PUBLIC_DIR); ?>/uploads/<?php echo e($users[$member]->photo); ?>">
                                                        </a>
                                                    <?php else: ?>
                                                        <div
                                                            class="avatar avatar-md rounded-circle bg-purple-light  border-radius-md p-2">
                                                            <h6 class="text-purple mt-1"><?php echo e($users[$member]->first_name[0]); ?><?php echo e($users[$member]->last_name[0]); ?>

                                                            </h6>
                                                        </div>
                                                    <?php endif; ?>
                                                    <p class="mb-0 text-sm"><?php echo e($users[$member]->first_name); ?></p>
                                                </div>
                                            <?php endif; ?>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php endif; ?>
                                    <div class="col-md-2 text-center">
                                        <a href="/create-project?id=<?php echo e($project->id); ?>"
                                           class="avatar avatar-md border-1 rounded-circle bg-gradient-light">
                                            <i class="fas fa-plus text-white"></i>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="card">
                    <div class="card-body">
                        <a class="btn btn-success btn-sm" data-bs-toggle="" href="/view-project?id=<?php echo e($project->id); ?>"
                           role="button" aria-selected="true">
                            <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"
                                 fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                                 stroke-linejoin="round" class="feather feather-file-text">
                                <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
                                <polyline points="14 2 14 8 20 8"></polyline>
                                <line x1="16" y1="13" x2="8" y2="13"></line>
                                <line x1="16" y1="17" x2="8" y2="17"></line>
                                <polyline points="10 9 9 9 8 9"></polyline>
                            </svg>
                            <span class="ms-1"><?php echo e(__('Overview')); ?></span>
                        </a>
                        <a class="btn btn-sm btn-info " data-bs-toggle=""
                           href="/view-project-discussion?id=<?php echo e($project->id); ?>" role="button" aria-selected="false">    <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"
                                 fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                                 stroke-linejoin="round" class="feather feather-message-square">
                                <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
                            </svg>
                            <span class="ms-1"><?php echo e(__('Discussions')); ?></span>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row mb-5">
        <div class="mt-lg-0 ">
            <div class="card">
                <div class="card-body">
                    <h6 class="fw-bolder"><?php echo e(__('Summary')); ?></h6>
                    <div class="d-flex bg-gray-100 border-radius-lg p-3 mb-4">
                        <p class="my-auto">
                            <span class="text-secondary text-sm me-1"></span><?php echo e($project->summary); ?><span
                                class="text-secondary text-sm ms-1"></span>
                        </p>
                    </div>
                    <h6 class="mt-4 fw-bolder"><?php echo e(__('Description')); ?></h6>
                    <div class="mt-4 text-sm mb-0"><?php echo $project->description; ?></div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.primary', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/sadia/Documents/valet/startup-kit/resources/views/projects/view-project.blade.php ENDPATH**/ ?>