<form class="row g-3 auto-width create_cities" action="{{ route('cities.store')}}" method="post" enctype='multipart/form-data'>
    @csrf
    <!--name -->
    <div class="col-md-12">
        <label class="form-label">Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="validationCustomTitle" name="name" aria-describedby="inputGroupPrepend" required>
        @if ($errors->has('name'))
        <span class="text-danger">{{ $errors->first('name') }}</span>
        @endif
        <span class="text-danger error_name" style="display: none;">This field is required.</span>
    </div>
    <!--States -->
    <div class="col-md-12">
        <div>
            <label for="state_id" class="form-label">States <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="form-control" name="state_id">
                @foreach($states as $list)
                <option value="{{ $list->id }}">{{ $list->name }}</option>
                @endforeach
            </select>
        </div>
        <span class="text-danger error_state_id" style="display: none;">This field is required.</span>
    </div>
</form>
