<p>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.</p><p><br></p><p><img src="https://media1.giphy.com/media/kkbzoD1i0qF0UYybvY/giphy-downsized.gif?cid=a51c33e6iunqfssmkdrbex75mmbga7wyb5jabbvrwiorqxbs&amp;ep=v1_gifs_trending&amp;rid=giphy-downsized.gif&amp;ct=g" alt="Hug Me Us Open Tennis GIF by US Open" style="color: var(--text-color); font-family: var(--gen-font-family); font-size: 1.0625rem; text-align: var(--bs-body-text-align);"><br></p><p><br></p><pre class="language-php"><code class="language-php"><span class="token operator">&lt;</span>div <span class="token keyword">class</span><span class="token operator">=</span><span class="token string double-quoted-string">"col-sm-12"</span><span class="token operator">&gt;</span>
<span class="token operator"> &lt;</span>label <span class="token keyword">class</span><span class="token operator">=</span><span class="token string double-quoted-string">"form-label"</span><span class="token operator">&gt;</span>Categories<span class="token operator">&lt;</span><span class="token operator">/</span>label<span class="token operator">&gt;</span>
  <span class="token operator">&lt;</span>select name<span class="token operator">=</span><span class="token string double-quoted-string">"category_id"</span> id<span class="token operator">=</span><span class="token string double-quoted-string">"category_id"</span><span class="token operator">&gt;</span>
   @<span class="token keyword">foreach</span> <span class="token punctuation">(</span><span class="token variable">$categories</span> <span class="token keyword">as</span> <span class="token variable">$category</span><span class="token punctuation">)</span>
     <span class="token operator">&lt;</span>option value<span class="token operator">=</span><span class="token string double-quoted-string">"{{ <span class="token interpolation"><span class="token variable">$category</span><span class="token operator">-&gt;</span><span class="token property">id</span></span> }}"</span> <span class="token punctuation">{</span><span class="token punctuation">{</span> <span class="token variable">$post</span><span class="token operator">-&gt;</span><span class="token property">category_id</span> <span class="token operator">==</span> <span class="token variable">$category</span><span class="token operator">-&gt;</span><span class="token property">id</span> <span class="token operator">?</span> <span class="token string single-quoted-string">'selected'</span> <span class="token punctuation">:</span> <span class="token string single-quoted-string">''</span> <span class="token punctuation">}</span><span class="token punctuation">}</span><span class="token operator">&gt;</span><span class="token punctuation">{</span><span class="token punctuation">{</span> <span class="token variable">$category</span><span class="token operator">-&gt;</span><span class="token property">name</span> <span class="token punctuation">}</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>option<span class="token operator">&gt;</span>
   @<span class="token keyword">endforeach</span>
  <span class="token operator">&lt;</span><span class="token operator">/</span>select<span class="token operator">&gt;</span>
  <span class="token operator">&lt;</span>div <span class="token keyword">class</span><span class="token operator">=</span><span class="token string double-quoted-string">"invalid-feedback"</span><span class="token operator">&gt;</span><span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span></code></pre>