

<?php $__env->startSection('content'); ?>

<div class="bg-white/10 backdrop-blur-lg border border-white/10 rounded-2xl shadow-2xl p-6">

    <!-- HEADER -->
    <div class="flex justify-between items-center mb-6">
        <h2 class="text-2xl font-bold text-white tracking-wide">
            📡 Devices
        </h2>

        <a href="<?php echo e(url('/devices/create')); ?>"
           class="bg-gradient-to-r from-indigo-500 to-purple-600 hover:scale-105 transition text-white px-5 py-2 rounded-lg shadow-lg">
           + Add Device
        </a>
    </div>

    <!-- TABLE -->
    <div class="overflow-x-auto rounded-xl">

        <table class="w-full text-sm text-left text-gray-300">

            <thead class="bg-white/10 text-gray-200 uppercase text-xs tracking-wider">
                <tr>
                    <th class="px-4 py-3">IMEI</th>
                    <th class="px-4 py-3">SIM</th>
                    <th class="px-4 py-3">Status</th>
                    <th class="px-4 py-3">Battery</th>
                    <th class="px-4 py-3">Signal</th>
                    <th class="px-4 py-3 text-center">Action</th>
                </tr>
            </thead>

            <tbody>

            <?php $__empty_1 = true; $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <tr class="border-b border-white/10 hover:bg-white/5 transition">

                    <td class="px-4 py-3 font-semibold text-white">
                        <?php echo e($row->imei); ?>

                    </td>

                    <td class="px-4 py-3">
                        <?php echo e($row->sim_number); ?>

                    </td>

                    <!-- STATUS BADGE -->
                    <td class="px-4 py-3">
                        <span class="px-2 py-1 rounded text-xs
                            <?php echo e($row->status == 'active' ? 'bg-green-500/20 text-green-300' : 'bg-red-500/20 text-red-300'); ?>">
                            <?php echo e($row->status); ?>

                        </span>
                    </td>

                    <!-- BATTERY -->
                    <td class="px-4 py-3">
                        <div class="w-full bg-white/10 rounded-full h-2">
                            <div class="bg-green-500 h-2 rounded-full"
                                 style="width: <?php echo e($row->battery_level); ?>%">
                            </div>
                        </div>
                        <span class="text-xs text-gray-400"><?php echo e($row->battery_level); ?>%</span>
                    </td>

                    <!-- SIGNAL -->
                    <td class="px-4 py-3">
                        <div class="w-full bg-white/10 rounded-full h-2">
                            <div class="bg-blue-500 h-2 rounded-full"
                                 style="width: <?php echo e($row->signal_strength); ?>%">
                            </div>
                        </div>
                        <span class="text-xs text-gray-400"><?php echo e($row->signal_strength); ?>%</span>
                    </td>

                    <!-- ACTION -->
                    <td class="px-4 py-3 text-center">

                        <a href="<?php echo e(url('/devices/'.$row->id.'/edit')); ?>"
                           class="px-3 py-1 bg-blue-600 hover:bg-blue-700 text-white rounded-lg text-xs shadow">
                           Edit
                        </a>

                    </td>

                </tr>

            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <tr>
                    <td colspan="6" class="text-center py-6 text-gray-400">
                        No devices found
                    </td>
                </tr>
            <?php endif; ?>

            </tbody>

        </table>

    </div>

</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home2/jitrealx/public_html/amccms/resources/views/devices/index.blade.php ENDPATH**/ ?>