{{--
- 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
{{-- Account Profile Hero Section --}}
Hello! {{ $customer->first_name }}
{{ $customer->email }}
{{-- Account Navigation Menus --}}
@foreach ($menu->items as $menuItem)