input('created_at_start')){ $created_at_start=$request->input('created_at_start')." 00:00:00"; $waybillFinancialSnapshots=$waybillFinancialSnapshots->where('created_at','>=',$created_at_start); } if ($request->input('created_at_end')){ $created_at_end=$request->input('created_at_end')." 23:59:59"; $waybillFinancialSnapshots=$waybillFinancialSnapshots->where('created_at','<=',$created_at_end); } $waybillFinancialSnapshots=$waybillFinancialSnapshots->paginate(50); return $waybillFinancialSnapshots; } public function index(Request $request) { if(!Gate::allows('财务报表-查询')){ return redirect(url('/')); } $waybillFinancialSnapshots=WaybillFinancialExcepted::orderBy('id', 'DESC'); $waybillFinancialSnapshots=$this->conditionQuery($request,$waybillFinancialSnapshots); return view('waybill.waybillFinancialSnapshot.index',['waybillFinancialSnapshots'=>$waybillFinancialSnapshots,'filterData'=>$request->input(),'type'=>'','excepted'=>true]); } public function indexZF(Request $request) { if(!Gate::allows('财务报表-查询')){ return redirect(url('/')); } $waybillFinancialSnapshots=WaybillFinancialExcepted::orderBy('id', 'DESC')->where('json_content','like','%直发车%'); $waybillFinancialSnapshots=$this->conditionQuery($request,$waybillFinancialSnapshots); return view('waybill.waybillFinancialSnapshot.index',['waybillFinancialSnapshots'=>$waybillFinancialSnapshots,'filterData'=>$request->input(),'type'=>'ZF','excepted'=>true]); } public function indexZX(Request $request) { if(!Gate::allows('财务报表-查询')){ return redirect(url('/')); } $waybillFinancialSnapshots=WaybillFinancialExcepted::orderBy('id', 'DESC')->where('json_content','like','%专线%'); $waybillFinancialSnapshots=$this->conditionQuery($request,$waybillFinancialSnapshots); return view('waybill.waybillFinancialSnapshot.index',['waybillFinancialSnapshots'=>$waybillFinancialSnapshots,'filterData'=>$request->input(),'type'=>'ZX','excepted'=>true]); } }