{{-- - This code needs to be refactored to reduce the amount of PHP in the Blade template as much as possible. - Need to check the view composer capability for the component. --}} @php $menu = \Webkul\Core\Tree::create(); foreach (config('menu.customer') as $item) { $menu->add($item, 'menu'); } $menu->items = core()->sortItems($menu->items); $customer = auth()->guard('customer')->user(); @endphp
Hello! {{ $customer->first_name }}
{{ $customer->email }}
@lang($menuItem['name'])
@lang($subMenuItem['name'])