xxxxxxxxxx
//check if user's name is empty
@empty($user->name)
N/A
//get value if not empty
@else
{{$user->name}}
@endempty
xxxxxxxxxx
if ($mentor->first()) { }
if (!$mentor->isEmpty()) { }
if ($mentor->count()) { }
if (count($mentor)) { }
if ($mentor->isNotEmpty()) { }
xxxxxxxxxx
@empty($products)
<p class="bg-danger text-white p-1">product</p>
@else
<p class="bg-danger text-white p-1">no product</p>
@endempty