



<?php $__env->startSection('content'); ?>
    <?php if(session('success')): ?>
        <div id="successAlert" class="alert alert-success fixed-bottom text-white bg-success shadow-lg rounded p-3"
            style="width: 300px; bottom: 10px; right: 10px; position: fixed; z-index: 1050;">
            <?php echo e(session('success'), false); ?>

        </div>
    <?php endif; ?>

    <?php if(session('error')): ?>
        <div id="errorAlert" class="alert alert-danger fixed-bottom text-white bg-danger shadow-lg rounded p-3"
            style="width: 300px; bottom: 10px; right: 10px; position: fixed; z-index: 1050;">
            <?php echo e(session('error'), false); ?>

        </div>
    <?php endif; ?>


    <div class="container">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-header d-flex justify-content-between align-items-center bg-blue">
                        <h1 class="card-title" style="color:rgb(30, 255, 0);font-size:30px;">Contact section</h1>
                        
                    </div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table table-bordered table-striped">
                                <thead>
                                    <tr>
                                        <th>Sl</th>
                                        <th>banner_title</th>
                                        <th>banner_image</th>
                                        <th>from_title</th>
                                        <th>from_short_title</th>
                                        <th>iframe</th>
                                        <th>Actions</th>

                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($index + 1, false); ?></td>
                                            <td><?php echo e($service->banner_title, false); ?></td>
                                            <td><img src="<?php echo e(asset('img/' . $service->banner_image), false); ?>" width="100"
                                                    alt="Image"></td>
                                            <td><?php echo e($service->from_title, false); ?></td>
                                            <td><?php echo e($service->from_short_title, false); ?></td>
                                            <td><?php echo e(Str::limit($service->iframe, 50), false); ?></td>
                                            <td>
                                                <a href="<?php echo e(route('data.edit', $service->id), false); ?>"
                                                    class="btn btn-warning">Edit</a>
                                                
                                            </td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<script>
    setTimeout(function() {
        document.getElementById('successAlert')?.remove();
        document.getElementById('errorAlert')?.remove();
    }, 5000);
</script>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\laragon\laragon\www\BrandedAdmin\mhmahedi\resources\views/admin/ContactPage/index.blade.php ENDPATH**/ ?>