<?php if (isset($component)) { $__componentOriginal3f11930a8702d3d700513f5d743b90ca = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3f11930a8702d3d700513f5d743b90ca = $attributes; } ?>
<?php $component = App\View\Components\TenantLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('tenant-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\TenantLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <h2 class="font-semibold text-xl text-gray-800 leading-tight">
            <?php echo e(__('Reports Overview')); ?>

        </h2>
     <?php $__env->endSlot(); ?>

    <div class="py-6">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
            <!-- Stats Cards -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                <div class="bg-white overflow-hidden shadow rounded-lg">
                    <div class="p-5">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 bg-green-500 rounded-md p-3">
                                <span class="text-2xl">💵</span>
                            </div>
                            <div class="ml-5 w-0 flex-1">
                                <dl>
                                    <dt class="text-sm font-medium text-gray-500 truncate">Today's Sales</dt>
                                    <dd class="text-lg font-bold text-gray-900">$<?php echo e(number_format($todaySales, 2)); ?></dd>
                                </dl>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="bg-white overflow-hidden shadow rounded-lg">
                    <div class="p-5">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 bg-blue-500 rounded-md p-3">
                                <span class="text-2xl">📅</span>
                            </div>
                            <div class="ml-5 w-0 flex-1">
                                <dl>
                                    <dt class="text-sm font-medium text-gray-500 truncate">This Month</dt>
                                    <dd class="text-lg font-bold text-gray-900">$<?php echo e(number_format($monthSales, 2)); ?></dd>
                                </dl>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="bg-white overflow-hidden shadow rounded-lg">
                    <div class="p-5">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 bg-purple-500 rounded-md p-3">
                                <span class="text-2xl">🛒</span>
                            </div>
                            <div class="ml-5 w-0 flex-1">
                                <dl>
                                    <dt class="text-sm font-medium text-gray-500 truncate">Total Orders</dt>
                                    <dd class="text-lg font-bold text-gray-900"><?php echo e(number_format($totalOrders)); ?></dd>
                                </dl>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="bg-white overflow-hidden shadow rounded-lg">
                    <div class="p-5">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 bg-yellow-500 rounded-md p-3">
                                <span class="text-2xl">⚖️</span>
                            </div>
                            <div class="ml-5 w-0 flex-1">
                                <dl>
                                    <dt class="text-sm font-medium text-gray-500 truncate">Avg. Order Value</dt>
                                    <dd class="text-lg font-bold text-gray-900">$<?php echo e(number_format($averageOrderValue, 2)); ?></dd>
                                </dl>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Report Links -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                <a href="<?php echo e(route('tenant.reports.detailed')); ?>" class="block p-6 bg-white rounded-lg shadow hover:shadow-md transition border-l-4 border-indigo-500">
                <h3 class="text-lg font-semibold text-gray-900 mb-2">📑 Detailed Report</h3>
                <p class="text-gray-600 text-sm">Comprehensive report for Sales & Purchases. Filter by Date, Customer, Supplier, and Product.</p>
            </a>
            <a href="<?php echo e(route('tenant.reports.expiring_products')); ?>" class="block p-6 bg-white rounded-lg shadow hover:shadow-md transition border-l-4 border-red-500">
                <h3 class="text-lg font-semibold text-gray-900 mb-2">⏰ Expiring Products Report</h3>
                <p class="text-gray-600 text-sm">View products that are expired or expiring within the next 7 days.</p>
            </a>

                <a href="<?php echo e(route('tenant.reports.sales')); ?>" class="block p-6 bg-white rounded-lg shadow hover:shadow-md transition border-l-4 border-blue-500">
                    <h3 class="text-lg font-semibold text-gray-900 mb-2">📊 Sales Overview</h3>
                    <p class="text-gray-600 text-sm">Detailed breakdown of sales over time. Filter by date range.</p>
                </a>

                <a href="<?php echo e(route('tenant.reports.top-products')); ?>" class="block p-6 bg-white rounded-lg shadow hover:shadow-md transition border-l-4 border-green-500">
                    <h3 class="text-lg font-semibold text-gray-900 mb-2">🏆 Top Products</h3>
                    <p class="text-gray-600 text-sm">See which products are performing best by revenue and quantity.</p>
                </a>

                <a href="<?php echo e(route('tenant.reports.stock')); ?>" class="block p-6 bg-white rounded-lg shadow hover:shadow-md transition border-l-4 border-purple-500">
                    <h3 class="text-lg font-semibold text-gray-900 mb-2">📦 Stock Report</h3>
                    <p class="text-gray-600 text-sm">Complete inventory overview with stock levels, values, and status indicators.</p>
                </a>

                <a href="<?php echo e(route('tenant.reports.stock-movement')); ?>" class="block p-6 bg-white rounded-lg shadow hover:shadow-md transition border-l-4 border-orange-500">
                    <h3 class="text-lg font-semibold text-gray-900 mb-2">🔄 Stock Movement</h3>
                    <p class="text-gray-600 text-sm">Track all stock movements including sales, purchases, and adjustments.</p>
                </a>

                <a href="<?php echo e(route('tenant.reports.inventory')); ?>" class="block p-6 bg-white rounded-lg shadow hover:shadow-md transition border-l-4 border-red-500">
                    <h3 class="text-lg font-semibold text-gray-900 mb-2">⚠️ Low Stock Alerts</h3>
                    <p class="text-gray-600 text-sm">View products that are running low and need reordering.</p>
                </a>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3f11930a8702d3d700513f5d743b90ca)): ?>
<?php $attributes = $__attributesOriginal3f11930a8702d3d700513f5d743b90ca; ?>
<?php unset($__attributesOriginal3f11930a8702d3d700513f5d743b90ca); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3f11930a8702d3d700513f5d743b90ca)): ?>
<?php $component = $__componentOriginal3f11930a8702d3d700513f5d743b90ca; ?>
<?php unset($__componentOriginal3f11930a8702d3d700513f5d743b90ca); ?>
<?php endif; ?>
<?php /**PATH D:\laragon\www\Laravel_gorsary\resources\views/tenant/reports/index.blade.php ENDPATH**/ ?>