
<form class="row g-3 auto-width business-divisions_update" action="{{ route('business-divisions.update', $data->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method("PATCH")
    @csrf
    <div class="col-md-12">
        <label for="name" class="form-label">Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="name" name="name" aria-describedby="inputGroupPrepend" required value="{{$data->name}}">
        <span class="text-danger error_name" style="display: none;">This field is required.</span>
        @if ($errors->has('name'))
            <span class="text-danger">{{ $errors->first('name') }}</span>
        @endif
    </div>
    <div class="col-md-12">
        <label for="priority" class="form-label">Priority <span class="text-danger"><b>*</b></span></label>
        <input type="number" class="form-control" name="priority" aria-describedby="inputGroupPrepend" required value="{!! $data->priority !!}">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>
</form>
