/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id = null) { return view('rental::rental.detail', ['rental' => Rental::find($id), 'properties' => Property::getAll(null, PHP_INT_MAX)]); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { Personnel::checkUserAccess(); return view('rental::property.list', ['data' => Property::getAll(isset($_REQUEST['address_id']) ? $_REQUEST['address_id'] : null)]); }