@foreach($championship->fights()->get()->groupBy('area') as $fightsByArea)
Area {{ $fightsByArea->get(0)->area }}
Id |
Competitor 1 |
Competitor 2 |
@foreach($fightsByArea as $fight)
@if ($fight->shouldBeInFightList(false))
Fatal error: Uncaught Error: Call to undefined function optional() in D:\dev\asl\vendor\xoco70\laravel-tournaments\resources\views\partials\fights.blade.php:13
Stack trace:
#0 {main}
thrown in D:\dev\asl\vendor\xoco70\laravel-tournaments\resources\views\partials\fights.blade.php on line 13