<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-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\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>

     <?php $__env->slot('header', null, []); ?> 
        Dashboard
     <?php $__env->endSlot(); ?>

    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">

        <!-- Total Materials -->
        <div class="bg-white rounded-2xl shadow-sm p-6 border border-slate-100">

            <div class="flex items-center justify-between">

                <div>

                    <p class="text-gray-500 text-sm">
                        Total Materials
                    </p>

                    <h3 class="text-3xl font-bold mt-2 text-slate-800">
                        <?php echo e(\App\Models\Material::count()); ?>

                    </h3>

                </div>

                <div class="w-14 h-14 bg-blue-100 text-blue-600 rounded-xl flex items-center justify-center text-2xl">

                    <i class="bi bi-box-seam"></i>

                </div>

            </div>

        </div>

        <!-- Products -->
        <div class="bg-white rounded-2xl shadow-sm p-6 border border-slate-100">

            <div class="flex items-center justify-between">

                <div>

                    <p class="text-gray-500 text-sm">
                        Products
                    </p>

                    <h3 class="text-3xl font-bold mt-2 text-slate-800">
                        <?php echo e(\App\Models\Product::count()); ?>

                    </h3>

                </div>

                <div class="w-14 h-14 bg-green-100 text-green-600 rounded-xl flex items-center justify-center text-2xl">

                    <i class="bi bi-bag-check"></i>

                </div>

            </div>

        </div>

        <!-- Production -->
        <div class="bg-white rounded-2xl shadow-sm p-6 border border-slate-100">

            <div class="flex items-center justify-between">

                <div>

                    <p class="text-gray-500 text-sm">
                        Production
                    </p>

                    <h3 class="text-3xl font-bold mt-2 text-slate-800">
                        <?php echo e(\App\Models\Production::count()); ?>

                    </h3>

                </div>

                <div class="w-14 h-14 bg-purple-100 text-purple-600 rounded-xl flex items-center justify-center text-2xl">

                    <i class="bi bi-gear-wide-connected"></i>

                </div>

            </div>

        </div>

        <!-- Inventory -->
        <div class="bg-white rounded-2xl shadow-sm p-6 border border-slate-100">

            <div class="flex items-center justify-between">

                <div>

                    <p class="text-gray-500 text-sm">
                        Inventory
                    </p>

                    <h3 class="text-3xl font-bold mt-2 text-slate-800">
                        <?php echo e(\App\Models\Material::sum('stock')); ?>

                    </h3>

                </div>

                <div class="w-14 h-14 bg-orange-100 text-orange-600 rounded-xl flex items-center justify-center text-2xl">

                    <i class="bi bi-clipboard-data"></i>

                </div>

            </div>

        </div>

    </div>

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?><?php /**PATH C:\xampp\htdocs\manufacturing-system\resources\views/dashboard.blade.php ENDPATH**/ ?>