<style>
    .bg-primary {
        background-color: #ffc20a !important;
    }
    .bg-header {
        background-color: #b53e27 !important;
    }
    .text-justify {
        text-align: justify;
    }
</style>
<!-- Header End -->
<div class="container-fluid py-5 bg-dark page-header mb-5">
    <div class="container my-5 pt-5 pb-4">
        <h1 class="display-3 text-white mb-3 animated slideInDown">Course Details</h1>
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb text-uppercase">
                <li class="breadcrumb-item"><a href="<?php echo $this->Url->build(["controller" => "Learninghub","action" => "index"]);?>">Home</a></li>
                <li class="breadcrumb-item text-white active" aria-current="page">Course Details</li>
            </ol>
        </nav>
    </div>
</div>
<!-- Header End -->


<!-- Application Process Start -->
<div class="container-xxl py-3">
    <div class="row">

        <div class="col-lg-8 col-md-8 col-sm-12">
                <h3><?= h($course->name) ?></h3>
                <p class="card bg-header text-white fw-bold col-5">Qualification number (RQF): <?= h($course->code) ?></p>
                <div class="row  ">
                    <div class="d-flex align-items-start">
                        <div class="col-12 col-sm-12 col-md-12">
                            <div class="nav nav-pills" id="pills-tab" role="tablist">
                                <button class="nav-link active" id="pills-overview-tab" data-bs-toggle="pill" data-bs-target="#v-pills-overview" type="button" role="tab" aria-controls="v-pills-overview" aria-selected="true">
                                    Overview
                                </button>
                                <button class="nav-link" id="pills-structure-tab" data-bs-toggle="pill" data-bs-target="#v-pills-course-structure" type="button" role="tab" aria-controls="v-pills-course-structure" aria-selected="false">
                                    Course Structure
                                </button>
                                <button class="nav-link" id="pills-requirements-tab" data-bs-toggle="pill" data-bs-target="#v-pills-requirements" type="button" role="tab" aria-controls="v-pills-requirements" aria-selected="false">
                                    Entry Requirements
                                </button>
                                <button class="nav-link" id="pills-fees-tab" data-bs-toggle="pill" data-bs-target="#v-pills-fees-payments" type="button" role="tab" aria-controls="v-pills-fees-payments" aria-selected="false">
                                    Fees and Payments
                                </button>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="row ">
                    <div class="col-12 col-sm-12 col-md-12">

                        <div class="tab-content" id="v-pills-tabContent">

                            <div class="tab-pane fade show active" id="v-pills-overview" role="tabpanel" aria-labelledby="v-pills-overview-tab">

                                <div class="d-flex align-items-center mb-2">
                                    <i class="fa fa-2x fa-tasks text-primary mb-4"></i>
                                    <div class="text-start ps-4">
                                        <h3 class="mb-3">Overview</h3>
                                    </div>
                                </div>

                                <div class="mb-5">
                                    <p class="mb-3 text-justify">The <b> <?=  h($course->name) ?> </b> is designed to equip learners with the advanced knowledge, skills, and competencies needed to succeed in senior management roles across a wide range of industries. Equivalent to the final year of a bachelor's degree, this diploma provides a broad understanding of business principles, strategic planning, financial management, marketing, human resource management, and leadership.

                                        Whether you’re aiming for executive-level positions, seeking to sharpen your decision-making and leadership skills, or preparing for postgraduate study, this qualification offers a powerful platform. By the end of the program, learners will have the expertise and confidence to drive business success, lead teams effectively, and navigate complex organizational challenges.</p>


                                </div>

                            </div>

                            <div class="tab-pane fade" id="v-pills-course-structure" role="tabpanel" aria-labelledby="v-pills-course-structure-tab">
                                <div class="d-flex align-items-center mb-2">
                                    <i class="fa fa-2x fa-tasks text-primary mb-4"></i>
                                    <div class="text-start ps-4">
                                        <h3 class="mb-3">Course Structure</h3>
                                    </div>
                                </div>
                               <h6 class="mb-3">To achieve the <?php echo $course->name?>, learners must complete a total of <?php echo count($course_subjects)?> units total of <?php echo $course->total_credit?> credits.</h6>

                                <div class="mb-5">

                                    <div class="view-section">
                                        <table class="table table-bordered">
                                            <thead>
                                            <tr>
                                                <th>Title</th>
                                                <th>Credit</th>
                                                <th>Mandatory/Optional</th>
                                            </tr>
                                            </thead>
                                            <tbody>

                                            <?php if (!empty($course_subjects)) : ?>
                                                <?php foreach ($course_subjects as $subject) : ?>
                                                    <tr>
                                                        <td><?= h($subject->title) ?></td>
                                                        <td><?= h($subject->credit) ?></td>
                                                        <td><?= ($subject->is_mandatory == 1) ? 'Mandatory' : 'Optional' ?></td>
                                                    </tr>
                                                <?php endforeach; ?>
                                            <?php else : ?>
                                                <tr>
                                                    <td colspan="3" class="text-center"><?= __('No subjects added.') ?></td>
                                                </tr>
                                            <?php endif; ?>
                                            </tbody>
                                        </table>
                                    </div>

                                </div>

                                <div class="info-box">
                                    <h3 class="info-box-title">No Exams – <?php echo $course->assessment ?> Assessment</h3>
                                    <p class="info-box-content">Learners are assessed through written assignments that apply real-world business concepts and problem-solving strategies. Feedback is provided to support continuous improvement.</p>
                                </div>
                                <div class="info-box">
                                    <h3 class="info-box-title">What's Included</h3>
                                    <p class="info-box-content">You'll get 24/7 access to our online learning portal, comprehensive study materials with interactive modules and written assignments, and expert tutor support to guide you through your coursework. We also provide assignment briefings, detailed feedback to help you improve, and dedicated customer support via chat, phone, and email.</p>
                                </div>
                                <div class="career-section">
                                    <h3 class="section-title">Career Opportunities</h3>
                                    <p class="section-description">The <?php echo $course->name ?> is a high-level qualification that signifies expertise in strategic thinking, operational leadership, and organisational development. It opens multiple pathways for career advancement across various sectors. </p>

                                    <ul class="career-list">
                                        <li><strong>1. Senior Management Roles: </strong> – Graduates are well-positioned for senior leadership positions such as Senior Manager, Director, or Head of Department, where they can drive strategic initiatives and lead high-performing teams.</li>
                                        <li><strong>2. Strategic Planning and Analysis: </strong> – Learners can pursue roles as Strategic Planners or Business Analysts, contributing to long-term organisational planning, conducting market and data analysis, and recommending strategic initiatives. </li>
                                        <li><strong>3. Project Management: </strong> – The diploma equips individuals to manage complex organisational projects, making them suitable for roles such as Project Manager or Programme Lead, overseeing strategic project execution aligned with business goals. </li>
                                        <li><strong>4. Business Consultancy: </strong> – Graduates may work as Business Consultants, offering advisory services to enhance business performance, competitiveness, and efficiency through strategic insight and operational guidance. </li>
                                        <li><strong>5. Leadership Development and Training: </strong> – Learners may pursue opportunities in Leadership Development, designing and delivering training programs for managers and executives to strengthen organisational leadership capacity. <br>

                                            This qualification also supports further academic progression, such as advanced entry into MBA programs, providing a platform for lifelong learning and continued professional growth. </li>
                                    </ul>
                                </div>
                                <div class="further-education">
                                    <h3 class="section-title">Further Education</h3>
                                    <p class="section-description">Learners who successfully complete the diploma are eligible to progress to an MBA Top-up programme with advanced standing, allowing them to earn a full MBA degree in a shorter time frame through partner universities. <br>This qualification provides both the practical and academic credentials needed to excel in strategic leadership roles or pursue further study at the postgraduate level.</p>
                                    <div class="university-progression">
                                        <h3 class="section-title">University Progression:</h3>
                                        <p class="info-box-content">London School Of Learning hub learners are eligible to progress to leading universities in the UK.</p>
                                    </div>
                                </div>

                            </div>

                            <div class="tab-pane fade" id="v-pills-requirements" role="tabpanel" aria-labelledby="v-pills-requirements-tab">

                                <div class="d-flex align-items-center mb-2">
                                    <i class="fa fa-2x fa-tasks text-primary mb-4"></i>
                                    <div class="text-start ps-4">
                                        <h3 class="mb-3">Entry Requirements</h3>
                                    </div>
                                </div>


                                    <div class="card">
                                        <div class="card-header fw-bold" >
                                            <i class="fa fa-graduation-cap"></i> Qualification Requirements
                                        </div>
                                        <div class="card-body">
                                            <p class="requirement-intro">Applicant should have the relevant educational qualification or professional experience to qualify for this course.</p>

                                            <div class="requirement-option">
                                                <div class="option-header">
                                                    <span class="fw-bold">1. Educational Qualification</span>
                                                </div>
                                                <div class="option-content">
                                                    Applicants should have successfully completed a Level <?php echo ($course->level>0 ? ($course->level-1): '')?> qualification (e.g., Level <?php echo ($course->level>0 ? ($course->level-1): '')?> Diploma, Certificate, Higher National Diploma, Foundation Degree) or hold an equivalent credential such as a Master's degree or higher.
                                                </div>
                                            </div>

                                            <div class="or-divider">OR</div>

                                            <div class="requirement-option">
                                                <div class="option-header">
                                                    <span class="fw-bold">2. Professional Experience</span>
                                                </div>
                                                <div class="option-content">
                                                    Candidates with over 5 years of professional experience in their respective industry are encouraged to apply, as their practical knowledge is highly valued.
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="card">
                                        <div class="card-header fw-bold">
                                            <i class="fa fa-user"></i> Age Requirement
                                        </div>
                                        <div  class="card-body">
                                            Applicants must be 21 years or older. This program is designed to support both recent graduates and experienced professionals in advancing their careers.
                                        </div>
                                    </div>


                            </div>

                            <div class="tab-pane fade" id="v-pills-fees-payments" role="tabpanel" aria-labelledby="v-pills-fees-payments-tab">

                                <div class="d-flex align-items-center mb-2">
                                    <i class="fa fa-2x fa-tasks text-primary mb-4"></i>
                                    <div class="text-start ps-4">
                                        <h3 class="mb-3">Fees and Payments</h3>
                                    </div>
                                </div>
                                    <div class="row rounded bg-white">
                                        <div class="col-6">
                                                <div class="card shadow-sm mb-4">
                                                    <div class="card-header text-primary text-white fw-bold">
                                                        <i class="fa fa-laptop"></i> Online Learning
                                                    </div>
                                                    <div class="card-body p-3">

                                                        <p><i class="fa fa-check-circle text-primary me-3"></i>Full Payment Option</p>
                                                        <ul class="list-group list-group-flush">
                                                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                                                <span> Full Fee</span>
                                                                <span class="fw-semibold text-end"><?= h($course_fee->online_fee ?? '') ?></span>
                                                            </li>
                                                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                                                <span> Discounted Fee</span>
                                                                <span class="fw-semibold text-end"><?= h($course_fee->discounted ?? '') ?></span>
                                                            </li>

                                                        </ul>

                                                        <p><i class="fa fa-check-circle text-primary me-3"></i>Instalment Plan Option</p>
                                                        <ul class="list-group list-group-flush">
                                                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                                                <span> Upfront Deposit</span>
                                                                <span class="fw-semibold text-end"><?= h($course_fee->upfront_deposit ?? '') ?></span>
                                                            </li>
                                                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                                                <span> Monthly Installments</span>
                                                                <span class="fw-semibold text-end"><?= h($course_fee->monthly_installments_amount ?? '') ?></span>
                                                            </li>

                                                        </ul>
                                                    </div>

                                                </div>
                                        </div>
                                        <div class="col-6">
                                                <div class="card shadow-sm mb-4">
                                                    <div class="card-header text-primary text-white fw-bold">
                                                        <i class="fa fa-users"></i> Blended Learning
                                                    </div>
                                                    <div class="card-body p-3">
                                                        <p><i class="fa fa-check-circle text-primary me-3"></i> Includes 3 to 5 in-person classes</p>
                                                        <p><i class="fa fa-check-circle text-primary me-3"></i> Payment to be made in full</p>
                                                        <ul class="list-group list-group-flush">
                                                            <li class="list-group-item d-flex justify-content-between align-items-center">

                                                                <span class="text-justify">Fee: <?= h(' £ '. $course_fee->blended_fee ?? '') ?> </span>
                                                            </li>

                                                        </ul>
                                                    </div>

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


                                <div class="card">
                                    <div class="card-header fw-bold">
                                        <i class="fa fa-certificate text-primary me-3"></i> Certificate Fee
                                    </div>
                                    <div class="card-body">
                                        After completing the course, students can request their certificate for a fee of <strong>£<?= h(  $course_fee->certificate_fee ?? '') ?></strong> only.
                                    </div>
                                </div>

                                <div class="card">
                                    <div class="card-header fw-bold">
                                        <i class="fa fa-credit-card text-primary me-3"></i> Mode of Payment
                                    </div>
                                    <div class="card-body">
                                        Upon receiving the confirmation of acceptance, student may pay online or via bank deposit into our account.
                                    </div>
                                </div>


                               </div>

                        </div>

                    </div>
                </div>
        </div>
        <div class="col-lg-4 col-md-4 col-sm-12">
            <div class="row">
                <div class="cat-item rounded p-4 h-100 shadow-sm bg-white">

                    <img src="<?php echo $this->request->webroot.'media/course/default.jpg'?>" alt="<?= h($course->name) ?>" class="img-fluid w-100 mb-3 rounded">
                    <div class="card shadow-sm mb-4">
                        <div class="card-header bg-primary text-white fw-bold">
                            <i class="fa fa-cogs me-2"></i> Course Features
                        </div>
                        <div class="card-body p-3">
                            <ul class="list-group list-group-flush">
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <span><i class="fa fa-graduation-cap me-2 text-secondary"></i>Level</span>
                                    <span class="fw-semibold text-end"><?= h($course->level ?? '') ?> (Undergraduate Diploma)</span>
                                </li>
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <span><i class="fa fa-calendar me-2 text-secondary"></i>Duration</span>
                                    <span class="fw-semibold text-end"><?= h($course->duration ?? '') ?> Months</span>
                                </li>
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <span><i class="fa fa-laptop me-2 text-secondary"></i>Delivery</span>
                                    <span class="fw-semibold text-end"><?= h($course->delivery_mode==3 ? 'Online / Blended' : DELIVERY_MODE[$course->delivery_mode]) ?></span>
                                </li>
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <span><i class="fa fa-file-text me-2 text-secondary"></i>Assessment</span>
                                    <span class="fw-semibold text-end"><?= h($course->assessment ?? '') ?></span>
                                </li>
                            </ul>
                        </div>

                        <div class="card-header bg-primary text-white fw-bold text-center">
                             Course Fee £<?= h($course_fee->online_fee) ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>


