@php $path = explode('/', request()->path()); $item_id = (isset($path[2])) ? $path[2] : 0; @endphp