@php if($superadmin != 1) { function get_item_name($item_id){ return App\Models\Item::where('id',$item_id)->value('name'); } } @endphp