/home/hdwebsolution/www/sareenn/application/views/admin/event.php
    <!-- Content Wrapper. Contains page content -->

    <div class="content-wrapper">

      <!-- Content Header (Page header) -->

      <section class="content-header">

        <div class="container-fluid">

          <div class="row mb-2">

            <div class="col-sm-6">

              <h1>View Event</h1>

            </div>

            <div class="col-sm-6">

              <ol class="breadcrumb float-sm-right">

                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>admin">Home</a></li>

                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>admin/events">Events</a></li>

                <li class="breadcrumb-item active">View Event</li>

              </ol>

            </div>

          </div>

        </div><!-- /.container-fluid -->

      </section>

      <!-- Main content -->

      <section class="content">

        <!-- Default box -->

        <div class="card">

          <div class="card-header">

            <h3 class="card-title"><?php echo $event->event; ?></h3>
            <div class="card-tools">
                        <a href="<?php echo base_url(); ?>admin/events" class="btn btn-sm btn-warning"><i class="fas fa-long-arrow-alt-left"></i> All Events</a>
                        <a href="<?php echo base_url(); ?>admin/event/edit/<?php echo $event->id;?>" class="btn btn-sm btn-success"><i class="fas fa-pencil-alt"></i> Edit Event</a>
                    </div>
          </div>

          <div class="card-body">
            <div class="row">
              <div class="col-md-6">
                <p><strong>Event Organizer: </strong><a href="<?php echo base_url();?>admin/user/<?php echo $event->user_id; ?>"><?php echo $event->username; ?></a></p>
                <p><strong>Event Date: </strong><?php echo $event->start_date; ?> to <?php echo $event->end_date; ?></p>
                <p><strong>Event Time: </strong><?php echo $event->start_time; ?> to <?php echo $event->end_time; ?></p>
                <p><strong>Event Location: </strong><?php echo $event->location; ?></p>
                <p><strong>Event City: </strong><?php echo $event->city; ?></p>
                <p><strong>Event State: </strong><?php echo $event->state; ?></p>
                <p><strong>Event Country: </strong><?php echo $event->country; ?></p>
                <p><strong>Free Event: </strong><?php echo ($event->is_free == 1) ? "Yes": "No"; ?></p>
                <p><strong>Paid Event: </strong><?php echo ($event->is_paid == 1) ? "Yes": "No"; ?></p>
                <p><strong>Private Event: </strong><?php echo ($event->is_private == 1) ? "Yes": "No"; ?></p>
                <p><strong>Event Published: </strong><?php echo ($event->is_published == 1) ? "Yes": "No"; ?></p>
                <p><strong>Event Active: </strong><?php echo ($event->is_active == 1) ? "Yes": "No"; ?></p>
                <p><strong>Event Paidlink: </strong><?php echo $event->paidlink; ?></p>
              </div>
              <div class="col-md-6">
                <p><strong>Event Image: </strong></p>
                <img class="img-fluid" src="/assets/img/event/<?php echo $event->thumbnail; ?>">
              </div>
            </div>
            <hr>
            <div class="row">
              <div class="col-md-12">
                <p><strong>Event Ticket Details: </strong></p>
                <?php if ($event_tickets) { ?>
                  <div class="table-responsive">
                    <table class="table mce_table">
                      <tr>
                        <th>Ticket Type</th>
                        <th>Ticket Price</th>
                        <th>Seat Quantity</th>
                        <th>Available Seats</th>
                      </tr>
                      <?php foreach ($event_tickets as $ticket) {
                      ?>
                        <tr>
                          <td class=""><?php echo $ticket['title']; ?></td>
                          <td class=""><?php echo $event->currency_symbol . $ticket['amount'] . " " . $event->currency_code; ?></td>
                          <td class=""><?php echo $ticket['seats'] - $ticket['sold']; ?></td>
                          <td class=""><?php echo $ticket['seats'] - $ticket['sold']; ?> Available</td>
                        </tr>
                      <?php
                      } ?>
                    </table>
                  </div>
                <?php } ?>

              </div>
            </div>
            <hr>
            <div class="row">
              <div class="col-md-12">
                <p><strong>Event Description: </strong><?php echo $event->description; ?></p>
              </div>
            </div>

          </div>

          <!-- /.card-body -->

        </div>
        <!-- /.card -->

      </section>

      <!-- /.content -->

    </div>

    <!-- /.content-wrapper -->