<?php $__env->startSection('title'); ?>
    Dashboard - <?php echo e($siteSettings->site_name); ?>

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

<?php $__env->startSection('content'); ?>
    <!-- Breadcrumb -->
    <div class="bg-white shadow-sm border-b border-gray-200 px-6 py-4">
        <div class="flex items-center text-sm text-gray-600">
            <i class="fas fa-home mr-2"></i>
            <span>/ Dashboard</span>
        </div>
    </div>

    <!-- Dashboard Content -->
    <div class="p-6">
        <!-- Metric Cards Grid -->
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-6 mb-6">
            <!-- Total Rooms -->
            <?php if(auth()->check() && auth()->user()->hasPermissionTo('view-rooms')): ?>
            <div class="bg-white rounded-lg shadow-md p-6 border-l-4 border-blue-500">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-2xl font-bold text-gray-800"><?php echo e($totalRooms); ?></p>
                        <p class="text-sm text-gray-600 uppercase font-medium">Total Rooms</p>
                    </div>
                    <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center">
                        <i class="fas fa-bed text-blue-600 text-xl"></i>
                    </div>
                </div>
            </div>
            <?php endif; ?>

            <!-- Reservations -->
            <?php if(auth()->check() && auth()->user()->hasPermissionTo('view-bookings')): ?>
            <div class="bg-white rounded-lg shadow-md p-6 border-l-4 border-orange-500">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-2xl font-bold text-gray-800"><?php echo e($totalReservations); ?></p>
                        <p class="text-sm text-gray-600 uppercase font-medium">Total Bookings</p>
                    </div>
                    <div class="w-12 h-12 bg-orange-100 rounded-lg flex items-center justify-center">
                        <i class="fas fa-flag text-orange-600 text-xl"></i>
                    </div>
                </div>
            </div>
            <?php endif; ?>

            <!-- Staffs -->
            <?php if(auth()->check() && auth()->user()->hasPermissionTo('view-staff')): ?>
            <div class="bg-white rounded-lg shadow-md p-6 border-l-4 border-teal-500">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-2xl font-bold text-gray-800"><?php echo e($totalStaff); ?></p>
                        <p class="text-sm text-gray-600 uppercase font-medium">Staffs</p>
                    </div>
                    <div class="w-12 h-12 bg-teal-100 rounded-lg flex items-center justify-center">
                        <i class="fas fa-users text-teal-600 text-xl"></i>
                    </div>
                </div>
            </div>
            <?php endif; ?>

            <!-- Complaints -->
            <?php if(auth()->check() && auth()->user()->hasPermissionTo('view-complaints')): ?>
            <div class="bg-white rounded-lg shadow-md p-6 border-l-4 border-red-500">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-2xl font-bold text-gray-800"><?php echo e($totalComplaints); ?></p>
                        <p class="text-sm text-gray-600 uppercase font-medium">Maintenance</p>
                    </div>
                    <div class="w-12 h-12 bg-red-100 rounded-lg flex items-center justify-center">
                        <i class="fas fa-comment text-red-600 text-xl"></i>
                    </div>
                </div>
            </div>
            <?php endif; ?>

            <!-- Available Rooms -->
            <?php if(auth()->check() && auth()->user()->hasPermissionTo('view-rooms')): ?>
            <div class="bg-white rounded-lg shadow-md p-6 border-l-4 border-green-500">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-2xl font-bold text-gray-800"><?php echo e($availableRooms); ?></p>
                        <p class="text-sm text-gray-600 uppercase font-medium">Available Rooms</p>
                    </div>
                    <div class="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center">
                        <i class="fas fa-check text-green-600 text-xl"></i>
                    </div>
                </div>
            </div>
            <?php endif; ?>

            

            
        </div>

        <!-- Third Row - Larger Cards -->
        <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
            <!-- Total Earnings -->
            <?php if(auth()->check() && auth()->user()->hasPermissionTo('view-bookings')): ?>
            <div class="bg-white rounded-lg shadow-md p-6 border-l-4 border-red-500">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-3xl font-bold text-gray-800"><?php echo e($siteSettings->currency); ?>. <?php echo e(number_format($totalEarnings, 2)); ?></p>
                        <p class="text-sm text-gray-600 uppercase font-medium">Total Earnings</p>
                    </div>
                    <div class="w-16 h-16 bg-red-100 rounded-lg flex items-center justify-center">
                        <i class="fas fa-money-bill text-red-600 text-2xl"></i>
                    </div>
                </div>
            </div>
            <?php endif; ?>

            <!-- Pending Payment -->
            <?php if(auth()->check() && auth()->user()->hasPermissionTo('view-bookings')): ?>
            <div class="bg-white rounded-lg shadow-md p-6 border-l-4 border-purple-500">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-3xl font-bold text-gray-800"><?php echo e($siteSettings->currency); ?>. <?php echo e(number_format($pendingPayments)); ?></p>
                        <p class="text-sm text-gray-600 uppercase font-medium">Pending Payment</p>
                    </div>
                    <div class="w-16 h-16 bg-purple-100 rounded-lg flex items-center justify-center">
                        <i class="fas fa-credit-card text-purple-600 text-2xl"></i>
                    </div>
                </div>
            </div>
            <?php endif; ?>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home4/lvwxwpmy/public_html/hotelms/resources/views/backend/dashboard.blade.php ENDPATH**/ ?>