@php function checkFilter($request_name,$current_value=null){ // Check IF Current Value Exists in Required Request if($request_name && $current_value){ $request_value=request()->get($request_name); $check=$request_value == $current_value; $selected = ($check) ? 'selected' : ''; return $selected; } // Return Required Request Value if($request_name){ $request_value=request()->get($request_name); return $request_value; } return ''; } $showAllApplications = checkRolePermission("ShowAllApplications.Show"); @endphp
@include("admin.components.input.date",[ "name" => "from", "label"=> __('lang.from'), "id"=> "bs_datepicker_range_container", "value"=> "", "class"=> "", "col"=> "col-lg-4 col-md-4 col-sm-12 col-xs-12", ]) @include("admin.components.input.date",[ "name" => "to", "label"=> __('lang.to'), "id"=> "bs_datepicker_range_container1", "value"=> "", "class"=> "", "col"=> "col-lg-4 col-md-4 col-sm-12 col-xs-12", ])