<?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, []); ?> 

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

            <div>

                <h2 class="text-2xl font-bold text-slate-800">
                    Create Production
                </h2>

                <p class="text-slate-500 text-sm mt-1">
                    Manufacture products using BOM formula
                </p>

            </div>

           

        </div>

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

    <form action="<?php echo e(route('production.store')); ?>"
          method="POST">

        <?php echo csrf_field(); ?>

        <div class="bg-white rounded-2xl shadow-sm border border-slate-200 p-8">

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

                <!-- Product -->
                <div>

                    <label class="font-semibold text-slate-700">
                        Select Product
                    </label>

                    <select name="product_id"
                            required
                            class="w-full rounded-xl border-slate-300 mt-2">

                        <option value="">
                            Select Product
                        </option>

                        <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                            <option value="<?php echo e($product->id); ?>">

                                <?php echo e($product->name); ?>

                                | Current Stock: <?php echo e($product->stock); ?>


                            </option>

                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </select>

                </div>

                <!-- Production Qty -->
                <div>

                    <label class="font-semibold text-slate-700">
                        Production Quantity
                    </label>

                    <input type="number"
                           name="quantity"
                           min="1"
                           required
                           class="w-full rounded-xl border-slate-300 mt-2">

                </div>

            </div>

            <!-- Button -->
            <div class="mt-8">

                <button type="submit"
                        class="bg-green-600 hover:bg-green-700 text-white px-8 py-3 rounded-xl">

                    Create Production

                </button>

            </div>

        </div>

    </form>

 <?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/production/create.blade.php ENDPATH**/ ?>