Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec mattis rutrum lacus id faucibus. Aliquam sit amet eros at diam imperdiet ullamcorper sit amet vel ligula. Ut ex sem, convallis eget facilisis ut, porttitor eu turpis. Phasellus convallis facilisis rutrum. Phasellus tempus rhoncus dui, facilisis malesuada justo faucibus non. In luctus turpis ac auctor placerat. Vivamus rhoncus vel ligula eget tempus.
<div class="col-sm-12">
<label class="form-label">Categories</label>
<select name="category_id" id="category_id">
@foreach ($categories as $category)
<option value="{{ $category->id }}" {{ $post->category_id == $category->id ? 'selected' : '' }}>{{ $category->name }}</option>
@endforeach
</select>
<div class="invalid-feedback"></div>
</div>