<?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, []); ?> 
        Add Material
     <?php $__env->endSlot(); ?>

    <div class="bg-white rounded-2xl shadow-sm p-8 max-w-4xl">

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

            <?php echo csrf_field(); ?>

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

                <div>
                    <label>Name</label>

                    <input type="text"
                           name="name"
                           class="w-full mt-2 rounded-xl border-gray-300">
                </div>

                <div>
                    <label>Code</label>

                    <input type="text"
                           name="code"
                           class="w-full mt-2 rounded-xl border-gray-300">
                </div>

                <div>
                    <label>Unit</label>

                    <input type="text"
                           name="unit"
                           placeholder="KG / PCS / LTR"
                           class="w-full mt-2 rounded-xl border-gray-300">
                </div>

                <div>
                    <label>Price</label>

                    <input type="number"
                           step="0.01"
                           name="price"
                           class="w-full mt-2 rounded-xl border-gray-300">
                </div>

                <div>
                    <label>Stock</label>

                    <input type="number"
                           step="0.01"
                           name="stock"
                           class="w-full mt-2 rounded-xl border-gray-300">
                </div>

                <div class="md:col-span-2">

                    <label>Description</label>

                    <textarea name="description"
                              rows="4"
                              class="w-full mt-2 rounded-xl border-gray-300"></textarea>

                </div>

            </div>

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

                Save Material

            </button>

        </form>

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