@php $trashType = $trashType ?? null; $trashCount = 0; if ($trashType && auth('garage_admin')->check()) { $trashCount = \App\Support\GarageTrashRegistry::countDeleted( (int) auth('garage_admin')->user()->garage_id, $trashType ); } @endphp @if($trashType) @if($trashCount > 0) Deleted ({{ $trashCount }}) @else Deleted @endif @endif