<form class="row g-3 auto-width update_images" action="{{ route('product-image.store')}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('POST')
    <div class="col-md-12">
        <label for="image" class="form-label">Image <span class="text-danger"><b>*</b></span></label>
        <input type="file" name="image" class="form-control" placeholder="" required>
        <span class="text-danger error_image" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="priority" class="form-label">Priority <span class="text-danger"><b>*</b></span></label>
        <input type="number" name="priority" class="form-control" value="{!! $priority !!}" placeholder="Enter Priority">
    </div>

    <div class="col-md-12">
        <div class="input-group">
            <select class=" form-control" id="file_type" name="file_type" required>
                <option value="image">Image</option>
                <option value="pdf" >PDF</option>
            </select>
        </div>
    </div>

    <input type="hidden" name="product_id">
</form>
