'outstanding', ])->get(); $inProgress = EveContract::where([ 'status' => 'in_progress', ])->get(); $cancelled = EveContract::where([ 'status' => 'cancelled', ])->get(); $failed = EveContract::where([ 'status' => 'failed', ])->get(); $deleted = EveContract::where([ 'status' => 'deleted', ])->get(); $finished = EveContract::where([ 'status' => 'finished', ])->get(); return view('logistics.display.contracts')->with('open', $open) ->with('inProgress', $inProgress) ->with('cancelled', $cancelled) ->with('failed', $failed) ->with('deleted', $deleted) ->with('finished', $finished); } /** * Function to display current contracts user holds */ public function displayUserContracts() { } /** * Function to calculate details needing to be set for contracts */ public function displayContractForm() { } /** * Function to calculate details needing to be set for contracts */ public function displayContractDetails(Request $request) { $this->validate($request, [ 'start_location', 'end_location', 'type', 'collateral', ]); } }