@php
$firstPriority = min($allBoardColumns->pluck('priority')->toArray());
$priority = $allBoardColumns->pluck('priority')->toArray();
@endphp
@foreach ($allBoardColumns as $column)
@if($column->id != $boardColumn->id)
@if ($column->priority == $firstPriority)
@elseif (isset($afterBoardColumn) && $afterBoardColumn->priority == $column->priority)
@if ($boardColumn->priority == $firstPriority)
@endif
@else
@endif
@endif
@endforeach