input(); $this->service = app('OwnerLogisticFeeDetailService'); $this->userService = app('UserService'); $permittingOwnerIds = $this->userService->getPermittingOwnerIds(auth()->user()); if (is_null($request->owner_id)) { $owner_id = $permittingOwnerIds[0]; } else { $owner_id = $request->owner_id; } if (is_null($request->start)) { $start = now()->subMonth()->startOfMonth()->toDateString(); } else { $start = $request->start; } if (is_null($request->end)) { $end = now()->subMonth()->endOfMonth()->toDateString(); } else { $end = $request->end; } $details = $this->service->getDetails($owner_id, $start, $end, $paginateParams); $owners = Owner::query()->selectRaw("id,name")->whereIn('id', $permittingOwnerIds)->get(); $owner = Owner::query()->selectRaw("name")->find($owner_id); return view('finance.settlementBills.logisticFee.detail.index', compact('details', 'paginateParams', 'owners','owner')); } /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { // } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { // } /** * Display the specified resource. * * @param \App\OwnerLogisticFeeDetail $ownerLogisticFeeDetail * @return \Illuminate\Http\Response */ public function show(OwnerLogisticFeeDetail $ownerLogisticFeeDetail) { // } /** * Show the form for editing the specified resource. * * @param \App\OwnerLogisticFeeDetail $ownerLogisticFeeDetail * @return \Illuminate\Http\Response */ public function edit(OwnerLogisticFeeDetail $ownerLogisticFeeDetail) { // } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param \App\OwnerLogisticFeeDetail $ownerLogisticFeeDetail * @return \Illuminate\Http\Response */ public function update(Request $request, OwnerLogisticFeeDetail $ownerLogisticFeeDetail) { // } /** * Remove the specified resource from storage. * * @param \App\OwnerLogisticFeeDetail $ownerLogisticFeeDetail * @return \Illuminate\Http\Response */ public function destroy(OwnerLogisticFeeDetail $ownerLogisticFeeDetail) { // } }