@php $bundles = $bundles ?? []; $totalBundle = count($bundles); $bundleRoute = ''; $bundleBtnText = ''; if ($totalBundle > 0) { $bundleRoute = ''; $bundleBtnText = 'View all bundle'; } if (isAdmin() && $totalBundle < 1) { $bundleRoute = 'bundle.create'; $bundleBtnText = 'Add Bundle'; } @endphp