├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── .styleci.yml ├── README.md ├── app ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── AccountController.php │ │ ├── Auth │ │ │ ├── ConfirmPasswordController.php │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── RegisterController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── VerificationController.php │ │ ├── Controller.php │ │ ├── PropertyApplicationController.php │ │ ├── PropertyController.php │ │ ├── UserController.php │ │ └── UserPropertyController.php │ ├── Kernel.php │ ├── Middleware │ │ ├── Authenticate.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── EncryptCookies.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php │ └── View │ │ └── Composer │ │ └── AccountPageComposer.php ├── Property.php ├── PropertyApplication.php ├── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ ├── RouteServiceProvider.php │ └── TelescopeServiceProvider.php ├── User.php ├── UserInfo.php └── UserType.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── cors.php ├── database.php ├── filesystems.php ├── hashing.php ├── logging.php ├── mail.php ├── queue.php ├── services.php ├── session.php ├── sweetalert.php ├── telescope.php └── view.php ├── database ├── .gitignore ├── factories │ ├── PropertyFactory.php │ ├── UserFactory.php │ ├── UserInfoFactory.php │ └── UserTypeFactory.php ├── migrations │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2020_07_18_081225_create_properties_table.php │ ├── 2020_07_22_144646_create_user_infos_table.php │ ├── 2020_07_22_151056_create_user_types_table.php │ └── 2020_09_23_040714_create_property_applications_table.php └── seeds │ ├── DatabaseSeeder.php │ ├── PropertySeeder.php │ └── UserTypeSeeder.php ├── package-lock.json ├── package.json ├── phpunit.xml ├── public ├── .htaccess ├── css │ ├── app.css │ └── cookie.css ├── favicon.ico ├── img │ ├── Nike.png │ ├── NoResult.svg │ ├── PayPal.png │ ├── React.png │ ├── Segment.png │ ├── appstoredownload.png │ ├── background.jpg │ ├── camera.jpg │ ├── changeprofile.png │ ├── download.png │ ├── hero.jpg │ ├── hero2 (2).jpg │ ├── hero2.jpg │ ├── hopper.png │ ├── image1.jpg │ ├── logo.png │ ├── logo2.png │ ├── macOS.png │ ├── natural.png │ ├── playstoredownload.png │ ├── property │ │ ├── .picasa.ini │ │ ├── 1.jpg │ │ ├── 10.jpg │ │ ├── 11.jpg │ │ ├── 12.jpg │ │ ├── 13.jpg │ │ ├── 14.jpg │ │ ├── 15.jpg │ │ ├── 16.jpg │ │ ├── 17.jpg │ │ ├── 18.jpg │ │ ├── 19.jpg │ │ ├── 2.jpg │ │ ├── 20.jpg │ │ ├── 21.jpg │ │ ├── 22.jpg │ │ ├── 23.jpg │ │ ├── 24.jpg │ │ ├── 25.jpg │ │ ├── 26.jpg │ │ ├── 3.jpg │ │ ├── 4.jpg │ │ ├── 5.jpg │ │ ├── 6.jpg │ │ ├── 7.jpg │ │ ├── 8.jpg │ │ └── 9.jpg │ ├── realestate1.jpeg │ ├── realestate2.jpg │ ├── realestate3.jpeg │ ├── realestate4.jpg │ ├── refresh.png │ ├── search-background.jpg │ ├── sendgrid.png │ ├── trello.png │ ├── vevo.png │ ├── windows.png │ ├── zappos.png │ └── zendesk.png ├── index.php ├── js │ ├── app.js │ └── cookie.js ├── mix-manifest.json ├── robots.txt └── vendor │ ├── sweetalert │ └── sweetalert.all.js │ └── telescope │ ├── app-dark.css │ ├── app.css │ ├── app.js │ ├── favicon.ico │ └── mix-manifest.json ├── resources ├── js │ ├── app.js │ ├── bootstrap.js │ └── components │ │ └── ExampleComponent.vue ├── lang │ └── en │ │ ├── auth.php │ │ ├── en.json │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php ├── sass │ ├── _real-estate.scss │ ├── _variables.scss │ ├── app.scss │ ├── inc │ │ ├── _default.scss │ │ ├── _footer.scss │ │ ├── _navbar.scss │ │ └── _roboto-font.scss │ └── pages │ │ ├── _account.scss │ │ ├── _index-page.scss │ │ ├── _login-page.scss │ │ └── _property.scss └── views │ ├── auth │ ├── login.blade.php │ ├── original-login.blade.php │ ├── passwords │ │ ├── confirm.blade.php │ │ ├── email.blade.php │ │ └── reset.blade.php │ ├── register.blade.php │ └── verify.blade.php │ ├── inc │ ├── account-footer.blade.php │ ├── account-nav.blade.php │ ├── flash-message.blade.php │ ├── footer.blade.php │ └── navbar.blade.php │ ├── layouts │ ├── account-layout.blade.php │ ├── app.blade.php │ ├── list-layout.blade.php │ ├── login.blade.php │ ├── master-layout.blade.php │ └── real-estate.blade.php │ ├── real-estate │ ├── account │ │ ├── property-create.blade.php │ │ ├── property-edit.blade.php │ │ ├── property-listings.blade.php │ │ ├── rental-resume.blade.php │ │ ├── saved-homes.blade.php │ │ └── user-profile.blade.php │ ├── index.blade.php │ ├── property │ │ ├── list.blade.php │ │ ├── mortage.blade.php │ │ ├── rent.blade.php │ │ └── show.blade.php │ └── testshow.blade.php │ └── vendor │ └── sweetalert │ └── alert.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── server.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── CreatesApplication.php ├── Feature │ ├── AccountCrudTest.php │ └── ExampleTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── webpack.mix.js /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = space 8 | indent_size = 4 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | 9 | DB_CONNECTION=mysql 10 | DB_HOST=127.0.0.1 11 | DB_PORT=3306 12 | DB_DATABASE=laravel 13 | DB_USERNAME=root 14 | DB_PASSWORD= 15 | 16 | BROADCAST_DRIVER=log 17 | CACHE_DRIVER=file 18 | QUEUE_CONNECTION=sync 19 | SESSION_DRIVER=file 20 | SESSION_LIFETIME=120 21 | 22 | REDIS_HOST=127.0.0.1 23 | REDIS_PASSWORD=null 24 | REDIS_PORT=6379 25 | 26 | MAIL_MAILER=smtp 27 | MAIL_HOST=smtp.mailtrap.io 28 | MAIL_PORT=2525 29 | MAIL_USERNAME=null 30 | MAIL_PASSWORD=null 31 | MAIL_ENCRYPTION=null 32 | MAIL_FROM_ADDRESS=null 33 | MAIL_FROM_NAME="${APP_NAME}" 34 | 35 | AWS_ACCESS_KEY_ID= 36 | AWS_SECRET_ACCESS_KEY= 37 | AWS_DEFAULT_REGION=us-east-1 38 | AWS_BUCKET= 39 | 40 | PUSHER_APP_ID= 41 | PUSHER_APP_KEY= 42 | PUSHER_APP_SECRET= 43 | PUSHER_APP_CLUSTER=mt1 44 | 45 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 46 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 47 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /storage/*.key 5 | /vendor 6 | .env 7 | .env.backup 8 | .phpunit.result.cache 9 | Homestead.json 10 | Homestead.yaml 11 | npm-debug.log 12 | yarn-error.log 13 | -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- 1 | php: 2 | preset: laravel 3 | disabled: 4 | - unused_use 5 | finder: 6 | not-name: 7 | - index.php 8 | - server.php 9 | js: 10 | finder: 11 | not-name: 12 | - webpack.mix.js 13 | css: true 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # About Nepestate 3 | 4 | Nepestate is a Real-estate website made with laravel and vue js. 5 |
6 | >Installation at the bottom 7 |
8 | 9 |
10 | ## Screenshots of this app 11 | 12 |

13 | Capture 14 | 15 | Screenshot-23 17 | 18 | Screenshot-9 20 | 21 | Screenshot-10 23 | 24 | Screenshot-46 25 |

26 | 27 | ## Installations 28 |
29 | ## If you receive and error while installation below:: 30 | 31 | >run composer update instead of composer install 32 | >also run php artisan key:generate 33 | 34 | ## 1. Clone the repository 35 | >https://github.com/nishangupta/nepestate.git 36 | 37 |
38 | 39 | ## 2. Set the basic config 40 | 41 | >Edit example.env to .env
42 | >Put your db username and password here with DB_DATABASE=nepestate.
43 | '''
44 | DB_CONNECTION=mysql
45 | DB_HOST=127.0.0.1
46 | DB_PORT=3306
47 | DB_DATABASE=nepestate
48 | DB_USERNAME=root
49 | DB_PASSWORD=
50 | ''' 51 |
52 | 53 | ## 3. Install Dependencies 54 | >~composer install
55 | >~npm install 56 | >~npm run dev 57 |
58 | 59 | ## 4. Migrate Database 60 | >~php artisan migrate:fresh
61 | >~php artisan db:seed
62 |
63 | 64 | ## 5. Serve application 65 | >~php artisan serve
66 | 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 28 | } 29 | 30 | /** 31 | * Register the commands for the application. 32 | * 33 | * @return void 34 | */ 35 | protected function commands() 36 | { 37 | $this->load(__DIR__.'/Commands'); 38 | 39 | require base_path('routes/console.php'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 20 | } 21 | //pages 22 | public function __invoke($page) 23 | { 24 | // $metaTitle = __('Meta Title: ' . $page); 25 | // if ($metaTitle == 'Meta Title: ' . $page) { 26 | // $metaTitle = NULL; 27 | // } 28 | 29 | $metaTitle = str_replace('-', ' ', ucwords($page)); 30 | return view('real-estate.account.' . $page, compact('metaTitle')); 31 | } 32 | public function accountLogin() 33 | { 34 | if (auth()->user()) { 35 | return view('auth.login'); 36 | } else { 37 | return redirect('/login'); 38 | } 39 | } 40 | public function accountLogout() 41 | { 42 | Auth::logout(auth()->user()); 43 | return redirect()->route('login'); 44 | } 45 | 46 | public function accountUpdate(Request $request) 47 | { 48 | $request->validate([ 49 | 'email' => 'required|email', 50 | 'name' => 'required|min:4', 51 | 'location' => 'required', 52 | ]); 53 | // $testUser = User::where('email', $request->email)->first(); 54 | $user = User::find(auth()->user()->id); 55 | $user->name = $request->name; 56 | 57 | $userInfo = $user->userInfo; 58 | $userInfo->fullname = $request->name; 59 | $userInfo->user_type = $request->user_type; 60 | $userInfo->location = $request->location; 61 | $userInfo->rental_inquiries = $request->rental ?? 0; 62 | 63 | if ($user->save() && $userInfo->save()) { 64 | return redirect()->route('page', 'user-profile')->with('toast_success', 'Account Updated!'); 65 | } else { 66 | return redirect()->route('page', 'user-profile')->with('toast_warning', 'Unsuccessfull !'); 67 | } 68 | } 69 | 70 | protected function passwordChange(Request $request) 71 | { 72 | //$2y$10$DOY6Gzj5cZ1nzwIavN81kesRTORnKnSDoQ4E58UF4XzOUFSHFloLK admin123 73 | 74 | if (auth()->user()) { 75 | $authUser = auth()->user(); 76 | $currentP = $request->currentPassword; 77 | $newP = $request->newPassword; 78 | $confirmP = $request->confirmPassword; 79 | 80 | //check if the password is valid 81 | if (!$request->validate([ 82 | 'currentPassword' => 'required|min:8', 83 | 'newPassword' => 'required|min:8' 84 | ])) { 85 | return ['passwordChange' => false, 'msg' => 'Invalid password']; 86 | } 87 | if (Hash::check($currentP, $authUser->password)) { 88 | if (Str::of($newP)->exactly($confirmP)) { 89 | $user = User::find($authUser->id); 90 | $user->password = Hash::make($newP); 91 | if ($user->save()) { 92 | return ['passwordChange' => true, 'msg' => 'Your password was changed!']; 93 | } else { 94 | return ['passwordChange' => false, 'msg' => '']; 95 | } 96 | } else { 97 | return ['passwordChange' => false, 'msg' => 'The new passwords doesn\'t match.']; 98 | } 99 | } else { 100 | return ['passwordChange' => false, 'msg' => 'Incorrect Password.']; 101 | } 102 | } else { 103 | return ['passwordChange' => false, 'msg' => 'Not authenticated!']; 104 | } 105 | } 106 | 107 | public function profileImgChange(Request $request) 108 | { 109 | $validator = Validator::make($request->all('profileImg'), [ 110 | 'profileImg' => 'required|image|max:8000' 111 | ]); 112 | 113 | if ($validator->fails()) { 114 | $errors = $validator->errors(); 115 | if ($errors->has('profileImg')) { 116 | Alert::error('Upload error!', $errors->first('profileImg'))->toToast(); 117 | } 118 | return redirect()->back(); 119 | } else { 120 | $fileName = $request->file('profileImg')->getClientOriginalName(); 121 | $fileExtension = pathinfo($fileName, PATHINFO_EXTENSION); 122 | $actualFileName = pathinfo($fileName, PATHINFO_FILENAME); 123 | $fileNameToStore = $actualFileName . time() . '.' . $fileExtension; 124 | $path = $request->file('profileImg')->storeAs('public/user-profile-img', $fileNameToStore); 125 | 126 | $user = User::find(auth()->user()->id); 127 | $userInfo = $user->userInfo; 128 | //delete existing old image 129 | $userImg = $userInfo->profile_img; 130 | Storage::delete('public/user-profile-img/' . basename($userImg)); 131 | $userInfo->profile_img = 'storage/user-profile-img/' . $fileNameToStore; 132 | 133 | if ($userInfo->save()) { 134 | Alert::success('Your profile image was updated!'); 135 | return redirect()->route('page', 'user-profile'); 136 | } else { 137 | return redirect()->back(); 138 | } 139 | } 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ConfirmPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 42 | } 43 | 44 | /** 45 | * Get a validator for an incoming registration request. 46 | * 47 | * @param array $data 48 | * @return \Illuminate\Contracts\Validation\Validator 49 | */ 50 | protected function validator(array $data) 51 | { 52 | return Validator::make($data, [ 53 | 'name' => ['required', 'string', 'max:255'], 54 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 55 | 'password' => ['required', 'string', 'min:8', 'confirmed'], 56 | ]); 57 | } 58 | 59 | /** 60 | * Create a new user instance after a valid registration. 61 | * 62 | * @param array $data 63 | * @return \App\User 64 | */ 65 | protected function create(array $data) 66 | { 67 | return User::create([ 68 | 'name' => $data['name'], 69 | 'email' => $data['email'], 70 | 'password' => Hash::make($data['password']), 71 | ]); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | $this->middleware('signed')->only('verify'); 40 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | validate([ 14 | 'name' => 'required|min:3', 15 | 'email' => 'required|email', 16 | 'telephone' => 'required|min:10', 17 | 'message' => 'required|min:6' 18 | ]); 19 | 20 | $propertyApplication = new PropertyApplication; 21 | $propertyApplication->property_id = $request->property_id; 22 | $propertyApplication->name = $request->name; 23 | $propertyApplication->email = $request->email; 24 | $propertyApplication->telephone = $request->telephone; 25 | $propertyApplication->message = $request->message; 26 | if ($propertyApplication->save()) { 27 | Alert::toast('Your application has been sent!', 'success'); 28 | } else { 29 | Alert::toast('Failed to send your appication!', 'warning'); 30 | } 31 | return redirect()->back(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Http/Controllers/PropertyController.php: -------------------------------------------------------------------------------- 1 | property . '%'; 18 | $properties = Property::where('name', 'like', $searchInput) 19 | ->orWhere('address', 'like', $searchInput) 20 | ->whereNotNull('onSale') 21 | ->paginate(10); 22 | $searchedProperty = true; 23 | 24 | if ($properties->count() == 0) { 25 | $properties = Property::where('onSale', 1)->latest()->take(40)->paginate(10); 26 | $searchedProperty = false; 27 | } 28 | $paginator = $properties->render()->paginator; 29 | $elements = $properties->render()->elements[0]; 30 | 31 | $bundle = [ 32 | 'properties' => $properties, 33 | 'paginator' => $paginator, 34 | 'elements' => $elements, 35 | 'searchedProperty' => $searchedProperty 36 | ]; 37 | 38 | return view('real-estate.property.list')->with($bundle); 39 | } 40 | 41 | 42 | public function priceChanger() 43 | { 44 | $keyword = request()->keyword; 45 | $searchInput = '%' . $keyword . '%'; 46 | $properties = Property::where('name', 'like', $searchInput) 47 | ->orWhere('address', 'like', $searchInput) 48 | ->whereNotNull('onSale'); 49 | 50 | $searchedProperty = true; 51 | $priceChangeVal = request()->priceChangeVal; 52 | //1 for assending, 2 for descending, 0 for default 53 | if ($priceChangeVal === 1) { 54 | $properties = $properties->orderBy('price', 'asc')->paginate(10); 55 | dd($properties); 56 | } else if ($priceChangeVal === 2) { 57 | $properties = $properties->orderBy('price', 'desc')->paginate(10); 58 | } else { 59 | return redirect()->route('property.search', ['property' => $keyword]); 60 | } 61 | 62 | $paginator = $properties->render()->paginator; 63 | $elements = $properties->render()->elements[0]; 64 | 65 | $bundle = [ 66 | 'properties' => $properties, 67 | 'paginator' => $paginator, 68 | 'elements' => $elements, 69 | 'searchedProperty' => $searchedProperty 70 | ]; 71 | 72 | return view('real-estate.property.list')->with($bundle); 73 | } 74 | 75 | public function list() 76 | { 77 | $properties = Property::where('onSale', 1)->latest()->take(50)->paginate(12); 78 | $searchedProperty = false; 79 | $paginator = $properties->render()->paginator; 80 | $elements = $properties->render()->elements[0]; 81 | 82 | $bundle = [ 83 | 'properties' => $properties, 84 | 'paginator' => $paginator, 85 | 'elements' => $elements, 86 | 'searchedProperty' => $searchedProperty 87 | ]; 88 | 89 | return view('real-estate.property.list')->with($bundle); 90 | } 91 | 92 | public function show(Property $property) 93 | { 94 | $userCanLike = Property::where('id', '<>', $property->id)->latest()->take(4)->get(); 95 | $property->userCanLike = $userCanLike; 96 | return view('real-estate.property.show', compact('property')); 97 | } 98 | 99 | public function buy() 100 | { 101 | return redirect()->route('property.list'); 102 | } 103 | public function rent() 104 | { 105 | return view('real-estate.property.rent'); 106 | } 107 | public function mortage() 108 | { 109 | return view('real-estate.property.mortage'); 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /app/Http/Controllers/UserController.php: -------------------------------------------------------------------------------- 1 | middleware('auth', ['except' => 'store']); 18 | } 19 | 20 | public function store(Request $request) 21 | { 22 | //logging out first if auth user 23 | if (auth()->user()) { 24 | Alert::info('You were logged out!')->toToast(); 25 | Auth::logout(auth()->user()); 26 | } 27 | 28 | $validator = Validator::make($request->only('email', 'password'), [ 29 | 'email' => 'required|email', 30 | 'password' => 'required|min:6' 31 | ]); 32 | 33 | if ($validator->fails()) { 34 | $errors = $validator->errors(); 35 | if ($errors->has('email')) { 36 | Alert::warning('Please use valid Email !', $errors->first('email'))->toToast(); 37 | } else { 38 | Alert::warning('Please use a valid Password !', $errors->first('password'))->toToast(); 39 | } 40 | return redirect('/login')->withInput(); 41 | } 42 | 43 | //if the validation passes 44 | $user = User::where('email', '=', request()->email)->first(); 45 | if ($user === null) { 46 | $username = explode("@", request()->email)[0]; 47 | 48 | $newUser = new User; 49 | $newUser->name = $username; 50 | $newUser->email = request()->email; 51 | $newUser->password = Hash::make(request()->password); 52 | //putting default values in user info 53 | 54 | 55 | if ($newUser->save()) { 56 | $newUserInfo = new UserInfo; 57 | $newUserInfo->user_id = $newUser->id; 58 | $newUserInfo->profile_img = 'img/changeprofile.png'; 59 | $newUserInfo->fullname = $username; 60 | $newUserInfo->user_type = 1; 61 | $newUserInfo->location = 'Not specified'; 62 | $newUserInfo->save(); 63 | Auth::login($newUser); 64 | return redirect()->route('page', 'user-profile'); 65 | } else { 66 | return redirect()->back(); 67 | } 68 | } else { 69 | //user exists 70 | if (Hash::check(request()->password, $user->password)) { 71 | Auth::login($user); 72 | return redirect()->route('page', 'user-profile'); 73 | } else { 74 | Alert::warning('Incorrect password')->toToast(); 75 | return redirect('/login')->withInput(); 76 | } 77 | } 78 | } 79 | 80 | public function index() 81 | { 82 | // 83 | } 84 | 85 | public function create() 86 | { 87 | // 88 | } 89 | 90 | public function show($id) 91 | { 92 | // 93 | } 94 | 95 | 96 | public function edit($id) 97 | { 98 | // 99 | } 100 | 101 | 102 | public function update(Request $request, $id) 103 | { 104 | // 105 | } 106 | 107 | 108 | public function destroy($id) 109 | { 110 | // 111 | } 112 | } 113 | -------------------------------------------------------------------------------- /app/Http/Controllers/UserPropertyController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 16 | } 17 | public function index() 18 | { 19 | if (request()->ajax()) { 20 | $data = Property::select(['id', 'name', 'created_at', 'onSale', 'img_url']) 21 | ->where('user_id', auth()->user()->id) 22 | ->get(); 23 | return DataTables::of($data) 24 | ->addIndexColumn() 25 | ->addColumn('image', function ($row) { 26 | return 'Listings image'; 27 | }) 28 | ->addColumn('created_at', function ($row) { 29 | return date('d/m/Y h:i A', strtotime($row->created_at)); 30 | }) 31 | ->addColumn('actions', function ($row) { 32 | $btns = ' View 33 | Edit 34 | '; 35 | return $btns; 36 | }) 37 | ->rawColumns(['actions', 'image', 'created_at']) 38 | ->make(true); 39 | } 40 | return view('real-estate.account.property-listings'); 41 | } 42 | 43 | public function create() 44 | { 45 | return view('real-estate.account.property-create'); 46 | } 47 | 48 | public function show(Request $request, Property $property) 49 | { 50 | return redirect()->route('property.show', ['property' => $property]); 51 | } 52 | 53 | public function store(Request $request) 54 | { 55 | $this->propertyValidate($request); 56 | $property = new Property; 57 | if ($this->propertySave($request, $property)) { 58 | return redirect()->route('user.propertyListings')->with('success', 'Property Added'); 59 | } else { 60 | return redirect()->route('user.propertyListings')->with('warning', 'Something went wrong'); 61 | } 62 | } 63 | 64 | public function edit(Property $property) 65 | { 66 | return view('real-estate.account.property-edit', compact('property')); 67 | } 68 | 69 | public function update(Request $request, Property $property) 70 | { 71 | $this->propertyValidate($request, ['img' => 'sometimes|image|max:5000']); 72 | 73 | if ($property->user_id === auth()->user()->id) { 74 | if ($this->propertySave($request, $property)) { 75 | Alert::toast('Listing successfully updated!', 'success'); 76 | } else { 77 | Alert::toast('Request aborted!', 'warning'); 78 | } 79 | } else { 80 | Alert::toast('Edit aborted!', 'error'); 81 | } 82 | 83 | return redirect()->back(); 84 | } 85 | 86 | public function destroy(Property $property) 87 | { 88 | if ($property->user_id == auth()->user()->id) { 89 | if ($property->delete()) { 90 | return ['data' => true, 'msg' => 'Record deleted!']; 91 | } else { 92 | return ['data' => false, 'msg' => 'Failed! Something went wrong.']; 93 | } 94 | } else { 95 | return ['data' => false, 'msg' => 'Failed! Something went wrong.']; 96 | } 97 | } 98 | 99 | protected function propertyValidate($req, $merge = []) 100 | { 101 | return $req->validate(array_merge([ 102 | 'name' => 'required|min:3', 103 | 'address' => 'required|min:3', 104 | 'price' => 'required|integer', 105 | 'negotiable' => 'boolean|sometimes', 106 | 'bed' => 'required|integer', 107 | 'bath' => 'required|integer', 108 | 'area' => 'required|integer', 109 | 'description' => 'required|min:5', 110 | 'img' => 'required|image|max:5000', 111 | 'agent' => 'required|min:3', 112 | 'telephone' => 'required|min:10', 113 | 'email' => 'required|email', 114 | ], $merge)); 115 | } 116 | protected function propertySave($request, $property) 117 | { 118 | $property->name = $request->name; 119 | $property->address = $request->address; 120 | $property->price = $request->price; 121 | $property->negotiable = $request->negotiable ? 1 : 0; 122 | $property->bed = $request->bed; 123 | $property->bath = $request->bath; 124 | $property->area = $request->area; 125 | $property->description = $request->description; 126 | $property->agent = $request->agent; 127 | $property->telephone = $request->telephone; 128 | $property->email = $request->email; 129 | $property->user_id = auth()->user()->id; 130 | 131 | if ($request->hasFile('img')) { 132 | $fileName = $request->file('img')->getClientOriginalName(); 133 | $actualFileName = pathinfo($fileName, PATHINFO_FILENAME); 134 | $fileExtension = pathinfo($fileName, PATHINFO_EXTENSION); 135 | $fileNameToStore = $actualFileName . time() . '.' . $fileExtension; 136 | $path = $request->file('img')->storeAs('public/properties', $fileNameToStore); 137 | 138 | if ($property->img_url) { 139 | Storage::delete('public/properties/' . basename($property->img_url)); 140 | } 141 | $property->img_url = 'storage/properties/' . $fileNameToStore; 142 | } 143 | if ($property->save()) { 144 | return true; 145 | } else { 146 | return false; 147 | } 148 | } 149 | } 150 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 32 | \App\Http\Middleware\EncryptCookies::class, 33 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 34 | \Illuminate\Session\Middleware\StartSession::class, 35 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 36 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 37 | \App\Http\Middleware\VerifyCsrfToken::class, 38 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 39 | \RealRashid\SweetAlert\ToSweetAlert::class, 40 | ], 41 | 42 | 'api' => [ 43 | 'throttle:60,1', 44 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 45 | ], 46 | ]; 47 | 48 | /** 49 | * The application's route middleware. 50 | * 51 | * These middleware may be assigned to groups or used individually. 52 | * 53 | * @var array 54 | */ 55 | protected $routeMiddleware = [ 56 | 'auth' => \App\Http\Middleware\Authenticate::class, 57 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 58 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 59 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 60 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 61 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 62 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 63 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 64 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 65 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 66 | ]; 67 | } 68 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/CheckForMaintenanceMode.php: -------------------------------------------------------------------------------- 1 | check()) { 22 | return redirect(RouteServiceProvider::HOME); 23 | } 24 | 25 | return $next($request); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | user(); 13 | $userTypes = UserType::all(); 14 | $userType = UserType::find($user->userInfo->user_type); 15 | $view->with(['user' => $user, 'userType' => $userType, 'userTypes' => $userTypes]); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Property.php: -------------------------------------------------------------------------------- 1 | id}-" . Str::slug($this->name)); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /app/PropertyApplication.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | parent::boot(); 31 | 32 | // 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 46 | 47 | $this->mapWebRoutes(); 48 | 49 | // 50 | } 51 | 52 | /** 53 | * Define the "web" routes for the application. 54 | * 55 | * These routes all receive session state, CSRF protection, etc. 56 | * 57 | * @return void 58 | */ 59 | protected function mapWebRoutes() 60 | { 61 | Route::middleware('web') 62 | ->namespace($this->namespace) 63 | ->group(base_path('routes/web.php')); 64 | } 65 | 66 | /** 67 | * Define the "api" routes for the application. 68 | * 69 | * These routes are typically stateless. 70 | * 71 | * @return void 72 | */ 73 | protected function mapApiRoutes() 74 | { 75 | Route::prefix('api') 76 | ->middleware('api') 77 | ->namespace($this->namespace) 78 | ->group(base_path('routes/api.php')); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /app/Providers/TelescopeServiceProvider.php: -------------------------------------------------------------------------------- 1 | hideSensitiveRequestDetails(); 22 | 23 | Telescope::filter(function (IncomingEntry $entry) { 24 | if ($this->app->environment('local')) { 25 | return true; 26 | } 27 | 28 | return $entry->isReportableException() || 29 | $entry->isFailedRequest() || 30 | $entry->isFailedJob() || 31 | $entry->isScheduledTask() || 32 | $entry->hasMonitoredTag(); 33 | }); 34 | } 35 | 36 | /** 37 | * Prevent sensitive request details from being logged by Telescope. 38 | * 39 | * @return void 40 | */ 41 | protected function hideSensitiveRequestDetails() 42 | { 43 | if ($this->app->environment('local')) { 44 | return; 45 | } 46 | 47 | Telescope::hideRequestParameters(['_token']); 48 | 49 | Telescope::hideRequestHeaders([ 50 | 'cookie', 51 | 'x-csrf-token', 52 | 'x-xsrf-token', 53 | ]); 54 | } 55 | 56 | /** 57 | * Register the Telescope gate. 58 | * 59 | * This gate determines who can access Telescope in non-local environments. 60 | * 61 | * @return void 62 | */ 63 | protected function gate() 64 | { 65 | Gate::define('viewTelescope', function ($user) { 66 | return in_array($user->email, [ 67 | // 68 | ]); 69 | }); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | 'datetime', 39 | ]; 40 | 41 | public function userInfo() 42 | { 43 | return $this->hasOne('App\UserInfo'); 44 | } 45 | public function userType() 46 | { 47 | return $this->hasOne('App\UserType'); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /app/UserInfo.php: -------------------------------------------------------------------------------- 1 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "type": "project", 4 | "description": "The Laravel Framework.", 5 | "keywords": [ 6 | "framework", 7 | "laravel" 8 | ], 9 | "license": "MIT", 10 | "require": { 11 | "php": "^7.2.5", 12 | "fideloper/proxy": "^4.2", 13 | "fruitcake/laravel-cors": "^1.0", 14 | "guzzlehttp/guzzle": "^6.3", 15 | "laravel/framework": "^7.0", 16 | "laravel/tinker": "^2.0", 17 | "laravel/ui": "^2.0", 18 | "realrashid/sweet-alert": "^3.1", 19 | "yajra/laravel-datatables-oracle": "^9.10" 20 | }, 21 | "require-dev": { 22 | "facade/ignition": "^2.0", 23 | "fzaninotto/faker": "^1.9.1", 24 | "laravel/telescope": "^3.5", 25 | "mockery/mockery": "^1.3.1", 26 | "nunomaduro/collision": "^4.1", 27 | "phpunit/phpunit": "^8.5" 28 | }, 29 | "config": { 30 | "optimize-autoloader": true, 31 | "preferred-install": "dist", 32 | "sort-packages": true 33 | }, 34 | "extra": { 35 | "laravel": { 36 | "dont-discover": [] 37 | } 38 | }, 39 | "autoload": { 40 | "psr-4": { 41 | "App\\": "app/" 42 | }, 43 | "classmap": [ 44 | "database/seeds", 45 | "database/factories" 46 | ] 47 | }, 48 | "autoload-dev": { 49 | "psr-4": { 50 | "Tests\\": "tests/" 51 | } 52 | }, 53 | "minimum-stability": "dev", 54 | "prefer-stable": true, 55 | "scripts": { 56 | "post-autoload-dump": [ 57 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 58 | "@php artisan package:discover --ansi" 59 | ], 60 | "post-root-package-install": [ 61 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 62 | ], 63 | "post-create-project-cmd": [ 64 | "@php artisan key:generate --ansi" 65 | ] 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session", "token" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | 44 | 'api' => [ 45 | 'driver' => 'token', 46 | 'provider' => 'users', 47 | 'hash' => false, 48 | ], 49 | ], 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | User Providers 54 | |-------------------------------------------------------------------------- 55 | | 56 | | All authentication drivers have a user provider. This defines how the 57 | | users are actually retrieved out of your database or other storage 58 | | mechanisms used by this application to persist your user's data. 59 | | 60 | | If you have multiple user tables or models you may configure multiple 61 | | sources which represent each model / table. These sources may then 62 | | be assigned to any extra authentication guards you have defined. 63 | | 64 | | Supported: "database", "eloquent" 65 | | 66 | */ 67 | 68 | 'providers' => [ 69 | 'users' => [ 70 | 'driver' => 'eloquent', 71 | 'model' => App\User::class, 72 | ], 73 | 74 | // 'users' => [ 75 | // 'driver' => 'database', 76 | // 'table' => 'users', 77 | // ], 78 | ], 79 | 80 | /* 81 | |-------------------------------------------------------------------------- 82 | | Resetting Passwords 83 | |-------------------------------------------------------------------------- 84 | | 85 | | You may specify multiple password reset configurations if you have more 86 | | than one user table or model in the application and you want to have 87 | | separate password reset settings based on the specific user types. 88 | | 89 | | The expire time is the number of minutes that the reset token should be 90 | | considered valid. This security feature keeps tokens short-lived so 91 | | they have less time to be guessed. You may change this as needed. 92 | | 93 | */ 94 | 95 | 'passwords' => [ 96 | 'users' => [ 97 | 'provider' => 'users', 98 | 'table' => 'password_resets', 99 | 'expire' => 60, 100 | 'throttle' => 60, 101 | ], 102 | ], 103 | 104 | /* 105 | |-------------------------------------------------------------------------- 106 | | Password Confirmation Timeout 107 | |-------------------------------------------------------------------------- 108 | | 109 | | Here you may define the amount of seconds before a password confirmation 110 | | times out and the user is prompted to re-enter their password via the 111 | | confirmation screen. By default, the timeout lasts for three hours. 112 | | 113 | */ 114 | 115 | 'password_timeout' => 10800, 116 | 117 | ]; 118 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'useTLS' => true, 41 | ], 42 | ], 43 | 44 | 'redis' => [ 45 | 'driver' => 'redis', 46 | 'connection' => 'default', 47 | ], 48 | 49 | 'log' => [ 50 | 'driver' => 'log', 51 | ], 52 | 53 | 'null' => [ 54 | 'driver' => 'null', 55 | ], 56 | 57 | ], 58 | 59 | ]; 60 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Cache Stores 26 | |-------------------------------------------------------------------------- 27 | | 28 | | Here you may define all of the cache "stores" for your application as 29 | | well as their drivers. You may even define multiple stores for the 30 | | same cache driver to group types of items stored in your caches. 31 | | 32 | */ 33 | 34 | 'stores' => [ 35 | 36 | 'apc' => [ 37 | 'driver' => 'apc', 38 | ], 39 | 40 | 'array' => [ 41 | 'driver' => 'array', 42 | 'serialize' => false, 43 | ], 44 | 45 | 'database' => [ 46 | 'driver' => 'database', 47 | 'table' => 'cache', 48 | 'connection' => null, 49 | ], 50 | 51 | 'file' => [ 52 | 'driver' => 'file', 53 | 'path' => storage_path('framework/cache/data'), 54 | ], 55 | 56 | 'memcached' => [ 57 | 'driver' => 'memcached', 58 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 59 | 'sasl' => [ 60 | env('MEMCACHED_USERNAME'), 61 | env('MEMCACHED_PASSWORD'), 62 | ], 63 | 'options' => [ 64 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 65 | ], 66 | 'servers' => [ 67 | [ 68 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 69 | 'port' => env('MEMCACHED_PORT', 11211), 70 | 'weight' => 100, 71 | ], 72 | ], 73 | ], 74 | 75 | 'redis' => [ 76 | 'driver' => 'redis', 77 | 'connection' => 'cache', 78 | ], 79 | 80 | 'dynamodb' => [ 81 | 'driver' => 'dynamodb', 82 | 'key' => env('AWS_ACCESS_KEY_ID'), 83 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 84 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 85 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 86 | 'endpoint' => env('DYNAMODB_ENDPOINT'), 87 | ], 88 | 89 | ], 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Cache Key Prefix 94 | |-------------------------------------------------------------------------- 95 | | 96 | | When utilizing a RAM based store such as APC or Memcached, there might 97 | | be other applications utilizing the same cache. So, we'll specify a 98 | | value to get prefixed to all our keys so we can avoid collisions. 99 | | 100 | */ 101 | 102 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), 103 | 104 | ]; 105 | -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | env('DB_CONNECTION', 'mysql'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Database Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here are each of the database connections setup for your application. 26 | | Of course, examples of configuring each database platform that is 27 | | supported by Laravel is shown below to make development simple. 28 | | 29 | | 30 | | All database work in Laravel is done through the PHP PDO facilities 31 | | so make sure you have the driver for your particular database of 32 | | choice installed on your machine before you begin development. 33 | | 34 | */ 35 | 36 | 'connections' => [ 37 | 38 | 'sqlite' => [ 39 | 'driver' => 'sqlite', 40 | 'url' => env('DATABASE_URL'), 41 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 42 | 'prefix' => '', 43 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 44 | ], 45 | 46 | 'mysql' => [ 47 | 'driver' => 'mysql', 48 | 'url' => env('DATABASE_URL'), 49 | 'host' => env('DB_HOST', '127.0.0.1'), 50 | 'port' => env('DB_PORT', '3306'), 51 | 'database' => env('DB_DATABASE', 'forge'), 52 | 'username' => env('DB_USERNAME', 'forge'), 53 | 'password' => env('DB_PASSWORD', ''), 54 | 'unix_socket' => env('DB_SOCKET', ''), 55 | 'charset' => 'utf8mb4', 56 | 'collation' => 'utf8mb4_unicode_ci', 57 | 'prefix' => '', 58 | 'prefix_indexes' => true, 59 | 'strict' => true, 60 | 'engine' => null, 61 | 'options' => extension_loaded('pdo_mysql') ? array_filter([ 62 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), 63 | ]) : [], 64 | ], 65 | 66 | 'pgsql' => [ 67 | 'driver' => 'pgsql', 68 | 'url' => env('DATABASE_URL'), 69 | 'host' => env('DB_HOST', '127.0.0.1'), 70 | 'port' => env('DB_PORT', '5432'), 71 | 'database' => env('DB_DATABASE', 'forge'), 72 | 'username' => env('DB_USERNAME', 'forge'), 73 | 'password' => env('DB_PASSWORD', ''), 74 | 'charset' => 'utf8', 75 | 'prefix' => '', 76 | 'prefix_indexes' => true, 77 | 'schema' => 'public', 78 | 'sslmode' => 'prefer', 79 | ], 80 | 81 | 'sqlsrv' => [ 82 | 'driver' => 'sqlsrv', 83 | 'url' => env('DATABASE_URL'), 84 | 'host' => env('DB_HOST', 'localhost'), 85 | 'port' => env('DB_PORT', '1433'), 86 | 'database' => env('DB_DATABASE', 'forge'), 87 | 'username' => env('DB_USERNAME', 'forge'), 88 | 'password' => env('DB_PASSWORD', ''), 89 | 'charset' => 'utf8', 90 | 'prefix' => '', 91 | 'prefix_indexes' => true, 92 | ], 93 | 94 | ], 95 | 96 | /* 97 | |-------------------------------------------------------------------------- 98 | | Migration Repository Table 99 | |-------------------------------------------------------------------------- 100 | | 101 | | This table keeps track of all the migrations that have already run for 102 | | your application. Using this information, we can determine which of 103 | | the migrations on disk haven't actually been run in the database. 104 | | 105 | */ 106 | 107 | 'migrations' => 'migrations', 108 | 109 | /* 110 | |-------------------------------------------------------------------------- 111 | | Redis Databases 112 | |-------------------------------------------------------------------------- 113 | | 114 | | Redis is an open source, fast, and advanced key-value store that also 115 | | provides a richer body of commands than a typical key-value system 116 | | such as APC or Memcached. Laravel makes it easy to dig right in. 117 | | 118 | */ 119 | 120 | 'redis' => [ 121 | 122 | 'client' => env('REDIS_CLIENT', 'phpredis'), 123 | 124 | 'options' => [ 125 | 'cluster' => env('REDIS_CLUSTER', 'redis'), 126 | 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), 127 | ], 128 | 129 | 'default' => [ 130 | 'url' => env('REDIS_URL'), 131 | 'host' => env('REDIS_HOST', '127.0.0.1'), 132 | 'password' => env('REDIS_PASSWORD', null), 133 | 'port' => env('REDIS_PORT', '6379'), 134 | 'database' => env('REDIS_DB', '0'), 135 | ], 136 | 137 | 'cache' => [ 138 | 'url' => env('REDIS_URL'), 139 | 'host' => env('REDIS_HOST', '127.0.0.1'), 140 | 'password' => env('REDIS_PASSWORD', null), 141 | 'port' => env('REDIS_PORT', '6379'), 142 | 'database' => env('REDIS_CACHE_DB', '1'), 143 | ], 144 | 145 | ], 146 | 147 | ]; 148 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Cloud Filesystem Disk 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Many applications store files both locally and in the cloud. For this 24 | | reason, you may specify a default "cloud" driver here. This driver 25 | | will be bound as the Cloud disk implementation in the container. 26 | | 27 | */ 28 | 29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Filesystem Disks 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may configure as many filesystem "disks" as you wish, and you 37 | | may even configure multiple disks of the same driver. Defaults have 38 | | been setup for each driver as an example of the required options. 39 | | 40 | | Supported Drivers: "local", "ftp", "sftp", "s3" 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path('app'), 49 | ], 50 | 51 | 'public' => [ 52 | 'driver' => 'local', 53 | 'root' => storage_path('app/public'), 54 | 'url' => env('APP_URL').'/storage', 55 | 'visibility' => 'public', 56 | ], 57 | 58 | 's3' => [ 59 | 'driver' => 's3', 60 | 'key' => env('AWS_ACCESS_KEY_ID'), 61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 62 | 'region' => env('AWS_DEFAULT_REGION'), 63 | 'bucket' => env('AWS_BUCKET'), 64 | 'url' => env('AWS_URL'), 65 | 'endpoint' => env('AWS_ENDPOINT'), 66 | ], 67 | 68 | ], 69 | 70 | /* 71 | |-------------------------------------------------------------------------- 72 | | Symbolic Links 73 | |-------------------------------------------------------------------------- 74 | | 75 | | Here you may configure the symbolic links that will be created when the 76 | | `storage:link` Artisan command is executed. The array keys should be 77 | | the locations of the links and the values should be their targets. 78 | | 79 | */ 80 | 81 | 'links' => [ 82 | public_path('storage') => storage_path('app/public'), 83 | ], 84 | 85 | ]; 86 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Log Channels 25 | |-------------------------------------------------------------------------- 26 | | 27 | | Here you may configure the log channels for your application. Out of 28 | | the box, Laravel uses the Monolog PHP logging library. This gives 29 | | you a variety of powerful log handlers / formatters to utilize. 30 | | 31 | | Available Drivers: "single", "daily", "slack", "syslog", 32 | | "errorlog", "monolog", 33 | | "custom", "stack" 34 | | 35 | */ 36 | 37 | 'channels' => [ 38 | 'stack' => [ 39 | 'driver' => 'stack', 40 | 'channels' => ['single'], 41 | 'ignore_exceptions' => false, 42 | ], 43 | 44 | 'single' => [ 45 | 'driver' => 'single', 46 | 'path' => storage_path('logs/laravel.log'), 47 | 'level' => 'debug', 48 | ], 49 | 50 | 'daily' => [ 51 | 'driver' => 'daily', 52 | 'path' => storage_path('logs/laravel.log'), 53 | 'level' => 'debug', 54 | 'days' => 14, 55 | ], 56 | 57 | 'slack' => [ 58 | 'driver' => 'slack', 59 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 60 | 'username' => 'Laravel Log', 61 | 'emoji' => ':boom:', 62 | 'level' => 'critical', 63 | ], 64 | 65 | 'papertrail' => [ 66 | 'driver' => 'monolog', 67 | 'level' => 'debug', 68 | 'handler' => SyslogUdpHandler::class, 69 | 'handler_with' => [ 70 | 'host' => env('PAPERTRAIL_URL'), 71 | 'port' => env('PAPERTRAIL_PORT'), 72 | ], 73 | ], 74 | 75 | 'stderr' => [ 76 | 'driver' => 'monolog', 77 | 'handler' => StreamHandler::class, 78 | 'formatter' => env('LOG_STDERR_FORMATTER'), 79 | 'with' => [ 80 | 'stream' => 'php://stderr', 81 | ], 82 | ], 83 | 84 | 'syslog' => [ 85 | 'driver' => 'syslog', 86 | 'level' => 'debug', 87 | ], 88 | 89 | 'errorlog' => [ 90 | 'driver' => 'errorlog', 91 | 'level' => 'debug', 92 | ], 93 | 94 | 'null' => [ 95 | 'driver' => 'monolog', 96 | 'handler' => NullHandler::class, 97 | ], 98 | 99 | 'emergency' => [ 100 | 'path' => storage_path('logs/laravel.log'), 101 | ], 102 | ], 103 | 104 | ]; 105 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_MAILER', 'smtp'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Mailer Configurations 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure all of the mailers used by your application plus 24 | | their respective settings. Several examples have been configured for 25 | | you and you are free to add your own as your application requires. 26 | | 27 | | Laravel supports a variety of mail "transport" drivers to be used while 28 | | sending an e-mail. You will specify which one you are using for your 29 | | mailers below. You are free to add additional mailers as required. 30 | | 31 | | Supported: "smtp", "sendmail", "mailgun", "ses", 32 | | "postmark", "log", "array" 33 | | 34 | */ 35 | 36 | 'mailers' => [ 37 | 'smtp' => [ 38 | 'transport' => 'smtp', 39 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 40 | 'port' => env('MAIL_PORT', 587), 41 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 42 | 'username' => env('MAIL_USERNAME'), 43 | 'password' => env('MAIL_PASSWORD'), 44 | 'timeout' => null, 45 | 'auth_mode' => null, 46 | ], 47 | 48 | 'ses' => [ 49 | 'transport' => 'ses', 50 | ], 51 | 52 | 'mailgun' => [ 53 | 'transport' => 'mailgun', 54 | ], 55 | 56 | 'postmark' => [ 57 | 'transport' => 'postmark', 58 | ], 59 | 60 | 'sendmail' => [ 61 | 'transport' => 'sendmail', 62 | 'path' => '/usr/sbin/sendmail -bs', 63 | ], 64 | 65 | 'log' => [ 66 | 'transport' => 'log', 67 | 'channel' => env('MAIL_LOG_CHANNEL'), 68 | ], 69 | 70 | 'array' => [ 71 | 'transport' => 'array', 72 | ], 73 | ], 74 | 75 | /* 76 | |-------------------------------------------------------------------------- 77 | | Global "From" Address 78 | |-------------------------------------------------------------------------- 79 | | 80 | | You may wish for all e-mails sent by your application to be sent from 81 | | the same address. Here, you may specify a name and address that is 82 | | used globally for all e-mails that are sent by your application. 83 | | 84 | */ 85 | 86 | 'from' => [ 87 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 88 | 'name' => env('MAIL_FROM_NAME', 'Example'), 89 | ], 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Markdown Mail Settings 94 | |-------------------------------------------------------------------------- 95 | | 96 | | If you are using Markdown based email rendering, you may configure your 97 | | theme and component paths here, allowing you to customize the design 98 | | of the emails. Or, you may simply stick with the Laravel defaults! 99 | | 100 | */ 101 | 102 | 'markdown' => [ 103 | 'theme' => 'default', 104 | 105 | 'paths' => [ 106 | resource_path('views/vendor/mail'), 107 | ], 108 | ], 109 | 110 | ]; 111 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | 'block_for' => 0, 50 | ], 51 | 52 | 'sqs' => [ 53 | 'driver' => 'sqs', 54 | 'key' => env('AWS_ACCESS_KEY_ID'), 55 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 56 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 57 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), 58 | 'suffix' => env('SQS_SUFFIX'), 59 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 60 | ], 61 | 62 | 'redis' => [ 63 | 'driver' => 'redis', 64 | 'connection' => 'default', 65 | 'queue' => env('REDIS_QUEUE', 'default'), 66 | 'retry_after' => 90, 67 | 'block_for' => null, 68 | ], 69 | 70 | ], 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | Failed Queue Jobs 75 | |-------------------------------------------------------------------------- 76 | | 77 | | These options configure the behavior of failed queue job logging so you 78 | | can control which database and table are used to store the jobs that 79 | | have failed. You may change them to any database / table you wish. 80 | | 81 | */ 82 | 83 | 'failed' => [ 84 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database'), 85 | 'database' => env('DB_CONNECTION', 'mysql'), 86 | 'table' => 'failed_jobs', 87 | ], 88 | 89 | ]; 90 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'postmark' => [ 24 | 'token' => env('POSTMARK_TOKEN'), 25 | ], 26 | 27 | 'ses' => [ 28 | 'key' => env('AWS_ACCESS_KEY_ID'), 29 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 30 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 31 | ], 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | *.sqlite-journal 3 | -------------------------------------------------------------------------------- /database/factories/PropertyFactory.php: -------------------------------------------------------------------------------- 1 | define(Property::class, function (Faker $faker) { 10 | return [ 11 | 'name' => $faker->company(), 12 | 'price' => $faker->biasedNumberBetween(50000, 2000000), 13 | 'negotiable' => 1, 14 | 'address' => $faker->address, 15 | 'description' => $faker->paragraph(), 16 | 'bed' => $faker->biasedNumberBetween(0, 4), 17 | 'bath' => $faker->biasedNumberBetween(0, 4), 18 | 'area' => $faker->biasedNumberBetween(200, 2300), 19 | 'agent' => $faker->name('male'), 20 | 'telephone' => $faker->phoneNumber, 21 | 'email' => $faker->email, 22 | 'img_url' => 'img/realestate1.jpeg', 23 | 'user_id' => factory(User::class)->create(), 24 | 'onSale' => $faker->boolean() 25 | ]; 26 | }); 27 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | define(User::class, function (Faker $faker) { 21 | return [ 22 | 'name' => $faker->name, 23 | 'email' => $faker->unique()->safeEmail, 24 | 'email_verified_at' => now(), 25 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 26 | 'remember_token' => Str::random(10), 27 | ]; 28 | }); 29 | -------------------------------------------------------------------------------- /database/factories/UserInfoFactory.php: -------------------------------------------------------------------------------- 1 | define(UserInfo::class, function (Faker $faker) { 9 | return [ 10 | 'user_id' => factory(App\User::class)->create(), 11 | 'profile_img' => 'img/changeprofile.png', 12 | 'fullname' => $faker->name(), 13 | 'user_type' => 1, 14 | 'location' => $faker->address(), 15 | 'job_title' => $faker->word() 16 | ]; 17 | }); 18 | -------------------------------------------------------------------------------- /database/factories/UserTypeFactory.php: -------------------------------------------------------------------------------- 1 | define(UserType::class, function (Faker $faker) { 9 | return [ 10 | 'user_type' => '', 11 | 'status' => 1 12 | ]; 13 | }); 14 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->timestamp('email_verified_at')->nullable(); 21 | $table->string('password'); 22 | $table->rememberToken(); 23 | $table->boolean('abandoned')->default(false); 24 | $table->timestamps(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::dropIfExists('users'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->text('connection'); 19 | $table->text('queue'); 20 | $table->longText('payload'); 21 | $table->longText('exception'); 22 | $table->timestamp('failed_at')->useCurrent(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('failed_jobs'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2020_07_18_081225_create_properties_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('name'); 19 | $table->unsignedBigInteger('price'); 20 | $table->boolean('negotiable'); 21 | $table->string('address'); 22 | $table->text('description'); 23 | $table->unsignedMediumInteger('bed'); 24 | $table->string('img_url'); 25 | $table->unsignedMediumInteger('bath'); 26 | $table->unsignedBigInteger('area'); 27 | $table->string('telephone'); 28 | $table->string('email'); 29 | $table->string('agent')->nullable(); 30 | $table->unsignedBigInteger('user_id'); 31 | $table->boolean('onSale')->default(1); 32 | $table->timestamps(); 33 | }); 34 | } 35 | 36 | /** 37 | * Reverse the migrations. 38 | * 39 | * @return void 40 | */ 41 | public function down() 42 | { 43 | Schema::dropIfExists('properties'); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /database/migrations/2020_07_22_144646_create_user_infos_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->unsignedBigInteger('user_id'); 19 | $table->text('profile_img'); 20 | $table->string('fullname'); 21 | $table->integer('user_type')->default(1); 22 | $table->string('location'); 23 | $table->boolean('rental_inquiries')->default(0); 24 | $table->string('job_title')->nullable(); 25 | $table->timestamps(); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('user-infos'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /database/migrations/2020_07_22_151056_create_user_types_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('user_type'); 19 | $table->boolean('status')->default(1); 20 | $table->timestamps(); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | * 27 | * @return void 28 | */ 29 | public function down() 30 | { 31 | Schema::dropIfExists('user_types'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2020_09_23_040714_create_property_applications_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->unsignedBigInteger('property_id'); 19 | $table->string('name'); 20 | $table->string('email'); 21 | $table->string('telephone'); 22 | $table->text('message'); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('property_applications'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UserTypeSeeder::class); 16 | $this->call(PropertySeeder::class); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /database/seeds/PropertySeeder.php: -------------------------------------------------------------------------------- 1 | create(['img_url' => 'img/property/' . $i . '.jpg']); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /database/seeds/UserTypeSeeder.php: -------------------------------------------------------------------------------- 1 | create(['user_type' => $type]); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "npm run development -- --watch", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.21", 14 | "bootstrap": "^4.5.2", 15 | "cross-env": "^7.0", 16 | "jquery": "^3.2", 17 | "laravel-mix": "^5.0.5", 18 | "lodash": "^4.17.20", 19 | "popper.js": "^1.12", 20 | "resolve-url-loader": "^2.3.1", 21 | "sass": "^1.26.10", 22 | "sass-loader": "^8.0.0", 23 | "vue": "^2.6.12", 24 | "vue-template-compiler": "^2.6.12" 25 | }, 26 | "dependencies": { 27 | "chart.js": "^2.9.3", 28 | "sweetalert2": "^9.17.2" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | ./tests/Unit 10 | 11 | 12 | ./tests/Feature 13 | 14 | 15 | 16 | 17 | ./app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /public/css/cookie.css: -------------------------------------------------------------------------------- 1 | .grt-cookie { 2 | display: none; 3 | position: fixed; 4 | bottom: 0; 5 | left: 0; 6 | right: 0; 7 | padding: 20px; 8 | background: #fff; 9 | color: #333; 10 | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); 11 | z-index: 9999; 12 | } 13 | 14 | .grt-cookie-active { 15 | display: flex; 16 | justify-content: space-between; 17 | align-items: flex-start; 18 | flex-direction: row; 19 | } 20 | 21 | .grt-cookie p { 22 | font-size: 14px; 23 | margin: 0; 24 | padding: 0; 25 | line-height: 1.35; 26 | color: #333; 27 | font-weight: normal; 28 | } 29 | 30 | .grt-cookie p a { 31 | color: #333; 32 | text-decoration: underline; 33 | font-size: 14px; 34 | margin: 0; 35 | padding: 0; 36 | } 37 | 38 | .grt-cookie-button { 39 | display: inline-block; 40 | cursor: pointer; 41 | font-weight: normal; 42 | font-size: 14px; 43 | padding: 3px 18px; 44 | margin-left: 12px; 45 | background: #333; 46 | color: #fff; 47 | text-transform: capitalize; 48 | white-space: nowrap; 49 | } 50 | 51 | @media (max-width: 767px) { 52 | .grt-cookie { 53 | flex-direction: column; 54 | padding: 15px; 55 | } 56 | 57 | .grt-cookie p, 58 | .grt-cookie p a { 59 | font-size: 13px; 60 | } 61 | 62 | .grt-cookie-button { 63 | font-size: 13px; 64 | padding: 3px 14px; 65 | margin: 8px 0 0 0; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/favicon.ico -------------------------------------------------------------------------------- /public/img/Nike.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/Nike.png -------------------------------------------------------------------------------- /public/img/NoResult.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/img/PayPal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/PayPal.png -------------------------------------------------------------------------------- /public/img/React.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/React.png -------------------------------------------------------------------------------- /public/img/Segment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/Segment.png -------------------------------------------------------------------------------- /public/img/appstoredownload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/appstoredownload.png -------------------------------------------------------------------------------- /public/img/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/background.jpg -------------------------------------------------------------------------------- /public/img/camera.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/camera.jpg -------------------------------------------------------------------------------- /public/img/changeprofile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/changeprofile.png -------------------------------------------------------------------------------- /public/img/download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/download.png -------------------------------------------------------------------------------- /public/img/hero.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/hero.jpg -------------------------------------------------------------------------------- /public/img/hero2 (2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/hero2 (2).jpg -------------------------------------------------------------------------------- /public/img/hero2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/hero2.jpg -------------------------------------------------------------------------------- /public/img/hopper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/hopper.png -------------------------------------------------------------------------------- /public/img/image1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/image1.jpg -------------------------------------------------------------------------------- /public/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/logo.png -------------------------------------------------------------------------------- /public/img/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/logo2.png -------------------------------------------------------------------------------- /public/img/macOS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/macOS.png -------------------------------------------------------------------------------- /public/img/natural.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/natural.png -------------------------------------------------------------------------------- /public/img/playstoredownload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/playstoredownload.png -------------------------------------------------------------------------------- /public/img/property/.picasa.ini: -------------------------------------------------------------------------------- 1 | [13.jpg] 2 | backuphash=56085 3 | crop=rect64(eefff5bf47a) 4 | filters=crop64=1,eefff5bf47a; 5 | [12.jpg] 6 | backuphash=13437 7 | crop=rect64(1480eeffd70f40d) 8 | filters=crop64=1,1480eeffd70f40d; 9 | [15.jpg] 10 | backuphash=146 11 | crop=rect64(28f0aabfc7af47a) 12 | filters=crop64=1,28f0aabfc7af47a; 13 | [20.jpg] 14 | backuphash=31569 15 | crop=rect64(16660aabff5bd62f) 16 | filters=crop64=1,16660aabff5bd62f; 17 | [18.jpg] 18 | backuphash=21397 19 | crop=rect64(19a0aabff5bdddd) 20 | filters=crop64=1,19a0aabff5bdddd; 21 | [19.jpg] 22 | backuphash=17622 23 | crop=rect64(47b0aabfe13f47a) 24 | filters=crop64=1,47b0aabfe13f47a; 25 | [17.jpg] 26 | backuphash=48532 27 | crop=rect64(19a0aabfb32f47a) 28 | filters=crop64=1,19a0aabfb32f47a; 29 | [14.jpg] 30 | backuphash=3570 31 | crop=rect64(aabf9ebf47a) 32 | filters=crop64=1,aabf9ebf47a; 33 | -------------------------------------------------------------------------------- /public/img/property/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/1.jpg -------------------------------------------------------------------------------- /public/img/property/10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/10.jpg -------------------------------------------------------------------------------- /public/img/property/11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/11.jpg -------------------------------------------------------------------------------- /public/img/property/12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/12.jpg -------------------------------------------------------------------------------- /public/img/property/13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/13.jpg -------------------------------------------------------------------------------- /public/img/property/14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/14.jpg -------------------------------------------------------------------------------- /public/img/property/15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/15.jpg -------------------------------------------------------------------------------- /public/img/property/16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/16.jpg -------------------------------------------------------------------------------- /public/img/property/17.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/17.jpg -------------------------------------------------------------------------------- /public/img/property/18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/18.jpg -------------------------------------------------------------------------------- /public/img/property/19.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/19.jpg -------------------------------------------------------------------------------- /public/img/property/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/2.jpg -------------------------------------------------------------------------------- /public/img/property/20.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/20.jpg -------------------------------------------------------------------------------- /public/img/property/21.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/21.jpg -------------------------------------------------------------------------------- /public/img/property/22.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/22.jpg -------------------------------------------------------------------------------- /public/img/property/23.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/23.jpg -------------------------------------------------------------------------------- /public/img/property/24.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/24.jpg -------------------------------------------------------------------------------- /public/img/property/25.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/25.jpg -------------------------------------------------------------------------------- /public/img/property/26.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/26.jpg -------------------------------------------------------------------------------- /public/img/property/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/3.jpg -------------------------------------------------------------------------------- /public/img/property/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/4.jpg -------------------------------------------------------------------------------- /public/img/property/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/5.jpg -------------------------------------------------------------------------------- /public/img/property/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/6.jpg -------------------------------------------------------------------------------- /public/img/property/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/7.jpg -------------------------------------------------------------------------------- /public/img/property/8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/8.jpg -------------------------------------------------------------------------------- /public/img/property/9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/property/9.jpg -------------------------------------------------------------------------------- /public/img/realestate1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/realestate1.jpeg -------------------------------------------------------------------------------- /public/img/realestate2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/realestate2.jpg -------------------------------------------------------------------------------- /public/img/realestate3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/realestate3.jpeg -------------------------------------------------------------------------------- /public/img/realestate4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/realestate4.jpg -------------------------------------------------------------------------------- /public/img/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/refresh.png -------------------------------------------------------------------------------- /public/img/search-background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/search-background.jpg -------------------------------------------------------------------------------- /public/img/sendgrid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/sendgrid.png -------------------------------------------------------------------------------- /public/img/trello.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/trello.png -------------------------------------------------------------------------------- /public/img/vevo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/vevo.png -------------------------------------------------------------------------------- /public/img/windows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/windows.png -------------------------------------------------------------------------------- /public/img/zappos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/zappos.png -------------------------------------------------------------------------------- /public/img/zendesk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/img/zendesk.png -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | define('LARAVEL_START', microtime(true)); 11 | 12 | /* 13 | |-------------------------------------------------------------------------- 14 | | Register The Auto Loader 15 | |-------------------------------------------------------------------------- 16 | | 17 | | Composer provides a convenient, automatically generated class loader for 18 | | our application. We just need to utilize it! We'll simply require it 19 | | into the script here so that we don't have to worry about manual 20 | | loading any of our classes later on. It feels great to relax. 21 | | 22 | */ 23 | 24 | require __DIR__.'/../vendor/autoload.php'; 25 | 26 | /* 27 | |-------------------------------------------------------------------------- 28 | | Turn On The Lights 29 | |-------------------------------------------------------------------------- 30 | | 31 | | We need to illuminate PHP development, so let us turn on the lights. 32 | | This bootstraps the framework and gets it ready for use, then it 33 | | will load up this application so that we can run it and send 34 | | the responses back to the browser and delight our users. 35 | | 36 | */ 37 | 38 | $app = require_once __DIR__.'/../bootstrap/app.php'; 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Run The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once we have the application, we can handle the incoming request 46 | | through the kernel, and send the associated response back to 47 | | the client's browser allowing them to enjoy the creative 48 | | and wonderful application we have prepared for them. 49 | | 50 | */ 51 | 52 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); 53 | 54 | $response = $kernel->handle( 55 | $request = Illuminate\Http\Request::capture() 56 | ); 57 | 58 | $response->send(); 59 | 60 | $kernel->terminate($request, $response); 61 | -------------------------------------------------------------------------------- /public/js/cookie.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * GRT Cookie Consent - jQuery Plugin 3 | * Version: 1.0 4 | * Author: GRT107 5 | * 6 | * Copyright (c) 2020 GRT107 7 | * Released under the MIT license 8 | */ 9 | 10 | (function($) { 11 | $.fn.grtCookie = function(options) { 12 | // Default options 13 | var settings = $.extend( 14 | { 15 | textcolor: "#333", 16 | background: "#fff", 17 | buttonbackground: "#333", 18 | buttontextcolor: "#fff", 19 | duration: 365 20 | }, 21 | options 22 | ); 23 | 24 | // Check cookie 25 | if (!(document.cookie.indexOf("acceptgrt=0") > -1)) { 26 | // Text and Background color 27 | this.css({ 28 | color: settings.textcolor, 29 | background: settings.background 30 | }); 31 | 32 | // Button Colors 33 | $("span.grt-cookie-button").css({ 34 | background: settings.buttonbackground, 35 | color: settings.buttontextcolor 36 | }); 37 | 38 | // Show message and calculate date 39 | this.addClass("grt-cookie-active"); 40 | var d1 = new Date(); 41 | var days1 = settings.duration; 42 | d1.setTime(d1.getTime() + days1 * 24 * 60 * 60 * 1000); 43 | var expiredate = "expires=" + d1.toUTCString(); 44 | document.cookie = "acceptgrt=1;" + expiredate + ";path=/"; 45 | 46 | // On click accept button 47 | $(".grt-cookie-button").on("click", function() { 48 | $(this) 49 | .parent() 50 | .remove(); 51 | document.cookie = "acceptgrt=0;" + expiredate + ";path=/"; 52 | }); 53 | } else { 54 | this.remove(); 55 | } 56 | 57 | return this; 58 | }; 59 | })(jQuery); 60 | -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/app.js": "/js/app.js", 3 | "/css/app.css": "/css/app.css" 4 | } 5 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /public/vendor/telescope/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nishangupta/nepestate/eecc526b01b2ca8e4e3b2d73a9b863aed1afee40/public/vendor/telescope/favicon.ico -------------------------------------------------------------------------------- /public/vendor/telescope/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/app.js": "/app.js?id=b0a54caa17bc0ac7c25c", 3 | "/app.css": "/app.css?id=11fa83493c95c672325c", 4 | "/app-dark.css": "/app-dark.css?id=9f68f3c353c3417fd043" 5 | } 6 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | /** 2 | * First we will load all of this project's JavaScript dependencies which 3 | * includes Vue and other libraries. It is a great starting point when 4 | * building robust, powerful web applications using Vue and Laravel. 5 | */ 6 | 7 | require("./bootstrap"); 8 | window.swal = require("sweetalert2"); 9 | 10 | window.Vue = require("vue"); 11 | window.Chart = require("chart.js"); 12 | 13 | /** 14 | * The following block of code may be used to automatically register your 15 | * Vue components. It will recursively scan this directory for the Vue 16 | * components and automatically register them with their "basename". 17 | * 18 | * Eg. ./components/ExampleComponent.vue -> 19 | */ 20 | 21 | // const files = require.context('./', true, /\.vue$/i) 22 | // files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default)) 23 | 24 | Vue.component( 25 | "example-component", 26 | require("./components/ExampleComponent.vue").default 27 | ); 28 | 29 | /** 30 | * Next, we will create a fresh Vue application instance and attach it to 31 | * the page. Then, you may begin adding components to this application 32 | * or customize the JavaScript scaffolding to fit your unique needs. 33 | */ 34 | 35 | const app = new Vue({ 36 | el: "#app" 37 | }); 38 | 39 | //navbar for mobile 40 | $(document).ready(function() { 41 | $(".mb-nav-toggler").on("click", function() { 42 | toggleMobileNav(); 43 | }); 44 | function toggleMobileNav() { 45 | $(".mb-nav-list").toggleClass("active"); 46 | } 47 | }); 48 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | window._ = require("lodash"); 2 | 3 | /** 4 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support 5 | * for JavaScript based Bootstrap features such as modals and tabs. This 6 | * code may be modified to fit the specific needs of your application. 7 | */ 8 | 9 | try { 10 | window.Popper = require("popper.js").default; 11 | window.$ = window.jQuery = require("jquery"); 12 | 13 | require("bootstrap"); 14 | } catch (e) {} 15 | 16 | /** 17 | * We'll load the axios HTTP library which allows us to easily issue requests 18 | * to our Laravel back-end. This library automatically handles sending the 19 | * CSRF token as a header based on the value of the "XSRF" token cookie. 20 | */ 21 | 22 | window.axios = require("axios"); 23 | 24 | window.axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest"; 25 | 26 | /** 27 | * Echo exposes an expressive API for subscribing to channels and listening 28 | * for events that are broadcast by Laravel. Echo and event broadcasting 29 | * allows your team to easily build robust real-time web applications. 30 | */ 31 | 32 | // import Echo from 'laravel-echo'; 33 | 34 | // window.Pusher = require('pusher-js'); 35 | 36 | // window.Echo = new Echo({ 37 | // broadcaster: 'pusher', 38 | // key: process.env.MIX_PUSHER_APP_KEY, 39 | // cluster: process.env.MIX_PUSHER_APP_CLUSTER, 40 | // forceTLS: true 41 | // }); 42 | -------------------------------------------------------------------------------- /resources/js/components/ExampleComponent.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "Meta Title: user-profile": "User Profile", 3 | "Meta Title: rental-resume": "Rental Resume", 4 | "Meta Title: saved-homes": "Saved Homes" 5 | } 6 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Your password has been reset!', 17 | 'sent' => 'We have emailed your password reset link!', 18 | 'throttled' => 'Please wait before retrying.', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that email address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /resources/sass/_real-estate.scss: -------------------------------------------------------------------------------- 1 | //Nepestate custom styling 2 | 3 | @import "inc/roboto-font"; 4 | @import "inc/default"; 5 | @import "inc/navbar"; 6 | //for pages in views folder 7 | @import "pages/index-page"; 8 | @import "pages/property"; 9 | @import "pages/account"; 10 | 11 | @import "pages/login-page"; 12 | @import "inc/footer"; 13 | -------------------------------------------------------------------------------- /resources/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | // Body 2 | $body-bg: #fff; 3 | 4 | // Typography 5 | $font-family-sans-serif: "Nunito", sans-serif; 6 | $font-size-base: 0.9rem; 7 | $line-height-base: 1.6; 8 | 9 | // Colors 10 | // $blue: #3490dc; 11 | // $indigo: #6574cd; 12 | // $purple: #9561e2; 13 | // $pink: #f66d9b; 14 | // $red: #e3342f; 15 | // $orange: #f6993f; 16 | // $yellow: #ffed4a; 17 | // $green: #38c172; 18 | // $teal: #4dc0b5; 19 | // $cyan: #6cb2eb; 20 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | // Fonts 2 | // @import url("https://fonts.googleapis.com/css?family=Nunito"); 3 | 4 | // // Variables 5 | @import "variables"; 6 | 7 | // Bootstrap 8 | @import "~bootstrap/scss/bootstrap"; 9 | 10 | @import "real-estate"; 11 | -------------------------------------------------------------------------------- /resources/sass/inc/_default.scss: -------------------------------------------------------------------------------- 1 | h1, 2 | h2, 3 | h3, 4 | h4, 5 | h5, 6 | h6 { 7 | padding: 0; 8 | margin: 0; 9 | } 10 | p { 11 | padding: 0; 12 | margin: 0; 13 | } 14 | div { 15 | padding: 0; 16 | margin: 0; 17 | } 18 | a { 19 | color: black; 20 | &:hover { 21 | color: black; 22 | text-decoration: none; 23 | } 24 | } 25 | *, 26 | *::before, 27 | *::after { 28 | padding: 0; 29 | margin: 0; 30 | box-sizing: border-box; 31 | } 32 | //variables 33 | $primary-color: #01adbb; 34 | $primary-hover: #007882; 35 | $primary-light: #e0f7f8; 36 | $danger-color: #d93c23; 37 | $primary-grey: #888; 38 | $std-padding: 0.25rem 0.5rem; 39 | 40 | //custom icons 41 | .fa-primary { 42 | color: $primary-color; 43 | } 44 | .fa-secondary { 45 | color: $primary-light; 46 | } 47 | 48 | //locals 49 | .primary-link { 50 | color: $primary-color; 51 | &:hover { 52 | color: $primary-light; 53 | text-decoration: none; 54 | } 55 | } 56 | .secondary-link { 57 | color: $primary-hover; 58 | &:hover { 59 | color: $primary-hover; 60 | text-decoration: none; 61 | } 62 | } 63 | 64 | body { 65 | font-family: "Roboto", sans-serif; 66 | max-width: 100vw; 67 | overflow-x: hidden; 68 | } 69 | 70 | button { 71 | margin: 0; 72 | padding: 0; 73 | border: 1px solid transparent; 74 | box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); 75 | padding: 0.25rem 0.5rem; 76 | border-radius: 8px; 77 | } 78 | .primary-btn { 79 | background-color: $primary-color; 80 | color: white; 81 | transition: background-color 0.25s ease; 82 | padding: 6px 8px; 83 | border: 1px solid $primary-color; 84 | border-radius: 8px; 85 | &:hover { 86 | background-color: white; 87 | color: $primary-hover; 88 | } 89 | } 90 | .secondary-btn { 91 | background-color: $primary-hover; 92 | color: white; 93 | transition: background-color 0.25s ease; 94 | padding: 6px 8px; 95 | border: 1px solid $primary-hover; 96 | border-radius: 8px; 97 | &:hover { 98 | background-color: white; 99 | color: $primary-hover; 100 | } 101 | } 102 | .danger-btn { 103 | background-color: $danger-color; 104 | color: white; 105 | &:hover { 106 | background-color: white; 107 | color: $danger-color; 108 | border: 1px solid $danger-color; 109 | } 110 | } 111 | .navbar-brand { 112 | letter-spacing: 0.1rem; 113 | color: $primary-hover !important; 114 | // width: 115px; 115 | // padding: 0; 116 | // overflow: hidden; 117 | // img { 118 | // width: 100%; 119 | // } 120 | } 121 | -------------------------------------------------------------------------------- /resources/sass/inc/_footer.scss: -------------------------------------------------------------------------------- 1 | .footer { 2 | margin: 2rem 0; 3 | padding: 0 1rem; 4 | .footer-text { 5 | font-size: 0.8rem; 6 | color: grey; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /resources/sass/inc/_navbar.scss: -------------------------------------------------------------------------------- 1 | .navbar { 2 | .nav-item { 3 | .nav-link { 4 | font-weight: bold; 5 | padding: 0.25rem 0.5rem; 6 | border-radius: 6px; 7 | &:hover, 8 | &:focus { 9 | color: white; 10 | background-color: $primary-hover; 11 | } 12 | } 13 | } 14 | } 15 | .navbar-search-bx { 16 | margin: auto 2rem; 17 | border-radius: 6px; 18 | border: 1px solid #ddd; 19 | padding: 0; 20 | display: flex; 21 | justify-content: space-between; 22 | align-items: center; 23 | background-color: white; 24 | .navbar-search-input { 25 | outline: none; 26 | border: none; 27 | background-color: transparent; 28 | margin-right: 0; 29 | transition: width 0.5s ease; 30 | padding: 0.25rem 0.5rem !important; 31 | width: 200px; 32 | &:focus { 33 | width: 300px; 34 | } 35 | } 36 | button { 37 | margin-left: 0; 38 | padding: $std-padding; 39 | border-top-left-radius: 0; 40 | border-bottom-left-radius: 0; 41 | } 42 | } 43 | //bootstrap default 44 | .dropdown-item:hover { 45 | background-color: #81d4db; 46 | } 47 | .dropdown-menu { 48 | border-radius: 8px; 49 | } 50 | 51 | //mobile responsive navbar 52 | .mb-nav { 53 | display: none; 54 | .mb-nav-toggler { 55 | color: #333; 56 | } 57 | .mb-nav-list { 58 | position: fixed; 59 | top: 0; 60 | right: 0; 61 | height: 100vh; 62 | background-color: #333; 63 | opacity: 0.9; 64 | display: flex; 65 | flex-direction: column; 66 | width: 20rem; 67 | padding: 2rem; 68 | z-index: 9999; 69 | animation: navbar-animation 0.5s ease forwards; 70 | @keyframes navbar-animation { 71 | 0% { 72 | opacity: 0.5; 73 | transform: scale(0.7) translateY(-500px); 74 | } 75 | 100% { 76 | opacity: 1; 77 | transform: scale(1) translateY(0px); 78 | } 79 | } 80 | &.active { 81 | display: block; 82 | } 83 | .mb-nav-link { 84 | display: block; 85 | color: #fff; 86 | font-size: 1rem; 87 | margin: 0.5rem 0; 88 | display: flex; 89 | justify-content: space-between; 90 | align-items: center; 91 | &:hover { 92 | text-decoration: none; 93 | color: $primary-color; 94 | } 95 | } 96 | } 97 | } 98 | 99 | @media (max-width: 960px) { 100 | .mb-nav { 101 | display: block; 102 | .mb-nav-toggler { 103 | padding: auto; 104 | } 105 | .mb-nav-list { 106 | display: none; 107 | } 108 | } 109 | #navbar { 110 | .navbar-nav { 111 | display: none; 112 | } 113 | .navbar-search-bx { 114 | display: none; 115 | } 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /resources/sass/pages/_account.scss: -------------------------------------------------------------------------------- 1 | //Account css here 2 | .navbar { 3 | margin-bottom: 0px; 4 | } 5 | .account-navigation { 6 | position: fixed; 7 | height: 100%; 8 | width: 20vw; 9 | left: 0; 10 | background-color: white; 11 | z-index: 1000; 12 | .account-nav { 13 | .profile-nav { 14 | display: flex; 15 | justify-content: center; 16 | align-items: center; 17 | flex-direction: column; 18 | text-align: center; 19 | padding-top: 1rem; 20 | .account-holder { 21 | font-weight: normal; 22 | margin: 5px 0; 23 | font-size: 1rem; 24 | } 25 | .account-type { 26 | font-size: 0.8rem; 27 | font-weight: bold; 28 | color: #888; 29 | } 30 | } 31 | .account-nav-list { 32 | a { 33 | font-size: 1rem; 34 | color: $primary-grey; 35 | &:hover { 36 | text-decoration: none; 37 | } 38 | i { 39 | padding-right: 0.5rem; 40 | } 41 | } 42 | li.active-link a { 43 | color: #333; 44 | } 45 | } 46 | } 47 | } 48 | .account-content { 49 | position: absolute; 50 | width: 80vw; 51 | right: 0; 52 | .jumbotron { 53 | padding-top: 1rem; 54 | } 55 | .profile-changer { 56 | .profile-pic-holder { 57 | height: auto; 58 | width: 150px; 59 | background-color: transparent; 60 | border: 1px dotted grey; 61 | margin-bottom: 1rem; 62 | &:hover { 63 | cursor: pointer; 64 | } 65 | } 66 | .change-photo-bx { 67 | position: relative; 68 | width: auto; 69 | height: auto; 70 | .photo-input { 71 | cursor: pointer; 72 | opacity: 0; 73 | width: 100%; 74 | height: 100%; 75 | top: 0; 76 | left: 0; 77 | bottom: 0; 78 | position: absolute; 79 | z-index: 3; 80 | } 81 | } 82 | } 83 | } 84 | //switch css 85 | .switch { 86 | position: relative; 87 | display: inline-block; 88 | width: 60px; 89 | height: 34px; 90 | input { 91 | opacity: 0; 92 | width: 0; 93 | height: 0; 94 | &:checked + .slider { 95 | background-color: $primary-color; 96 | } 97 | 98 | &:focus + .slider { 99 | box-shadow: 0 0 1px $primary-color; 100 | } 101 | 102 | &:checked + .slider:before { 103 | -webkit-transform: translateX(26px); 104 | -ms-transform: translateX(26px); 105 | transform: translateX(26px); 106 | } 107 | } 108 | .slider { 109 | position: absolute; 110 | cursor: pointer; 111 | top: 0; 112 | left: 0; 113 | right: 0; 114 | bottom: 0; 115 | background-color: #ccc; 116 | border-radius: 34px; 117 | -webkit-transition: 0.4s; 118 | transition: 0.4s; 119 | } 120 | .slider:before { 121 | position: absolute; 122 | content: ""; 123 | height: 26px; 124 | width: 26px; 125 | left: 4px; 126 | bottom: 4px; 127 | background-color: white; 128 | -webkit-transition: 0.4s; 129 | transition: 0.4s; 130 | border-radius: 50%; 131 | } 132 | } 133 | 134 | @media (max-width: 786px) { 135 | } 136 | -------------------------------------------------------------------------------- /resources/sass/pages/_index-page.scss: -------------------------------------------------------------------------------- 1 | //index page css for real estate app 2 | .property-index { 3 | margin-top: 1rem; 4 | } 5 | //hero class has a 6 | .hero { 7 | width: auto; 8 | height: 80vh; 9 | // background-image: url("/img/search-background.jpg"); 10 | background-repeat: no-repeat; 11 | background-size: cover; 12 | background-position: center; 13 | .hero-caption { 14 | display: flex; 15 | justify-content: center; 16 | align-content: center; 17 | flex-direction: column; 18 | height: 80vh; 19 | text-align: center; 20 | } 21 | .caption-text { 22 | font-size: 3rem; 23 | color: white; 24 | text-shadow: 1px 2px 4px rgba(0, 0, 0, 1); 25 | } 26 | .hero-search-bx { 27 | margin: auto; 28 | border-radius: 6px; 29 | border: 1px solid #ddd; 30 | padding: 0; 31 | display: flex; 32 | justify-content: space-between; 33 | align-items: center; 34 | background-color: white; 35 | .navbar-search-input { 36 | outline: none; 37 | border: none; 38 | background-color: transparent; 39 | margin-right: 0; 40 | padding: 0.15rem 0.5rem !important; 41 | width: auto; 42 | font-size: 1.25rem; 43 | cursor: text; 44 | } 45 | .hero-search-button { 46 | margin-left: 0; 47 | padding: 1rem; 48 | border-top-left-radius: 0; 49 | border-bottom-left-radius: 0; 50 | background: #d93c23; 51 | display: flex; 52 | align-items: center; 53 | justify-content: center; 54 | &:hover { 55 | background-color: #9c1114; 56 | } 57 | i { 58 | color: white; 59 | } 60 | } 61 | } 62 | } 63 | 64 | //features 65 | .feature-item { 66 | padding: 2rem 0; 67 | border: none; 68 | } 69 | .feature-item:hover { 70 | border-left: 1px solid rgb(246, 204, 205) !important; 71 | border-right: 1px solid rgb(212, 250, 253) !important; 72 | background: linear-gradient( 73 | to right, 74 | rgb(212, 250, 253), 75 | rgb(246, 204, 205) 76 | ); 77 | } 78 | 79 | /* guides */ 80 | .guides-section { 81 | background: #faf7f5; 82 | padding: 3rem 0; 83 | .guides-hdr { 84 | color: #007882; 85 | font-size: 1.25rem; 86 | font-weight: bold; 87 | margin-bottom: 0.5rem; 88 | } 89 | .guides-text { 90 | font-size: 1.5rem; 91 | font-weight: bold; 92 | color: #052286; 93 | } 94 | .guides-row { 95 | display: flex; 96 | justify-content: start; 97 | align-items: center; 98 | } 99 | .guides-col { 100 | margin: 1rem 1rem 1rem 0; 101 | } 102 | } 103 | 104 | @media screen and (max-width: 786px) { 105 | .hero { 106 | .caption-text { 107 | font-size: 1.5rem; 108 | } 109 | .hero-search-bx { 110 | width: 80vw; 111 | } 112 | .navbar-search-input { 113 | padding: 0.15rem 0.5rem !important; 114 | width: auto; 115 | font-size: 1rem; 116 | cursor: text; 117 | } 118 | .hero-search-bx { 119 | .hero-search-button { 120 | padding: 0.5rem; 121 | } 122 | } 123 | } 124 | } 125 | -------------------------------------------------------------------------------- /resources/sass/pages/_login-page.scss: -------------------------------------------------------------------------------- 1 | //login-page css here 2 | .login-brand { 3 | color: white; 4 | &:hover { 5 | color: #03d5ff; 6 | text-decoration: none; 7 | } 8 | } 9 | .login-container { 10 | position: fixed; 11 | top: 0; 12 | left: 0; 13 | right: 0; 14 | bottom: 0; 15 | z-index: 100; 16 | height: 100vh; 17 | width: 100vw; 18 | display: flex; 19 | justify-content: center; 20 | align-items: center; 21 | flex-direction: column; 22 | color: white; 23 | background-image: url("/img/background.jpg"); 24 | background-repeat: no-repeat; 25 | background-size: cover; 26 | overflow-y: scroll; 27 | .user-login { 28 | padding: 2rem; 29 | width: 35vw; 30 | height: auto; 31 | background-color: #0988a9; 32 | box-shadow: 0px 0px 10px 8px rgba(0, 0, 0, 0.2); 33 | border-radius: 8px; 34 | text-align: center; 35 | label { 36 | text-align: left; 37 | margin-left: auto; 38 | color: lightgray; 39 | } 40 | .terms-conditions { 41 | font-weight: normal; 42 | text-align: center; 43 | font-size: 0.8rem; 44 | } 45 | } 46 | } 47 | 48 | @media screen and (max-width: 986px) { 49 | .login-container { 50 | .user-login { 51 | width: 50vw; 52 | } 53 | } 54 | } 55 | 56 | @media screen and (max-width: 786px) { 57 | .login-container { 58 | .user-login { 59 | margin-top: 4rem; 60 | margin-bottom: 4rem; 61 | width: 75vw; 62 | } 63 | } 64 | } 65 | @media screen and (max-width: 540px) { 66 | .login-container { 67 | .user-login { 68 | width: 95vw; 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.login') 2 | 3 | @section('content') 4 |
5 |
6 | 43 | 44 |
45 | 46 |
47 | @endsection 48 | 49 | 50 | @push('js') 51 | 74 | @endpush 75 | 76 | 77 | @push('css') 78 | 80 | @endpush 81 | 82 | -------------------------------------------------------------------------------- /resources/views/auth/original-login.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Login') }}
9 | 10 |
11 |
12 | @csrf 13 | 14 |
15 | 16 | 17 |
18 | 19 | 20 | @error('email') 21 | 22 | {{ $message }} 23 | 24 | @enderror 25 |
26 |
27 | 28 |
29 | 30 | 31 |
32 | 33 | 34 | @error('password') 35 | 36 | {{ $message }} 37 | 38 | @enderror 39 |
40 |
41 | 42 |
43 |
44 |
45 | 46 | 47 | 50 |
51 |
52 |
53 | 54 |
55 |
56 | 59 | 60 | @if (Route::has('password.request')) 61 | 62 | {{ __('Forgot Your Password?') }} 63 | 64 | @endif 65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | @endsection 74 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/confirm.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Confirm Password') }}
9 | 10 |
11 | {{ __('Please confirm your password before continuing.') }} 12 | 13 |
14 | @csrf 15 | 16 |
17 | 18 | 19 |
20 | 21 | 22 | @error('password') 23 | 24 | {{ $message }} 25 | 26 | @enderror 27 |
28 |
29 | 30 |
31 |
32 | 35 | 36 | @if (Route::has('password.request')) 37 | 38 | {{ __('Forgot Your Password?') }} 39 | 40 | @endif 41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | @endsection 50 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Reset Password') }}
9 | 10 |
11 | @if (session('status')) 12 | 15 | @endif 16 | 17 |
18 | @csrf 19 |
20 | 21 | 22 |
23 | 24 | 25 | @error('email') 26 | 27 | {{ $message }} 28 | 29 | @enderror 30 |
31 |
32 | 33 |
34 |
35 | 38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | @endsection 47 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Reset Password') }}
9 | 10 |
11 |
12 | @csrf 13 | 14 | 15 | 16 |
17 | 18 | 19 |
20 | 21 | 22 | @error('email') 23 | 24 | {{ $message }} 25 | 26 | @enderror 27 |
28 |
29 | 30 |
31 | 32 | 33 |
34 | 35 | 36 | @error('password') 37 | 38 | {{ $message }} 39 | 40 | @enderror 41 |
42 |
43 | 44 |
45 | 46 | 47 |
48 | 49 |
50 |
51 | 52 |
53 |
54 | 57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 | @endsection 66 | -------------------------------------------------------------------------------- /resources/views/auth/register.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Register') }}
9 | 10 |
11 |
12 | @csrf 13 | 14 |
15 | 16 | 17 |
18 | 19 | 20 | @error('name') 21 | 22 | {{ $message }} 23 | 24 | @enderror 25 |
26 |
27 | 28 |
29 | 30 | 31 |
32 | 33 | 34 | @error('email') 35 | 36 | {{ $message }} 37 | 38 | @enderror 39 |
40 |
41 | 42 |
43 | 44 | 45 |
46 | 47 | 48 | @error('password') 49 | 50 | {{ $message }} 51 | 52 | @enderror 53 |
54 |
55 | 56 |
57 | 58 | 59 |
60 | 61 |
62 |
63 | 64 |
65 |
66 | 69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 | @endsection 78 | -------------------------------------------------------------------------------- /resources/views/auth/verify.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Verify Your Email Address') }}
9 | 10 |
11 | @if (session('resent')) 12 | 15 | @endif 16 | 17 | {{ __('Before proceeding, please check your email for a verification link.') }} 18 | {{ __('If you did not receive the email') }}, 19 |
20 | @csrf 21 | . 22 |
23 |
24 |
25 |
26 |
27 |
28 | @endsection 29 | -------------------------------------------------------------------------------- /resources/views/inc/account-footer.blade.php: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /resources/views/inc/account-nav.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 29 |
30 |
31 | 32 | @push('css') 33 | 40 | @endpush -------------------------------------------------------------------------------- /resources/views/inc/flash-message.blade.php: -------------------------------------------------------------------------------- 1 | @if ($message = Session::get('success')) 2 |
3 | 4 | {{ $message }} 5 |
6 | @endif 7 | 8 | @if ($message = Session::get('error')) 9 |
10 | 11 | {{ $message }} 12 |
13 | @endif 14 | 15 | @if ($message = Session::get('warning')) 16 |
17 | 18 | {{ $message }} 19 |
20 | @endif 21 | 22 | @if ($message = Session::get('info')) 23 |
24 | 25 | {{ $message }} 26 |
27 | @endif 28 | 29 | @if ($errors->any()) 30 |
31 | 32 | Please check the form below for errors 33 |
34 | @endif -------------------------------------------------------------------------------- /resources/views/inc/footer.blade.php: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /resources/views/inc/navbar.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/layouts/account-layout.blade.php: -------------------------------------------------------------------------------- 1 | {{-- extending from app layouts --}} 2 | @extends('layouts.app') 3 | @section('layout-holder') 4 | @include('inc.navbar') 5 |
6 |
7 | {{-- Account Navigation Sidebar here --}} 8 | @include('inc.account-nav') 9 | @yield('content') 10 |
11 |
12 | @endsection -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | {{ $metaTitle ?? config('app.name', 'Nepesate') }} 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | @stack('css') 24 | 25 | 26 | 27 |
28 | @yield('layout-holder') 29 |
30 | 36 | @include('sweetalert::alert') 37 | 38 | 39 | 51 | @stack('js') 52 | 53 | 54 | -------------------------------------------------------------------------------- /resources/views/layouts/list-layout.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('layout-holder') 3 | @include('inc.navbar') 4 | @yield('content') 5 | @endsection -------------------------------------------------------------------------------- /resources/views/layouts/login.blade.php: -------------------------------------------------------------------------------- 1 | 2 | @extends('layouts.app') 3 | @section('layout-holder') 4 | @yield('content') 5 | @endsection -------------------------------------------------------------------------------- /resources/views/layouts/master-layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | {{ config('app.name', 'Nepesate') }} 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | @stack('css') 23 | 24 | 25 |
26 | @include('inc.navbar') 27 |
28 | @yield('content') 29 |
30 | @include('inc.footer') 31 |
32 | 33 | @stack('js') 34 | 35 | 36 | -------------------------------------------------------------------------------- /resources/views/layouts/real-estate.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('layout-holder') 3 | @include('inc.navbar') 4 | @yield('content') 5 | @include('inc.footer') 6 | @endsection -------------------------------------------------------------------------------- /resources/views/real-estate/account/property-listings.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.account-layout') 2 | @section('content') 3 | {{-- side-bar code in account-layout blade file --}} 4 |
5 |
6 | 7 |
8 | Add a new Listings 9 |
10 |
11 |
12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
IdTitleImageOn sale(1/0)Created AtActions
25 |
26 |
27 |
28 |
29 |
30 | @include('inc.account-footer') 31 |
32 | @endsection 33 | 34 | 35 | @push('js') 36 | 37 | 101 | @endpush 102 | 103 | 104 | @push('css') 105 | 106 | 115 | @endpush -------------------------------------------------------------------------------- /resources/views/real-estate/account/rental-resume.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.account-layout') 2 | 3 | @section('content') 4 |
5 |
6 | 7 |
8 |
9 |
10 |
{{strtoupper($user->name)}}
11 |

Renter in {{$user->userInfo->location}}

12 |

{{$user->email}}

13 |
14 | Edit profile settings 15 |
16 |
Share Settings
17 | 26 |
27 |
28 |
29 |
30 |
31 | 32 | 38 |
39 |
40 | 41 | 42 |
43 |
44 | 45 | 51 |
52 |
53 | 54 | 61 |
62 |
63 | 64 | 69 |
70 |
71 | 72 | 73 |
74 |
75 |
76 | 77 | 78 |
79 |
80 |
81 |
82 |
83 |
84 | @include('inc.account-footer') 85 |
86 | @endsection 87 | 88 | 89 | @push('js') 90 | @endpush 91 | 92 | 93 | @push('css') 94 | 97 | @endpush -------------------------------------------------------------------------------- /resources/views/real-estate/account/saved-homes.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.account-layout') 2 | 3 | @section('content') 4 |
5 |
6 | 7 |
8 |
9 |
10 |
11 |

You haven't added any homes yet.

12 |

Start Searching for property to add now.

13 |
14 | Search homes 15 |
16 |
17 |
18 |
19 | @include('inc.account-footer') 20 |
21 | @endsection 22 | 23 | 24 | @push('js') 25 | @endpush 26 | 27 | 28 | @push('css') 29 | 34 | @endpush -------------------------------------------------------------------------------- /resources/views/real-estate/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.real-estate') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |

Discover a place
You love to live.

12 |
13 |
14 |
15 | 16 | 19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | 62 |
63 |
64 |
65 |
66 |
67 |
68 |

Nepestate Guides

69 |

Everything you need to know
70 | when looking at different types of homes for sale all in
71 | types of homes for sale all in one place. 72 |

73 |
74 | 75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |

Buyers Guides

83 | How to buy 84 | 85 |
86 |
87 |
88 |
89 |
90 |
91 | 92 |
93 |
94 |

Renters Guides

95 | How to rent 96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |

Sellers Guides

104 | How to sell 105 | 106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 | @endsection 117 | 118 | 119 | @push('js') 120 | @endpush 121 | 122 | 123 | @push('css') 124 | 127 | @endpush 128 | 129 | -------------------------------------------------------------------------------- /resources/views/real-estate/property/rent.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.list-layout') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Homes for Rent 12 |
13 |
14 |

15 |

16 |
17 |
18 |
19 | 24 | 25 | @csrf 26 |
27 |
28 |
29 |
30 |
31 |
32 |

Unfortunately, there are no available homes for rental OR.
33 | Try searching for a different location or neighborhood.

34 | 35 |
36 |
37 |
38 |
39 | 47 |
48 | 58 |
59 |
60 |
61 |
62 |
65 | 80 |
81 |
82 |
83 |
84 |
85 |
86 | @endsection 87 | 88 | @push('css') 89 | 92 | @endpush 93 | 94 | @push('js') 95 | 97 | @endpush -------------------------------------------------------------------------------- /resources/views/vendor/sweetalert/alert.blade.php: -------------------------------------------------------------------------------- 1 | @if (config('sweetalert.alwaysLoadJS') === true && config('sweetalert.neverLoadJS') === false ) 2 | 3 | @endif 4 | @if (Session::has('alert.config')) 5 | @if(config('sweetalert.animation.enable')) 6 | 7 | @endif 8 | @if (config('sweetalert.alwaysLoadJS') === false && config('sweetalert.neverLoadJS') === false) 9 | 10 | @endif 11 | 14 | @endif 15 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 18 | return $request->user(); 19 | }); 20 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->describe('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | 'real-estate'], function () { 11 | Route::get('/', 'PropertyController@index')->name('property.index'); 12 | Route::get('/search', 'PropertyController@search')->name('property.search'); 13 | Route::get('/list', 'PropertyController@list')->name('property.list'); 14 | Route::post('/priceChanger', 'PropertyController@priceChanger')->name('property.priceChanger'); 15 | Route::get('/buy', 'PropertyController@buy')->name('property.buy'); 16 | Route::get('/rent', 'PropertyController@rent')->name('property.rent'); 17 | Route::get('/mortage', 'PropertyController@mortage')->name('property.mortage'); 18 | Route::get('/{property}-{slug}', 'PropertyController@show')->name('property.show'); 19 | Route::post('/property-application', 'PropertyApplicationController@store')->name('property.storeApplication'); 20 | }); 21 | 22 | //user accounts 23 | Route::group(['prefix' => 'account'], function () { 24 | Route::get('/login', 'AccountController@accountLogin')->name('user.login'); 25 | Route::get('/logout', 'AccountController@accountLogout')->name('user.logout'); 26 | //creating a user 27 | Route::post('/login', 'UserController@store')->name('user.store'); 28 | 29 | //grouped routes for static pages 30 | Route::get('/{page}', 'AccountController') 31 | ->name('page') 32 | ->where('page', 'user-profile|saved-homes|rental-resume'); 33 | 34 | //account/* routes for UserPropertyController 35 | Route::get('/property-listings', 'UserPropertyController@index')->name('user.propertyListings'); 36 | Route::get('/property-listings/create', 'UserPropertyController@create')->name('user.propertyCreate'); 37 | Route::get('/property-listings/{property}', 'UserPropertyController@show')->name('user.propertyShow'); 38 | Route::post('/property-listings', 'UserPropertyController@store')->name('user.propertyStore'); 39 | Route::get('/property-listings/{property}/edit', 'UserPropertyController@edit')->name('user.propertyEdit'); 40 | Route::put('/property-listings/{property}', 'UserPropertyController@update')->name('user.propertyUpdate'); 41 | Route::delete('/property-listings/{property}', 'UserPropertyController@destroy')->name('user.propertyDestroy'); 42 | 43 | Route::post('/user-profile', 'AccountController@accountUpdate')->name('user.accountUpdate'); 44 | Route::post('/user-profile/password-change', 'AccountController@passwordChange')->name('user.account.passwordChange'); 45 | Route::post('/user-profile/profile-img-change', 'AccountController@profileImgChange')->name('user.account.profileImgChange'); 46 | }); 47 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/Feature/AccountCrudTest.php: -------------------------------------------------------------------------------- 1 | withoutExceptionHandling(); 17 | 18 | $response = $this->post('/account/login', [ 19 | 'email' => 'admin@admin.com', 20 | 'password' => 'password' 21 | ]); 22 | 23 | $this->assertCount(1, User::all()); 24 | } 25 | 26 | /** @test */ 27 | public function property_can_be_edited() 28 | { 29 | $this->withoutExceptionHandling(); 30 | 31 | $response = $this->post('/account/login', [ 32 | 'email' => 'admin@admin.com', 33 | 'password' => 'password' 34 | ]); 35 | 36 | $this->assertCount(1, User::all()); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | // $response->assertStatus(200); 20 | // } 21 | // } 22 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | // } 18 | // } 19 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/js/app.js', 'public/js') 15 | .sass('resources/sass/app.scss', 'public/css'); 16 | --------------------------------------------------------------------------------