Right now I'm trying to check when the view receives an empty array.
@if(! empty($array))
// Section content goes here...
@foreach($array as $value)
// All table data goes here...
@endforeach
@endif
The code as it is above seems to still run when the $array is empty and causes an exception.
When I try to dump the array with {{ dd($array) }} I get $array = [].