@if (count($tags) > 0)

@foreach($tags as $tag) @if ($tag["required"]) {{ $tag["name"] }} @endif @endforeach
@endif
@if (count($tags) > 0)

@foreach($tags as $tag) @if (!$tag["required"]) {{ $tag["name"] }} @endif @endforeach
@endif