<?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">
                    Edit Production
                </h2>

                <p class="text-slate-500 text-sm mt-1">
                    Update manufactured quantity
                </p>

            </div>

            <a href="<?php echo e(route('production.index')); ?>"
               class="bg-slate-600 hover:bg-slate-700 text-white px-5 py-3 rounded-xl">

                Back

            </a>

        </div>

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

    <form action="<?php echo e(route('production.update', $production->id)); ?>"
          method="POST">

        <?php echo csrf_field(); ?>
        <?php echo method_field('PUT'); ?>

        <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">
                        Product
                    </label>

                    <input type="text"
                           readonly
                           value="<?php echo e($production->product->name); ?>"
                           class="w-full rounded-xl border-slate-300 bg-slate-100 mt-2">

                </div>

                <!-- Quantity -->
                <div>

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

                    <input type="number"
                           name="quantity"
                           min="1"
                           required
                           value="<?php echo e($production->quantity); ?>"
                           class="w-full rounded-xl border-slate-300 mt-2">

                </div>

            </div>

            <!-- Buttons -->
            <div class="mt-8 flex gap-4">

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

                    Update Production

                </button>

                <a href="<?php echo e(route('production.index')); ?>"
                   class="bg-slate-500 hover:bg-slate-600 text-white px-8 py-3 rounded-xl">

                    Cancel

                </a>

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