@php $current_route = $request->route()->getName(); $pending_count = \App\Models\Price::where('status', 0) ->where('created_by', auth()->user()->id) ->count(); $reverted_count = \App\Models\WorkFlowApproval::where(['created_by' => auth()->user()->id, 'status' => 4])->count(); @endphp