
<?php $__env->startSection('title', 'Manage Airline Company'); ?>
<?php $__env->startSection('content'); ?>
<div class="page-inner mt-5 pt-5">
    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-header project-details-card-header py-2 d-flex align-items-center justify-content-between">
                    <div>
                        <h4 class="project-details-card-header-title mb-0">Airline Company List</h4>
                    </div>
                    <div>
                        <a href="<?php echo e(route('airline.company.create')); ?>" class="btn btn-primary btn-sm" title="Add">
                            <span class="btn-label">
                                <i class='bx bx-plus'></i>
                            </span>
                            Add Airline Company
                        </a>
                        <button class="btn btn-black btn-sm" title="Go Back" onclick="history.back();">
                            <span class="btn-label">
                                <i class="fas fa-reply"></i>
                            </span>
                            Go Back
                        </button>
                    </div>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <div id="add-row_wrapper" class="dataTables_wrapper container-fluid dt-bootstrap4">
                            <div class="row">
                                <div class="col-sm-12">
                                    <table id="add-row" class="display table table-striped table-hover basic-datatables" role="grid" aria-describedby="add-row_info">
                                        <thead>
                                        <tr>
                                            <th>Sl</th>
                                            <th>Airline Company Name</th>
                                            <th>Logo</th>
                                            <th class="text-end">Action</th>
                                        </tr>
                                        </thead>

                                        <tbody>
                                            <?php $__empty_1 = true; $__currentLoopData = $airlineCompanies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                            <tr>
                                                <td><?php echo e($index + 1); ?></td>

                                                <td>
                                                    <?php echo e($company->name); ?>

                                                </td>

                                                <td><img src="<?php echo e(asset($company->logo)); ?>" alt="Logo" style="max-width: 100px;"></td>

                                                <td>
                                                    <div class="btn-list d-flex justify-content-center gap-1">
                                                        <a href="<?php echo e(route('airline.company.edit', $company->id)); ?>" class="btn btn-primary btn-sm" title="Edit">
                                                            <i class="far fa-edit"></i>
                                                        </a>

                                                        <form action="<?php echo e(route('airline.company.delete', $company->id)); ?>" method="POST">
                                                            <?php echo csrf_field(); ?>
                                                            <?php echo method_field('delete'); ?>
                                                            <button type="submit" class="btn btn-danger btn-sm delete_sweet_alert" title="Delete">
                                                                <i class="far fa-trash-alt"></i>
                                                            </button>
                                                        </form>
                                                    </div>
                                                </td>
                                            </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                            <tr>
                                                <td colspan="7" class="text-center text-muted">
                                                    No records found
                                                </td>
                                            </tr>
                                            <?php endif; ?>
                                        </tbody>

                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\xampp\htdocs\view-trip-update2\resources\views/backend/airline-company/index.blade.php ENDPATH**/ ?>