@php $today = date('Y-m-d'); $month = date('m'); $year = date('Y'); $invest_today = \App\Models\Investment::where(['status'=> 3, 'closing_request'=>0])->where('package_id','!=',1)->where('invest_end_date', '=', $today)->count(); $invest_this_month = \App\Models\Investment::where(['status'=> 3, 'closing_request'=>0])->where('package_id','!=',1)->whereMonth('invest_end_date', '=', $month)->whereYear('invest_end_date', '=', $year)->count(); $invest_over = \App\Models\Investment::where(['status'=> 3, 'closing_request'=>0])->where('package_id','!=',1)->where('invest_end_date', '<', $today)->count(); @endphp @push('css') @endpush