<script src="<?php echo e(asset('js/modal_custom.js')); ?>"></script>

<!-- Category Id Field -->
<div class="form-group col-sm-12">
    <?php echo Form::label('category_id', 'Category:'); ?>

    <?php echo Form::select('category_id', Common::getCategories(),null ,['class' => 'select2 form-select ','id'=>'category_id']); ?>

</div>
<!-- Name Field -->
<div class="form-group col-sm-12">
    <?php echo Form::label('name', 'Name:'); ?>

    <?php echo Form::text('name', null, ['class' => 'form-control', 'maxlength' => 255, 'maxlength' => 255, 'maxlength' => 255]); ?>

</div>

<!-- Detail Field -->
<div class="form-group col-sm-12 col-lg-12">
    <?php echo Form::label('detail', 'Detail:'); ?>

    <?php echo Form::textarea('detail', null, ['class' => 'form-control', 'rows'=>4,'maxlength' => 65535]); ?>

</div>


<!-- Price Field -->
<div class="form-group col-sm-12">
    <?php echo Form::label('price', 'Price:'); ?>

    <?php echo Form::number('price', null, ['class' => 'form-control','step'=>'any']); ?>

</div>

<!-- Branch Field -->
<?php if(isset(auth()->user()->branch_id)): ?>
<div class="form-group col-sm-12">
    <?php echo Form::hidden('branch_id', auth()->user()->branch_id); ?>

</div>
<?php else: ?>
<div class="form-group col-sm-12">
    <?php echo Form::label('branch_id', 'Branch:'); ?>

    <?php echo Form::select('branch_id', Common::getBranches(),null ,['class' => 'select2 form-select ','id'=>'branch_id']); ?>

</div>
<?php endif; ?>

<!-- Status Field -->
<div class="form-group col-sm-12 mt-3">
    <div class="form-check">
       <input type="checkbox" name="status" id="status" class="form-check-input" value="1" <?php if(isset($items->status)): ?> checked <?php endif; ?> />
       <label for="status" class="pt-0">Is Active</label>

    </div>
</div>




<script>

    var loadFile = function (event) {
      var image = document.getElementById("output");
      image.src = URL.createObjectURL(event.target.files[0]);
    };
    
    
    </script><?php /**PATH D:\projects\thamu\headbarber_pos\resources\views/items/fields.blade.php ENDPATH**/ ?>