<!-- Header Start -->
<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">Agents</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">Agents</li>
            </ol>
        </nav>
    </div>
</div>
<!-- Header End -->

<!-- Agencies Start -->


<div class="container-xxl py-5">
    <div class="container">
        <h1 class="text-center mb-5 wow fadeInUp" data-wow-delay="0.1s">Contact with agents for course information</h1>

        <div class="row g-4">
            <div class="col-12">
                    <div class="row gy-4">
                        <?php foreach ($agents as $agent): ?>
                        <div class="col-lg-4 col-md-12 wow fadeIn" data-wow-delay="0.1s">
                            <div class="d-flex align-items-center bg-light rounded p-4">
                                <div class="bg-white border rounded d-flex flex-shrink-0 align-items-center justify-content-center me-3"
                                     style="width: 45px; height: 45px;">
                                    <i class="fa fa-map-marker-alt text-primary"></i>
                                </div>
                                <div class="col">
                                    <b class="text-center"><?php echo $agent->agency_name ?></b>
                                    <div class="col">
                                        <span> <?php echo $agent->first_name . ' ' . $agent->last_name ?> </span>
                                    </div>
                                    <div class="col">
                                        <span> <?php echo $agent->address . '--' . $agent->country_name ?> </span>
                                    </div>
                                    <div class="col">
                                        <span> <?php echo $agent->phone_number ?> </span>
                                    </div>

                                </div>
                            </div>
                        </div>
                        <?php endforeach; ?>
                    </div>
            </div>

        </div>


    </div>
</div>
<!-- Agencies End -->

