<?php $__env->startSection('content'); ?>
    <div class="row">
      <div class="col-8">
        <div class="card">
          <div class="card-body">
            <div class="d-md-flex align-items-center">
              <div>
                <h4 class="card-title">Produk</h4>
              </div>
            </div>
            <form method="POST" action="<?php echo e(route('admin.product')); ?>" enctype="multipart/form-data">
                <?php echo csrf_field(); ?> <?php echo method_field('POST'); ?>
                <div class="mb-3">
                    <label for="name" class="form-label">Nama</label>
                    <input type="text" required name="name" class="form-control" id="name">
                </div>
                <div class="mb-3">
                    <label for="description" class="form-label">Deskripsi Produk</label>
                    <textarea name="description" id="description" cols="30" rows="10" class="form-control"></textarea>
                </div>
                <div class="mb-3">
                    <label for="product_category_id" class="form-label">Kategori Produk</label>
                    <select name="product_category_id" id="product_category_id" class="form-control" required>
                      <option value="">Silahkan Pilih</option>
                      <?php $__currentLoopData = $product_category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($item->id); ?>"><?php echo e($item->name); ?></option>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
                <div class="mb-3 form-check">
                  <input type="checkbox" name="is_discount" value="1" class="form-check-input" id="exampleCheck1">
                  <label class="form-check-label" for="exampleCheck1">Diskon?</label>
                </div>
                <div class="mb-3">
                    <label for="discount_price" class="form-label">Harga Diskon</label>
                    <input type="number" required name="discount_price" class="form-control" id="discount_price">
                </div>
                 <div class="mb-3">
                    <label for="price" class="form-label">Harga</label>
                    <input type="number" required name="price" class="form-control" id="price">
                </div>
                <div class="mb-3">
                    <label for="image" class="form-label">Gambar</label>
                    <input type="file" name="image" class="form-control" id="image">
                </div>
                <div class="mb-3">
                    <label for="stock" class="form-label">Stok</label>
                    <input type="number" required name="stock" class="form-control" id="stock">
                </div>
                <button type="submit" class="btn btn-primary rounded-2">Simpan</button>
            </form>
          </div>
        </div>
      </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp8\htdocs\pasar_nelayan_zaskia\resources\views/apps/admin/product/create.blade.php ENDPATH**/ ?>