I need to include the following code for 10 columns, over 300 rows (So 3000 times) with different values each time
@if ($column->assigned_at == null && $column->completed_at == null)
--
@elseif ($column->assigned_at != null && $column->completed_at == null)
{{\Carbon\Carbon::parse($column->assigned_at)->format('m/d')}}
@else
{{\Carbon\Carbon::parse($column->completed_at)->format('m/d')}}
@endif
@if ($column->assigned_to != null)
{{$people[$column->assigned_to]->initials}}
@endif
What would be the most optimized way to include this in a blade template loop? I tried using a component (Like you see above) for just ONE Of the columns and it added 60+ ms to the load time and I'm now loading over 300 extra templates