<?php $__env->startSection('title', 'خدمات الراكب الإضافية'); ?>
<?php $__env->startSection('page-title', 'خدمات الراكب الإضافية'); ?>
<?php $__env->startSection('page-icon', 'fas fa-concierge-bell'); ?>

<?php $__env->startSection('content'); ?>
<div class="card">
    <div class="card-header d-flex justify-content-between align-items-center">
        <span>الخدمات المعروضة في تطبيق الراكب (شاشة الخدمات)</span>
        <a href="<?php echo e(route('admin.passenger-extra-services.create')); ?>" class="btn btn-primary btn-sm">
            <i class="fas fa-plus"></i> إضافة خدمة
        </a>
    </div>
    <div class="card-body">
        <?php if(session('success')): ?>
            <div class="alert alert-success"><?php echo e(session('success')); ?></div>
        <?php endif; ?>
        <div class="table-responsive">
            <table class="table table-bordered table-striped">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>صورة</th>
                        <th>العنوان</th>
                        <th>سعر تقديري</th>
                        <th>ترتيب</th>
                        <th>نشط</th>
                        <th>إجراءات</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__empty_1 = true; $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr>
                            <td><?php echo e($s->id); ?></td>
                            <td>
                                <?php if($s->image_path): ?>
                                    <img src="<?php echo e($s->imagePublicUrl()); ?>" alt="" style="height:48px;width:48px;object-fit:cover;border-radius:6px;">
                                <?php else: ?>
                                    —
                                <?php endif; ?>
                            </td>
                            <td><?php echo e($s->title); ?></td>
                            <td><?php echo e($s->price_estimate ?? '—'); ?></td>
                            <td><?php echo e($s->sort_order); ?></td>
                            <td><?php echo e($s->is_active ? 'نعم' : 'لا'); ?></td>
                            <td>
                                <a href="<?php echo e(route('admin.passenger-extra-services.edit', $s->id)); ?>" class="btn btn-sm btn-info">تعديل</a>
                                <form action="<?php echo e(route('admin.passenger-extra-services.destroy', $s->id)); ?>" method="POST" class="d-inline" onsubmit="return confirm('حذف الخدمة؟');">
                                    <?php echo csrf_field(); ?>
                                    <?php echo method_field('DELETE'); ?>
                                    <button type="submit" class="btn btn-sm btn-danger">حذف</button>
                                </form>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <tr><td colspan="7">لا توجد خدمات بعد. اضغط «إضافة خدمة».</td></tr>
                    <?php endif; ?>
                </tbody>
            </table>
        </div>
        <?php echo e($services->links()); ?>

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

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