├── public
├── favicon.ico
├── robots.txt
├── img
│ ├── logo.png
│ ├── arrow-more.png
│ └── placeholder.gif
├── mix-manifest.json
├── fonts
│ └── vendor
│ │ └── bootstrap-sass
│ │ └── bootstrap
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
├── .htaccess
├── index.php
└── data
│ └── sekolah.json
├── database
├── .gitignore
├── seeds
│ └── DatabaseSeeder.php
├── factories
│ └── ModelFactory.php
└── migrations
│ ├── 2014_10_12_100000_create_password_resets_table.php
│ ├── 2014_10_12_000000_create_users_table.php
│ └── 2017_05_28_120923_create_schools_table.php
├── bootstrap
├── cache
│ └── .gitignore
├── autoload.php
└── app.php
├── storage
├── logs
│ └── .gitignore
├── app
│ ├── public
│ │ └── .gitignore
│ └── .gitignore
└── framework
│ ├── cache
│ └── .gitignore
│ ├── testing
│ └── .gitignore
│ ├── views
│ └── .gitignore
│ ├── sessions
│ └── .gitignore
│ └── .gitignore
├── resources
├── views
│ ├── layout
│ │ ├── includes
│ │ │ ├── footer.blade.php
│ │ │ ├── sidebar.blade.php
│ │ │ ├── style.blade.php
│ │ │ ├── script.blade.php
│ │ │ └── header.blade.php
│ │ └── app.blade.php
│ ├── auth
│ │ ├── passwords
│ │ │ ├── email.blade.php
│ │ │ └── reset.blade.php
│ │ ├── login.blade.php
│ │ └── register.blade.php
│ ├── detail.blade.php
│ └── home.blade.php
├── lang
│ └── en
│ │ ├── pagination.php
│ │ ├── auth.php
│ │ ├── passwords.php
│ │ └── validation.php
└── assets
│ ├── js
│ ├── components
│ │ └── Example.vue
│ ├── app.js
│ └── bootstrap.js
│ └── sass
│ ├── _variables.scss
│ └── app.scss
├── .gitattributes
├── app
├── School.php
├── Http
│ ├── Middleware
│ │ ├── EncryptCookies.php
│ │ ├── VerifyCsrfToken.php
│ │ ├── TrimStrings.php
│ │ └── RedirectIfAuthenticated.php
│ ├── Controllers
│ │ ├── Controller.php
│ │ ├── HomeController.php
│ │ ├── Auth
│ │ │ ├── ForgotPasswordController.php
│ │ │ ├── LoginController.php
│ │ │ ├── ResetPasswordController.php
│ │ │ └── RegisterController.php
│ │ └── AppController.php
│ └── Kernel.php
├── Providers
│ ├── BroadcastServiceProvider.php
│ ├── AppServiceProvider.php
│ ├── AuthServiceProvider.php
│ ├── EventServiceProvider.php
│ └── RouteServiceProvider.php
├── User.php
├── Console
│ └── Kernel.php
├── Helpers
│ ├── Authentication.php
│ ├── ResponseHelper.php
│ ├── Generate.php
│ └── API.php
└── Exceptions
│ └── Handler.php
├── .gitignore
├── tests
├── TestCase.php
├── Unit
│ └── ExampleTest.php
├── CreatesApplication.php
└── Feature
│ └── ExampleTest.php
├── routes
├── channels.php
├── api.php
├── console.php
└── web.php
├── webpack.mix.js
├── server.php
├── .env.example
├── readme.md
├── package.json
├── config
├── view.php
├── services.php
├── broadcasting.php
├── filesystems.php
├── queue.php
├── cache.php
├── auth.php
├── database.php
├── mail.php
├── session.php
└── app.php
├── phpunit.xml
├── composer.json
└── artisan
/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite
2 |
--------------------------------------------------------------------------------
/bootstrap/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/logs/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow:
3 |
--------------------------------------------------------------------------------
/storage/app/public/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/app/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !public/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/storage/framework/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/testing/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/views/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/sessions/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/resources/views/layout/includes/footer.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/layout/includes/sidebar.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/public/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galpratama/sekolah-cimahi/HEAD/public/img/logo.png
--------------------------------------------------------------------------------
/public/mix-manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "/js/app.js": "/js/app.js",
3 | "/css/app.css": "/css/app.css"
4 | }
--------------------------------------------------------------------------------
/public/img/arrow-more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galpratama/sekolah-cimahi/HEAD/public/img/arrow-more.png
--------------------------------------------------------------------------------
/public/img/placeholder.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/galpratama/sekolah-cimahi/HEAD/public/img/placeholder.gif
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 | *.css linguist-vendored
3 | *.scss linguist-vendored
4 | *.js linguist-vendored
5 | CHANGELOG.md export-ignore
6 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/app/School.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/database/seeds/DatabaseSeeder.php:
--------------------------------------------------------------------------------
1 | call(UsersTableSeeder::class);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/app/Http/Middleware/EncryptCookies.php:
--------------------------------------------------------------------------------
1 | assertTrue(true);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/tests/CreatesApplication.php:
--------------------------------------------------------------------------------
1 | make(Kernel::class)->bootstrap();
19 |
20 | return $app;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/Providers/BroadcastServiceProvider.php:
--------------------------------------------------------------------------------
1 | get('/');
20 |
21 | $response->assertStatus(200);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/routes/channels.php:
--------------------------------------------------------------------------------
1 | id === (int) $id;
16 | });
17 |
--------------------------------------------------------------------------------
/app/Http/Controllers/HomeController.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
17 | }
18 |
19 | /**
20 | * Show the application dashboard.
21 | *
22 | * @return \Illuminate\Http\Response
23 | */
24 | public function index()
25 | {
26 | return view('home');
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/routes/api.php:
--------------------------------------------------------------------------------
1 | get('/user', function (Request $request) {
17 | return $request->user();
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/assets/js/app.js', 'public/js')
15 | .sass('resources/assets/sass/app.scss', 'public/css');
16 |
--------------------------------------------------------------------------------
/resources/lang/en/pagination.php:
--------------------------------------------------------------------------------
1 | '« Previous',
17 | 'next' => 'Next »',
18 |
19 | ];
20 |
--------------------------------------------------------------------------------
/routes/console.php:
--------------------------------------------------------------------------------
1 | comment(Inspiring::quote());
18 | })->describe('Display an inspiring quote');
19 |
--------------------------------------------------------------------------------
/bootstrap/autoload.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | Options -MultiViews
4 |
5 |
6 | RewriteEngine On
7 |
8 | # Redirect Trailing Slashes If Not A Folder...
9 | RewriteCond %{REQUEST_FILENAME} !-d
10 | RewriteRule ^(.*)/$ /$1 [L,R=301]
11 |
12 | # Handle Front Controller...
13 | RewriteCond %{REQUEST_FILENAME} !-d
14 | RewriteCond %{REQUEST_FILENAME} !-f
15 | RewriteRule ^ index.php [L]
16 |
17 | # Handle Authorization Header
18 | RewriteCond %{HTTP:Authorization} .
19 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
20 |
21 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/app/Http/Middleware/RedirectIfAuthenticated.php:
--------------------------------------------------------------------------------
1 | check()) {
21 | return redirect('/home');
22 | }
23 |
24 | return $next($request);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/routes/web.php:
--------------------------------------------------------------------------------
1 | name('home');
21 |
22 |
--------------------------------------------------------------------------------
/resources/assets/js/components/Example.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
Example Component
7 |
8 |
9 | I'm an example component!
10 |
11 |
12 |
13 |
14 |
15 |
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/assets/js/app.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * First we will load all of this project's JavaScript dependencies which
4 | * includes Vue and other libraries. It is a great starting point when
5 | * building robust, powerful web applications using Vue and Laravel.
6 | */
7 |
8 | require('./bootstrap');
9 |
10 | window.Vue = require('vue');
11 |
12 | /**
13 | * Next, we will create a fresh Vue application instance and attach it to
14 | * the page. Then, you may begin adding components to this application
15 | * or customize the JavaScript scaffolding to fit your unique needs.
16 | */
17 |
18 | Vue.component('example', require('./components/Example.vue'));
19 |
20 | const app = new Vue({
21 | el: '#app'
22 | });
23 |
--------------------------------------------------------------------------------
/app/Providers/AuthServiceProvider.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/EventServiceProvider.php:
--------------------------------------------------------------------------------
1 | [
17 | 'App\Listeners\EventListener',
18 | ],
19 | ];
20 |
21 | /**
22 | * Register any events for your application.
23 | *
24 | * @return void
25 | */
26 | public function boot()
27 | {
28 | parent::boot();
29 |
30 | //
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/resources/views/layout/includes/script.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
--------------------------------------------------------------------------------
/.env.example:
--------------------------------------------------------------------------------
1 | APP_NAME=Laravel
2 | APP_ENV=local
3 | APP_KEY=base64:c38bB3Y/W7pyfE93KW+WZ8eABIOdEdNULLhtiZA044s=
4 | APP_DEBUG=true
5 | APP_LOG_LEVEL=debug
6 | APP_URL=http://localhost
7 | API_URL=http://sekolahcimahi.dev/
8 | IMG_URL=http://sekolahcimahi.dev/
9 | GOOGLE_MAPS_API_KEY=AIzaSyBoLQyif0tfik3UOs6p5ftz5V6Ny4X7vlg
10 |
11 | DB_CONNECTION=mysql
12 | DB_HOST=127.0.0.1
13 | DB_PORT=3306
14 | DB_DATABASE=sekolahcimahi
15 | DB_USERNAME=root
16 | DB_PASSWORD=mysql
17 |
18 | BROADCAST_DRIVER=log
19 | CACHE_DRIVER=file
20 | SESSION_DRIVER=file
21 | QUEUE_DRIVER=sync
22 |
23 | REDIS_HOST=127.0.0.1
24 | REDIS_PASSWORD=null
25 | REDIS_PORT=6379
26 |
27 | MAIL_DRIVER=smtp
28 | MAIL_HOST=smtp.mailtrap.io
29 | MAIL_PORT=2525
30 | MAIL_USERNAME=null
31 | MAIL_PASSWORD=null
32 | MAIL_ENCRYPTION=null
33 |
34 | PUSHER_APP_ID=
35 | PUSHER_APP_KEY=
36 | PUSHER_APP_SECRET=
37 |
--------------------------------------------------------------------------------
/database/factories/ModelFactory.php:
--------------------------------------------------------------------------------
1 | define(App\User::class, function (Faker\Generator $faker) {
16 | static $password;
17 |
18 | return [
19 | 'name' => $faker->name,
20 | 'email' => $faker->unique()->safeEmail,
21 | 'password' => $password ?: $password = bcrypt('secret'),
22 | 'remember_token' => str_random(10),
23 | ];
24 | });
25 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/resources/lang/en/passwords.php:
--------------------------------------------------------------------------------
1 | 'Passwords must be at least six characters and match the confirmation.',
17 | 'reset' => 'Your password has been reset!',
18 | 'sent' => 'We have e-mailed your password reset link!',
19 | 'token' => 'This password reset token is invalid.',
20 | 'user' => "We can't find a user with that e-mail address.",
21 |
22 | ];
23 |
--------------------------------------------------------------------------------
/database/migrations/2014_10_12_000000_create_users_table.php:
--------------------------------------------------------------------------------
1 | increments('id');
18 | $table->string('name');
19 | $table->string('email')->unique();
20 | $table->string('password');
21 | $table->rememberToken();
22 | $table->timestamps();
23 | });
24 | }
25 |
26 | /**
27 | * Reverse the migrations.
28 | *
29 | * @return void
30 | */
31 | public function down()
32 | {
33 | Schema::dropIfExists('users');
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # Sekolah Cimahi
2 | Aplikasi Web GIS Data Sekolah di Kota Cimahi (SekolahCimahi). Aplikasi sistem informasi geografis ini merupakan sistem dimana pengguna dapat mencari informasi tentang sekolah yang ada di Kota Cimahi, mulai dari SD, SMP, SMA, sampai SMK.
3 | Pengguna pun dapat menyaring hasil pencarian sesuai dengan Jenis Sekolah, Tipe Sekolah, Kecamatan, Kelurahan, Akreditasi, dan Fasilitas.
4 |
5 | ## System Requirement
6 | - Git (for cloning project)
7 | - PHP >= 5.6.4
8 | - OpenSSL PHP Extension
9 | - PDO PHP Extension
10 | - Mbstring PHP Extension
11 | - Tokenizer PHP Extension
12 | - XML PHP Extension
13 |
14 | ## Install
15 | 1. Run `git clone https://galpratama@bitbucket.org/galpratama/sekolahcimahi.git` or download the repository using download button
16 | 2. Run `composer install`
17 | 3. Create new mysql database and import the sql file provided (`sekolahcimahi.sql`)
18 | 4. Copy `.env.example` file to `.env` and set your mysql database credentials
19 | 5. Done!
20 |
--------------------------------------------------------------------------------
/app/Console/Kernel.php:
--------------------------------------------------------------------------------
1 | command('inspire')
28 | // ->hourly();
29 | }
30 |
31 | /**
32 | * Register the Closure based commands for the application.
33 | *
34 | * @return void
35 | */
36 | protected function commands()
37 | {
38 | require base_path('routes/console.php');
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/ForgotPasswordController.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/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": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
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 --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 --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
11 | },
12 | "devDependencies": {
13 | "axios": "^0.15.3",
14 | "bootstrap-sass": "^3.3.7",
15 | "cross-env": "^3.2.3",
16 | "jquery": "^3.1.1",
17 | "laravel-mix": "0.*",
18 | "lodash": "^4.17.4",
19 | "vue": "^2.1.10"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/LoginController.php:
--------------------------------------------------------------------------------
1 | middleware('guest')->except('logout');
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/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' => realpath(storage_path('framework/views')),
32 |
33 | ];
34 |
--------------------------------------------------------------------------------
/config/services.php:
--------------------------------------------------------------------------------
1 | [
18 | 'domain' => env('MAILGUN_DOMAIN'),
19 | 'secret' => env('MAILGUN_SECRET'),
20 | ],
21 |
22 | 'ses' => [
23 | 'key' => env('SES_KEY'),
24 | 'secret' => env('SES_SECRET'),
25 | 'region' => 'us-east-1',
26 | ],
27 |
28 | 'sparkpost' => [
29 | 'secret' => env('SPARKPOST_SECRET'),
30 | ],
31 |
32 | 'stripe' => [
33 | 'model' => App\User::class,
34 | 'key' => env('STRIPE_KEY'),
35 | 'secret' => env('STRIPE_SECRET'),
36 | ],
37 |
38 | ];
39 |
--------------------------------------------------------------------------------
/app/Helpers/Authentication.php:
--------------------------------------------------------------------------------
1 | has('access_token');
14 | }
15 |
16 | /**
17 | * @param $access_token
18 | * @param $refresh_token
19 | * @param $user_data
20 | * @return bool
21 | */
22 | public static function setSession($access_token, $refresh_token, $user_data)
23 | {
24 | session([
25 | 'access_token' => $access_token,
26 | 'refresh_token' => $refresh_token,
27 | 'user_data' => $user_data
28 | ]);
29 |
30 | return true;
31 | }
32 |
33 | /**
34 | * @return bool
35 | */
36 | public static function removeSession()
37 | {
38 | session()->flush();
39 |
40 | return true;
41 | }
42 |
43 | /**
44 | * @param $key
45 | * @return mixed
46 | */
47 | public static function getUserData($key)
48 | {
49 | return session('user_data.' . $key);
50 | }
51 |
52 | }
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/ResetPasswordController.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 | ./tests/Feature
14 |
15 |
16 |
17 | ./tests/Unit
18 |
19 |
20 |
21 |
22 | ./app
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/database/migrations/2017_05_28_120923_create_schools_table.php:
--------------------------------------------------------------------------------
1 | increments('id');
18 | $table->timestamps();
19 | $table->string('npsn');
20 | $table->string('name');
21 | $table->string('address');
22 | $table->longText('description');
23 | $table->string('lat');
24 | $table->string('lng');
25 | $table->string('villages');
26 | $table->string('subdistricts');
27 | $table->string('status');
28 | $table->string('image');
29 | });
30 | }
31 |
32 | /**
33 | * Reverse the migrations.
34 | *
35 | * @return void
36 | */
37 | public function down()
38 | {
39 | Schema::dropIfExists('schools');
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/resources/assets/js/bootstrap.js:
--------------------------------------------------------------------------------
1 |
2 | window._ = require('lodash');
3 |
4 | /**
5 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support
6 | * for JavaScript based Bootstrap features such as modals and tabs. This
7 | * code may be modified to fit the specific needs of your application.
8 | */
9 |
10 | try {
11 | window.$ = window.jQuery = require('jquery');
12 |
13 | require('bootstrap-sass');
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-CSRF-TOKEN'] = window.Laravel.csrfToken;
25 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
26 |
27 | /**
28 | * Echo exposes an expressive API for subscribing to channels and listening
29 | * for events that are broadcast by Laravel. Echo and event broadcasting
30 | * allows your team to easily build robust real-time web applications.
31 | */
32 |
33 | // import Echo from 'laravel-echo'
34 |
35 | // window.Pusher = require('pusher-js');
36 |
37 | // window.Echo = new Echo({
38 | // broadcaster: 'pusher',
39 | // key: 'your-pusher-key'
40 | // });
41 |
--------------------------------------------------------------------------------
/app/Http/Controllers/AppController.php:
--------------------------------------------------------------------------------
1 | get();
15 |
16 | return view('home')->with(compact('sekolah'));
17 | }
18 |
19 | public function details(Request $request, $school_id)
20 | {
21 | $sekolah = School::find($school_id);
22 |
23 | // return $sekolah;
24 |
25 | $client = new Client(['base_uri' => 'https://maps.googleapis.com/maps/api/']);
26 | $response = $client->request('GET', 'geocode/json?address='. urlencode($sekolah['name']) .','. urlencode($sekolah['address']) .'&key=' . env('GOOGLE_MAPS_API_KEY'));
27 |
28 | $endpoint = json_decode($response->getBody(),true);
29 |
30 | if ($endpoint['status'] == 'ZERO_RESULTS')
31 | {
32 | $location['lat'] = 0;
33 | $location['lng'] = 0;
34 | }
35 | else
36 | {
37 | $location['lat'] = $endpoint['results'][0]['geometry']['location']['lat'];
38 | $location['lng'] = $endpoint['results'][0]['geometry']['location']['lng'];
39 | }
40 |
41 | return view('detail')->with(compact('sekolah','location'));
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/resources/views/layout/app.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | @yield('title') - Sekolah Cimahi
19 |
20 |
21 |
22 | @include('layout.includes.style')
23 | @yield('custom-style')
24 |
25 |
26 |
27 |
28 | @include('layout.includes.header')
29 |
30 | @yield('content')
31 |
32 |
33 | @include('layout.includes.footer')
34 | @include('layout.includes.script')
35 | @yield('custom-script')
36 |
37 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "laravel/laravel",
3 | "description": "The Laravel Framework.",
4 | "keywords": ["framework", "laravel"],
5 | "license": "MIT",
6 | "type": "project",
7 | "require": {
8 | "php": ">=5.6.4",
9 | "guzzlehttp/guzzle": "~6.0",
10 | "laravel/framework": "5.4.*",
11 | "laravel/tinker": "~1.0"
12 | },
13 | "require-dev": {
14 | "fzaninotto/faker": "~1.4",
15 | "mockery/mockery": "0.9.*",
16 | "phpunit/phpunit": "~5.7"
17 | },
18 | "autoload": {
19 | "classmap": [
20 | "database"
21 | ],
22 | "psr-4": {
23 | "App\\": "app/"
24 | }
25 | },
26 | "autoload-dev": {
27 | "psr-4": {
28 | "Tests\\": "tests/"
29 | }
30 | },
31 | "scripts": {
32 | "post-root-package-install": [
33 | "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
34 | ],
35 | "post-create-project-cmd": [
36 | "php artisan key:generate"
37 | ],
38 | "post-install-cmd": [
39 | "Illuminate\\Foundation\\ComposerScripts::postInstall",
40 | "php artisan optimize"
41 | ],
42 | "post-update-cmd": [
43 | "Illuminate\\Foundation\\ComposerScripts::postUpdate",
44 | "php artisan optimize"
45 | ]
46 | },
47 | "config": {
48 | "preferred-install": "dist",
49 | "sort-packages": true,
50 | "optimize-autoloader": true
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/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 | //
40 | ],
41 | ],
42 |
43 | 'redis' => [
44 | 'driver' => 'redis',
45 | 'connection' => 'default',
46 | ],
47 |
48 | 'log' => [
49 | 'driver' => 'log',
50 | ],
51 |
52 | 'null' => [
53 | 'driver' => 'null',
54 | ],
55 |
56 | ],
57 |
58 | ];
59 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/artisan:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 | make(Illuminate\Contracts\Console\Kernel::class);
32 |
33 | $status = $kernel->handle(
34 | $input = new Symfony\Component\Console\Input\ArgvInput,
35 | new Symfony\Component\Console\Output\ConsoleOutput
36 | );
37 |
38 | /*
39 | |--------------------------------------------------------------------------
40 | | Shutdown The Application
41 | |--------------------------------------------------------------------------
42 | |
43 | | Once Artisan has finished running, we will fire off the shutdown events
44 | | so that any final work may be done by the application before we shut
45 | | down the process. This is the last thing to happen to the request.
46 | |
47 | */
48 |
49 | $kernel->terminate($input, $status);
50 |
51 | exit($status);
52 |
--------------------------------------------------------------------------------
/app/Providers/RouteServiceProvider.php:
--------------------------------------------------------------------------------
1 | mapApiRoutes();
39 |
40 | $this->mapWebRoutes();
41 |
42 | //
43 | }
44 |
45 | /**
46 | * Define the "web" routes for the application.
47 | *
48 | * These routes all receive session state, CSRF protection, etc.
49 | *
50 | * @return void
51 | */
52 | protected function mapWebRoutes()
53 | {
54 | Route::middleware('web')
55 | ->namespace($this->namespace)
56 | ->group(base_path('routes/web.php'));
57 | }
58 |
59 | /**
60 | * Define the "api" routes for the application.
61 | *
62 | * These routes are typically stateless.
63 | *
64 | * @return void
65 | */
66 | protected function mapApiRoutes()
67 | {
68 | Route::prefix('api')
69 | ->middleware('api')
70 | ->namespace($this->namespace)
71 | ->group(base_path('routes/api.php'));
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/public/index.php:
--------------------------------------------------------------------------------
1 |
8 | */
9 |
10 | /*
11 | |--------------------------------------------------------------------------
12 | | Register The Auto Loader
13 | |--------------------------------------------------------------------------
14 | |
15 | | Composer provides a convenient, automatically generated class loader for
16 | | our application. We just need to utilize it! We'll simply require it
17 | | into the script here so that we don't have to worry about manual
18 | | loading any of our classes later on. It feels great to relax.
19 | |
20 | */
21 |
22 | require __DIR__.'/../bootstrap/autoload.php';
23 |
24 | /*
25 | |--------------------------------------------------------------------------
26 | | Turn On The Lights
27 | |--------------------------------------------------------------------------
28 | |
29 | | We need to illuminate PHP development, so let us turn on the lights.
30 | | This bootstraps the framework and gets it ready for use, then it
31 | | will load up this application so that we can run it and send
32 | | the responses back to the browser and delight our users.
33 | |
34 | */
35 |
36 | $app = require_once __DIR__.'/../bootstrap/app.php';
37 |
38 | /*
39 | |--------------------------------------------------------------------------
40 | | Run The Application
41 | |--------------------------------------------------------------------------
42 | |
43 | | Once we have the application, we can handle the incoming request
44 | | through the kernel, and send the associated response back to
45 | | the client's browser allowing them to enjoy the creative
46 | | and wonderful application we have prepared for them.
47 | |
48 | */
49 |
50 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
51 |
52 | $response = $kernel->handle(
53 | $request = Illuminate\Http\Request::capture()
54 | );
55 |
56 | $response->send();
57 |
58 | $kernel->terminate($request, $response);
59 |
--------------------------------------------------------------------------------
/resources/views/auth/passwords/email.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layout.app')
2 |
3 | @section('content')
4 |
5 |
6 |
7 |
8 |
Reset Password
9 |
10 | @if (session('status'))
11 |
12 | {{ session('status') }}
13 |
14 | @endif
15 |
16 |
41 |
42 |
43 |
44 |
45 |
46 | @endsection
47 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/RegisterController.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
40 | }
41 |
42 | /**
43 | * Get a validator for an incoming registration request.
44 | *
45 | * @param array $data
46 | * @return \Illuminate\Contracts\Validation\Validator
47 | */
48 | protected function validator(array $data)
49 | {
50 | return Validator::make($data, [
51 | 'name' => 'required|string|max:255',
52 | 'email' => 'required|string|email|max:255|unique:users',
53 | 'password' => 'required|string|min:6|confirmed',
54 | ]);
55 | }
56 |
57 | /**
58 | * Create a new user instance after a valid registration.
59 | *
60 | * @param array $data
61 | * @return User
62 | */
63 | protected function create(array $data)
64 | {
65 | return User::create([
66 | 'name' => $data['name'],
67 | 'email' => $data['email'],
68 | 'password' => bcrypt($data['password']),
69 | ]);
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/app/Exceptions/Handler.php:
--------------------------------------------------------------------------------
1 | expectsJson()) {
60 | return response()->json(['error' => 'Unauthenticated.'], 401);
61 | }
62 |
63 | return redirect()->guest(route('login'));
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/app/Http/Kernel.php:
--------------------------------------------------------------------------------
1 | [
30 | \App\Http\Middleware\EncryptCookies::class,
31 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
32 | \Illuminate\Session\Middleware\StartSession::class,
33 | // \Illuminate\Session\Middleware\AuthenticateSession::class,
34 | \Illuminate\View\Middleware\ShareErrorsFromSession::class,
35 | \App\Http\Middleware\VerifyCsrfToken::class,
36 | \Illuminate\Routing\Middleware\SubstituteBindings::class,
37 | ],
38 |
39 | 'api' => [
40 | 'throttle:60,1',
41 | 'bindings',
42 | ],
43 | ];
44 |
45 | /**
46 | * The application's route middleware.
47 | *
48 | * These middleware may be assigned to groups or used individually.
49 | *
50 | * @var array
51 | */
52 | protected $routeMiddleware = [
53 | 'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
54 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
55 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
56 | 'can' => \Illuminate\Auth\Middleware\Authorize::class,
57 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
58 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
59 | ];
60 | }
61 |
--------------------------------------------------------------------------------
/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", "s3", "rackspace"
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_KEY'),
61 | 'secret' => env('AWS_SECRET'),
62 | 'region' => env('AWS_REGION'),
63 | 'bucket' => env('AWS_BUCKET'),
64 | ],
65 |
66 | ],
67 |
68 | ];
69 |
--------------------------------------------------------------------------------
/config/queue.php:
--------------------------------------------------------------------------------
1 | env('QUEUE_DRIVER', 'sync'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Queue Connections
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may configure the connection information for each server that
26 | | is used by your application. A default configuration has been added
27 | | for each back-end shipped with Laravel. You are free to add more.
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 | ],
50 |
51 | 'sqs' => [
52 | 'driver' => 'sqs',
53 | 'key' => 'your-public-key',
54 | 'secret' => 'your-secret-key',
55 | 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
56 | 'queue' => 'your-queue-name',
57 | 'region' => 'us-east-1',
58 | ],
59 |
60 | 'redis' => [
61 | 'driver' => 'redis',
62 | 'connection' => 'default',
63 | 'queue' => 'default',
64 | 'retry_after' => 90,
65 | ],
66 |
67 | ],
68 |
69 | /*
70 | |--------------------------------------------------------------------------
71 | | Failed Queue Jobs
72 | |--------------------------------------------------------------------------
73 | |
74 | | These options configure the behavior of failed queue job logging so you
75 | | can control which database and table are used to store the jobs that
76 | | have failed. You may change them to any database / table you wish.
77 | |
78 | */
79 |
80 | 'failed' => [
81 | 'database' => env('DB_CONNECTION', 'mysql'),
82 | 'table' => 'failed_jobs',
83 | ],
84 |
85 | ];
86 |
--------------------------------------------------------------------------------
/config/cache.php:
--------------------------------------------------------------------------------
1 | env('CACHE_DRIVER', 'file'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Cache Stores
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may define all of the cache "stores" for your application as
26 | | well as their drivers. You may even define multiple stores for the
27 | | same cache driver to group types of items stored in your caches.
28 | |
29 | */
30 |
31 | 'stores' => [
32 |
33 | 'apc' => [
34 | 'driver' => 'apc',
35 | ],
36 |
37 | 'array' => [
38 | 'driver' => 'array',
39 | ],
40 |
41 | 'database' => [
42 | 'driver' => 'database',
43 | 'table' => 'cache',
44 | 'connection' => null,
45 | ],
46 |
47 | 'file' => [
48 | 'driver' => 'file',
49 | 'path' => storage_path('framework/cache/data'),
50 | ],
51 |
52 | 'memcached' => [
53 | 'driver' => 'memcached',
54 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
55 | 'sasl' => [
56 | env('MEMCACHED_USERNAME'),
57 | env('MEMCACHED_PASSWORD'),
58 | ],
59 | 'options' => [
60 | // Memcached::OPT_CONNECT_TIMEOUT => 2000,
61 | ],
62 | 'servers' => [
63 | [
64 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
65 | 'port' => env('MEMCACHED_PORT', 11211),
66 | 'weight' => 100,
67 | ],
68 | ],
69 | ],
70 |
71 | 'redis' => [
72 | 'driver' => 'redis',
73 | 'connection' => 'default',
74 | ],
75 |
76 | ],
77 |
78 | /*
79 | |--------------------------------------------------------------------------
80 | | Cache Key Prefix
81 | |--------------------------------------------------------------------------
82 | |
83 | | When utilizing a RAM based store such as APC or Memcached, there might
84 | | be other applications utilizing the same cache. So, we'll specify a
85 | | value to get prefixed to all our keys so we can avoid collisions.
86 | |
87 | */
88 |
89 | 'prefix' => 'laravel',
90 |
91 | ];
92 |
--------------------------------------------------------------------------------
/app/Helpers/ResponseHelper.php:
--------------------------------------------------------------------------------
1 | 0) {
10 | if (is_object($data))
11 | $data = $data->toArray();
12 |
13 | $output['meta']=[
14 | 'code'=> $success_code,
15 | 'message'=> $success_response
16 | ];
17 |
18 | $output['data'] = $data;
19 |
20 | if (isset($data['data'])) {
21 | $output['data'] = $data['data'];
22 | $output['pagination'] = array_except($data, 'data');
23 | }
24 |
25 | return Response::json($output, $success_code);
26 |
27 | } else {
28 | $output['meta']=[
29 | 'code'=>404,
30 | 'message'=>'Data Not Found'
31 | ];
32 |
33 | return Response::json($output, 404);
34 | }
35 | }
36 |
37 | public static function error($code = '', $message = '')
38 | {
39 | switch ($code) {
40 | case 400:
41 | $httpMessage = 'Bad Request';
42 | break;
43 |
44 | case 401:
45 | $httpMessage = 'Unauthorized';
46 | break;
47 |
48 | case 403:
49 | $httpMessage = 'Forbidden';
50 | break;
51 |
52 | case 404:
53 | $httpMessage = 'Not Found';
54 | break;
55 |
56 | case 405:
57 | $httpMessage = 'Method Not Allowed';
58 | break;
59 |
60 | case 422:
61 | $httpMessage = 'Unprocessable Entity';
62 | break;
63 |
64 | case 500:
65 | $httpMessage = 'Internal Server Error';
66 | break;
67 |
68 | default:
69 | $httpMessage = 'Internal server error';
70 | break;
71 | }
72 |
73 | $output['meta']=[
74 | 'code'=>$code,
75 | 'message'=> empty($message) ? $httpMessage : $message
76 | ];
77 |
78 | return Response::json($output, $code);
79 | }
80 |
81 | public static function validate($validate, $message = '', $data = '')
82 | {
83 | if ($validate->fails()) {
84 | $errors = array_flatten($validate->errors()->toArray());
85 |
86 | $output['meta']=[
87 | 'code'=>422,
88 | 'message'=> array_first($errors)
89 | ];
90 |
91 | return Response::json($output, 422);
92 | }
93 |
94 | $output['meta']=[
95 | 'code'=>200,
96 | 'message'=> $message == '' || !is_string($message) ? 'Data has been saved' : $message
97 | ];
98 |
99 | $output['data'] = $data;
100 |
101 | if (!is_string($message))
102 | $output['data'] = $message;
103 |
104 | return Response::json($output, 422);
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/resources/assets/sass/_variables.scss:
--------------------------------------------------------------------------------
1 |
2 | // Body
3 | $body-bg: #fff;
4 |
5 | // Borders
6 | $laravel-border-color: darken($body-bg, 10%);
7 | $list-group-border: $laravel-border-color;
8 | $navbar-default-border: $laravel-border-color;
9 | $panel-default-border: $laravel-border-color;
10 | $panel-inner-border: $laravel-border-color;
11 |
12 | // Brands
13 | $brand-primary: #3097D1;
14 | $brand-info: #8eb4cb;
15 | $brand-success: #2ab27b;
16 | $brand-warning: #cbb956;
17 | $brand-danger: #bf5329;
18 |
19 | // Typography
20 | $icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/";
21 | $font-family-sans-serif: "Exo", sans-serif;
22 | $font-size-base: 14px;
23 | $line-height-base: 1.6;
24 | $text-color: #636b6f;
25 |
26 | // Navbar
27 | $navbar-default-bg: #fff;
28 |
29 | // Buttons
30 | $btn-default-color: $text-color;
31 |
32 | // Inputs
33 | $input-border: lighten($text-color, 40%);
34 | $input-border-focus: lighten($brand-primary, 25%);
35 | $input-color-placeholder: lighten($text-color, 30%);
36 |
37 | // Panels
38 | $panel-default-heading-bg: #fff;
39 |
40 | // -----------------------------------------------------------------------------
41 | // This file contains all application-wide Sass variables.
42 | // -----------------------------------------------------------------------------
43 |
44 |
45 |
46 |
47 |
48 | /// Regular font family
49 | /// @type List
50 | $text-font-stack: 'Open Sans', 'Helvetica Neue Light', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif !default;
51 |
52 | /// Code (monospace) font family
53 | /// @type List
54 | $code-font-stack: 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Monaco', monospace !default;
55 |
56 |
57 |
58 |
59 |
60 | /// Copy text color
61 | /// @type Color
62 | $text-color: #4A4A4A !default;
63 |
64 | /// Main brand color
65 | /// @type Color
66 | $brand-color: #da5505 !default;
67 |
68 | /// Secondary brand color
69 | /// @type Color
70 | $secondary-brand-color: #F8941E !default;
71 |
72 | /// Light grey
73 | /// @type Color
74 | $light-grey: rgb(237, 237, 237) !default;
75 |
76 | /// White
77 | /// @type Color
78 | $white: rgb(255, 255, 255) !default;
79 |
80 | /// Medium grey
81 | /// @type Color
82 | $mid-grey: rgb(153, 153, 153) !default;
83 |
84 | /// Dark gray
85 | /// @type Color
86 | $dark-grey: rgb(68, 68, 68) !default;
87 |
88 |
89 |
90 |
91 |
92 | /// Container's maximum width
93 | /// @type Length
94 | $max-width: 1180px !default;
95 |
96 |
97 |
98 |
99 |
100 | /// Breakpoints map
101 | /// @prop {String} keys - Keys are identifiers mapped to a given length
102 | /// @prop {Map} values - Values are actual breakpoints expressed in pixels
103 | /// @see {mixin} respond-to
104 | $breakpoints: (
105 | 'small': (min-width: 320px),
106 | 'medium': (min-width: 768px),
107 | 'large': (min-width: 1024px),
108 | ) !default;
109 |
110 |
111 |
112 |
113 |
114 |
115 | /// Relative or absolute URL where all assets are served from
116 | /// @type String
117 | /// @example scss - When using a CDN
118 | /// $base-url: 'http://cdn.example.com/assets/';
119 | $base-url: '/assets/' !default;
120 |
121 |
--------------------------------------------------------------------------------
/resources/views/auth/login.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layout.app')
2 |
3 | @section('content')
4 |
68 | @endsection
69 |
--------------------------------------------------------------------------------
/resources/views/layout/includes/header.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
62 |
--------------------------------------------------------------------------------
/resources/assets/sass/app.scss:
--------------------------------------------------------------------------------
1 | // Fonts
2 | @import url(https://fonts.googleapis.com/css?family=Raleway:300,400,600);
3 | // Variables
4 | @import "variables";
5 | @import "bootstrap_variables";
6 | // Bootstrap
7 | @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
8 | *,
9 | html,
10 | body {
11 | font-family: 'Roboto', sans-serif;
12 | }
13 |
14 | #main {
15 | margin-top: 56px;
16 | }
17 |
18 | #map-canvas {
19 | height: calc(100vh - 56px);
20 | width: 100vw;
21 | border: 0;
22 | }
23 |
24 | .panel-auth {
25 | margin-top: 40px;
26 | }
27 |
28 | .search-container {
29 | position: absolute;
30 | top: 66px;
31 | left: 111px;
32 | background: #FFFFFF;
33 | box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
34 | padding: 10px;
35 | border-radius: 3px;
36 | .form-group {
37 | margin-bottom: 0;
38 | }
39 | }
40 |
41 | .filter-container {
42 | position: absolute;
43 | top: 66px;
44 | left: 600px;
45 | background: #FFFFFF;
46 | box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
47 | padding: 10px;
48 | border-radius: 3px;
49 | max-height: 600px;
50 | overflow-y: scroll;
51 | .form-group {
52 | margin-bottom: 0;
53 | }
54 | }
55 |
56 | .result-container {
57 | position: absolute;
58 | top: 126px;
59 | left: 111px;
60 | background: #FFFFFF;
61 | box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
62 | border-radius: 3px;
63 | max-height: 540px;
64 | overflow-y: scroll;
65 | .form-group {
66 | margin-bottom: 0;
67 | }
68 | }
69 |
70 | .detail-container {
71 | position: absolute;
72 | top: 96px;
73 | left: 111px;
74 | background: #FFFFFF;
75 | box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
76 | padding: 15px;
77 | border-radius: 3px;
78 | max-height: 600px;
79 | overflow-y: scroll;
80 | .form-group {
81 | margin-bottom: 0;
82 | }
83 | }
84 |
85 | .detail {
86 | display: block;
87 | }
88 |
89 | .search-input {
90 | border: 0 !important;
91 | box-shadow: none;
92 | font-size: 20px;
93 | &:focus {
94 | border: 0 !important;
95 | box-shadow: none;
96 | }
97 | }
98 |
99 | .results {
100 | border-bottom: 1px solid #eee;
101 | padding: 15px 0;
102 | width: 107%;
103 | transition: all 0.5s ease;
104 | &:hover {
105 | background: #f5f5f5;
106 | }
107 | .thumbnail-image {
108 | object-fit: cover;
109 | width: 50px;
110 | height: 50px;
111 | }
112 | .arrow-next {
113 | width: 30px;
114 | margin-top: 25px;
115 | margin-left: 10px;
116 | }
117 | h2 {
118 | font-size: 20px;
119 | color: #505050;
120 | margin: 0;
121 | margin-top: 5px;
122 | margin-bottom: 2px;
123 | }
124 | p {
125 | margin: 0;
126 | font-size: 12px;
127 | color: #505050;
128 | }
129 | }
130 |
131 | .result-search {
132 | display: block;
133 | }
134 |
135 | .carousel-park {
136 | margin: -15px;
137 | margin-bottom: 20px;
138 | }
139 |
140 | .button {
141 | margin-bottom: 5px;
142 | }
143 |
144 | .clearable {
145 | background: #fff url(http://i.stack.imgur.com/mJotv.gif) no-repeat right -10px center;
146 | border: 1px solid #999;
147 | padding: 3px 18px 3px 4px;
148 | /* Use the same right padding (18) in jQ! */
149 | border-radius: 3px;
150 | transition: background 0.4s;
151 | /* (jQ) Show icon */
152 | .x {
153 | background-position: right 5px center;
154 | }
155 | /* (jQ) hover cursor style */
156 | .onX {
157 | cursor: pointer;
158 | }
159 | /* Remove IE default X */
160 | &::-ms-clear {
161 | display: none;
162 | width: 0;
163 | height: 0;
164 | }
165 | }
166 |
167 | .amenities {
168 | .fa {
169 | margin-right: 3px;
170 | }
171 | }
--------------------------------------------------------------------------------
/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 | ],
48 | ],
49 |
50 | /*
51 | |--------------------------------------------------------------------------
52 | | User Providers
53 | |--------------------------------------------------------------------------
54 | |
55 | | All authentication drivers have a user provider. This defines how the
56 | | users are actually retrieved out of your database or other storage
57 | | mechanisms used by this application to persist your user's data.
58 | |
59 | | If you have multiple user tables or models you may configure multiple
60 | | sources which represent each model / table. These sources may then
61 | | be assigned to any extra authentication guards you have defined.
62 | |
63 | | Supported: "database", "eloquent"
64 | |
65 | */
66 |
67 | 'providers' => [
68 | 'users' => [
69 | 'driver' => 'eloquent',
70 | 'model' => App\User::class,
71 | ],
72 |
73 | // 'users' => [
74 | // 'driver' => 'database',
75 | // 'table' => 'users',
76 | // ],
77 | ],
78 |
79 | /*
80 | |--------------------------------------------------------------------------
81 | | Resetting Passwords
82 | |--------------------------------------------------------------------------
83 | |
84 | | You may specify multiple password reset configurations if you have more
85 | | than one user table or model in the application and you want to have
86 | | separate password reset settings based on the specific user types.
87 | |
88 | | The expire time is the number of minutes that the reset token should be
89 | | considered valid. This security feature keeps tokens short-lived so
90 | | they have less time to be guessed. You may change this as needed.
91 | |
92 | */
93 |
94 | 'passwords' => [
95 | 'users' => [
96 | 'provider' => 'users',
97 | 'table' => 'password_resets',
98 | 'expire' => 60,
99 | ],
100 | ],
101 |
102 | ];
103 |
--------------------------------------------------------------------------------
/resources/views/auth/passwords/reset.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layout.app')
2 |
3 | @section('content')
4 |
5 |
6 |
7 |
8 |
Reset Password
9 |
10 |
11 | @if (session('status'))
12 |
13 | {{ session('status') }}
14 |
15 | @endif
16 |
17 |
71 |
72 |
73 |
74 |
75 |
76 | @endsection
77 |
--------------------------------------------------------------------------------
/resources/views/auth/register.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layout.app')
2 |
3 | @section('content')
4 |
76 | @endsection
77 |
--------------------------------------------------------------------------------
/config/database.php:
--------------------------------------------------------------------------------
1 | env('DB_CONNECTION', 'mysql'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Database Connections
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here are each of the database connections setup for your application.
24 | | Of course, examples of configuring each database platform that is
25 | | supported by Laravel is shown below to make development simple.
26 | |
27 | |
28 | | All database work in Laravel is done through the PHP PDO facilities
29 | | so make sure you have the driver for your particular database of
30 | | choice installed on your machine before you begin development.
31 | |
32 | */
33 |
34 | 'connections' => [
35 |
36 | 'sqlite' => [
37 | 'driver' => 'sqlite',
38 | 'database' => env('DB_DATABASE', database_path('database.sqlite')),
39 | 'prefix' => '',
40 | ],
41 |
42 | 'mysql' => [
43 | 'driver' => 'mysql',
44 | 'host' => env('DB_HOST', '127.0.0.1'),
45 | 'port' => env('DB_PORT', '3306'),
46 | 'database' => env('DB_DATABASE', 'forge'),
47 | 'username' => env('DB_USERNAME', 'forge'),
48 | 'password' => env('DB_PASSWORD', ''),
49 | 'unix_socket' => env('DB_SOCKET', ''),
50 | 'charset' => 'utf8',
51 | 'collation' => 'utf8_unicode_ci',
52 | 'prefix' => '',
53 | 'strict' => true,
54 | 'engine' => null,
55 | ],
56 |
57 | 'pgsql' => [
58 | 'driver' => 'pgsql',
59 | 'host' => env('DB_HOST', '127.0.0.1'),
60 | 'port' => env('DB_PORT', '5432'),
61 | 'database' => env('DB_DATABASE', 'forge'),
62 | 'username' => env('DB_USERNAME', 'forge'),
63 | 'password' => env('DB_PASSWORD', ''),
64 | 'charset' => 'utf8',
65 | 'prefix' => '',
66 | 'schema' => 'public',
67 | 'sslmode' => 'prefer',
68 | ],
69 |
70 | ],
71 |
72 | /*
73 | |--------------------------------------------------------------------------
74 | | Migration Repository Table
75 | |--------------------------------------------------------------------------
76 | |
77 | | This table keeps track of all the migrations that have already run for
78 | | your application. Using this information, we can determine which of
79 | | the migrations on disk haven't actually been run in the database.
80 | |
81 | */
82 |
83 | 'migrations' => 'migrations',
84 |
85 | /*
86 | |--------------------------------------------------------------------------
87 | | Redis Databases
88 | |--------------------------------------------------------------------------
89 | |
90 | | Redis is an open source, fast, and advanced key-value store that also
91 | | provides a richer set of commands than a typical key-value systems
92 | | such as APC or Memcached. Laravel makes it easy to dig right in.
93 | |
94 | */
95 |
96 | 'redis' => [
97 |
98 | 'client' => 'predis',
99 |
100 | 'default' => [
101 | 'host' => env('REDIS_HOST', '127.0.0.1'),
102 | 'password' => env('REDIS_PASSWORD', null),
103 | 'port' => env('REDIS_PORT', 6379),
104 | 'database' => 0,
105 | ],
106 |
107 | ],
108 |
109 | ];
110 |
--------------------------------------------------------------------------------
/app/Helpers/Generate.php:
--------------------------------------------------------------------------------
1 | 60.0
26 | ]);
27 | switch ($method) {
28 | case 'GET':
29 | $bodyType = 'query';
30 | break;
31 | case 'POST':
32 | $bodyType = $multipart ? 'multipart' : 'form_params';
33 | break;
34 | case 'DELETE':
35 | $bodyType = 'query';
36 | break;
37 | default:
38 | $bodyType = '';
39 | break;
40 | }
41 | try {
42 | if (isset($access_token)) {
43 | $response = $client->request($method, env('API_URL') . $endpoint, [
44 | $bodyType => $data,
45 | 'headers' => [
46 | 'verify' => static::VERIFY,
47 | 'User-Agent' => static::USER_AGENT,
48 | 'Accept' => 'application/json',
49 | 'Authorization' => "Bearer " . $access_token,
50 | ]
51 | ]);
52 | }
53 |
54 | if (is_null($access_token)) {
55 | $response = $client->request($method, env('API_URL') . $endpoint, [
56 | $bodyType => $data,
57 | 'headers' => [
58 | 'verify' => static::VERIFY,
59 | 'User-Agent' => static::USER_AGENT,
60 | 'Accept' => 'application/json',
61 | ]
62 | ]);
63 | }
64 | return json_decode($response->getBody(),true);
65 | } catch (RequestException $e) {
66 | if ($e->hasResponse()) {
67 | return json_decode($e->getResponse()->getBody(true), true);
68 | }
69 | }
70 | }
71 |
72 | /**
73 | * @param $endpoint
74 | * @param array $data
75 | * @param null $access_token
76 | * @param bool $multipart
77 | * @return mixed
78 | */
79 | public static function post($endpoint, $data = [], $access_token = null, $multipart = false)
80 | {
81 | return static::call($endpoint, 'POST', $data, $access_token, $multipart);
82 | }
83 |
84 | /**
85 | * @param $endpoint
86 | * @param array $data
87 | * @param null $access_token
88 | * @param bool $multipart
89 | * @return mixed
90 | */
91 | public static function get($endpoint, $data = [], $access_token = null, $multipart = false)
92 | {
93 | return static::call($endpoint, 'GET', $data, $access_token, $multipart);
94 | }
95 |
96 | /**
97 | * @param $endpoint
98 | * @param array $data
99 | * @param null $access_token
100 | * @param bool $multipart
101 | * @return mixed
102 | */
103 | public static function put($endpoint, $data = [], $access_token = null, $multipart = false)
104 | {
105 | return static::call($endpoint, 'PUT', $data, $access_token, $multipart);
106 | }
107 |
108 | /**
109 | * @param $endpoint
110 | * @param array $data
111 | * @param null $access_token
112 | * @param bool $multipart
113 | * @return mixed
114 | */
115 | public static function patch($endpoint, $data = [], $access_token = null, $multipart = false)
116 | {
117 | return static::call($endpoint, 'PATCH', $data, $access_token, $multipart);
118 | }
119 |
120 | /**
121 | * @param $endpoint
122 | * @param array $data
123 | * @param null $access_token
124 | * @param bool $multipart
125 | * @return mixed
126 | */
127 | public static function delete($endpoint, $data = [], $access_token = null, $multipart = false)
128 | {
129 | return static::call($endpoint, 'DELETE', $data, $access_token, $multipart);
130 | }
131 | }
--------------------------------------------------------------------------------
/config/mail.php:
--------------------------------------------------------------------------------
1 | env('MAIL_DRIVER', 'smtp'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | SMTP Host Address
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may provide the host address of the SMTP server used by your
27 | | applications. A default option is provided that is compatible with
28 | | the Mailgun mail service which will provide reliable deliveries.
29 | |
30 | */
31 |
32 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
33 |
34 | /*
35 | |--------------------------------------------------------------------------
36 | | SMTP Host Port
37 | |--------------------------------------------------------------------------
38 | |
39 | | This is the SMTP port used by your application to deliver e-mails to
40 | | users of the application. Like the host we have set this value to
41 | | stay compatible with the Mailgun e-mail application by default.
42 | |
43 | */
44 |
45 | 'port' => env('MAIL_PORT', 587),
46 |
47 | /*
48 | |--------------------------------------------------------------------------
49 | | Global "From" Address
50 | |--------------------------------------------------------------------------
51 | |
52 | | You may wish for all e-mails sent by your application to be sent from
53 | | the same address. Here, you may specify a name and address that is
54 | | used globally for all e-mails that are sent by your application.
55 | |
56 | */
57 |
58 | 'from' => [
59 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
60 | 'name' => env('MAIL_FROM_NAME', 'Example'),
61 | ],
62 |
63 | /*
64 | |--------------------------------------------------------------------------
65 | | E-Mail Encryption Protocol
66 | |--------------------------------------------------------------------------
67 | |
68 | | Here you may specify the encryption protocol that should be used when
69 | | the application send e-mail messages. A sensible default using the
70 | | transport layer security protocol should provide great security.
71 | |
72 | */
73 |
74 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
75 |
76 | /*
77 | |--------------------------------------------------------------------------
78 | | SMTP Server Username
79 | |--------------------------------------------------------------------------
80 | |
81 | | If your SMTP server requires a username for authentication, you should
82 | | set it here. This will get used to authenticate with your server on
83 | | connection. You may also set the "password" value below this one.
84 | |
85 | */
86 |
87 | 'username' => env('MAIL_USERNAME'),
88 |
89 | 'password' => env('MAIL_PASSWORD'),
90 |
91 | /*
92 | |--------------------------------------------------------------------------
93 | | Sendmail System Path
94 | |--------------------------------------------------------------------------
95 | |
96 | | When using the "sendmail" driver to send e-mails, we will need to know
97 | | the path to where Sendmail lives on this server. A default path has
98 | | been provided here, which will work well on most of your systems.
99 | |
100 | */
101 |
102 | 'sendmail' => '/usr/sbin/sendmail -bs',
103 |
104 | /*
105 | |--------------------------------------------------------------------------
106 | | Markdown Mail Settings
107 | |--------------------------------------------------------------------------
108 | |
109 | | If you are using Markdown based email rendering, you may configure your
110 | | theme and component paths here, allowing you to customize the design
111 | | of the emails. Or, you may simply stick with the Laravel defaults!
112 | |
113 | */
114 |
115 | 'markdown' => [
116 | 'theme' => 'default',
117 |
118 | 'paths' => [
119 | resource_path('views/vendor/mail'),
120 | ],
121 | ],
122 |
123 | ];
124 |
--------------------------------------------------------------------------------
/resources/lang/en/validation.php:
--------------------------------------------------------------------------------
1 | 'The :attribute must be accepted.',
17 | 'active_url' => 'The :attribute is not a valid URL.',
18 | 'after' => 'The :attribute must be a date after :date.',
19 | 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
20 | 'alpha' => 'The :attribute may only contain letters.',
21 | 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
22 | 'alpha_num' => 'The :attribute may only contain letters and numbers.',
23 | 'array' => 'The :attribute must be an array.',
24 | 'before' => 'The :attribute must be a date before :date.',
25 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
26 | 'between' => [
27 | 'numeric' => 'The :attribute must be between :min and :max.',
28 | 'file' => 'The :attribute must be between :min and :max kilobytes.',
29 | 'string' => 'The :attribute must be between :min and :max characters.',
30 | 'array' => 'The :attribute must have between :min and :max items.',
31 | ],
32 | 'boolean' => 'The :attribute field must be true or false.',
33 | 'confirmed' => 'The :attribute confirmation does not match.',
34 | 'date' => 'The :attribute is not a valid date.',
35 | 'date_format' => 'The :attribute does not match the format :format.',
36 | 'different' => 'The :attribute and :other must be different.',
37 | 'digits' => 'The :attribute must be :digits digits.',
38 | 'digits_between' => 'The :attribute must be between :min and :max digits.',
39 | 'dimensions' => 'The :attribute has invalid image dimensions.',
40 | 'distinct' => 'The :attribute field has a duplicate value.',
41 | 'email' => 'The :attribute must be a valid email address.',
42 | 'exists' => 'The selected :attribute is invalid.',
43 | 'file' => 'The :attribute must be a file.',
44 | 'filled' => 'The :attribute field must have a value.',
45 | 'image' => 'The :attribute must be an image.',
46 | 'in' => 'The selected :attribute is invalid.',
47 | 'in_array' => 'The :attribute field does not exist in :other.',
48 | 'integer' => 'The :attribute must be an integer.',
49 | 'ip' => 'The :attribute must be a valid IP address.',
50 | 'json' => 'The :attribute must be a valid JSON string.',
51 | 'max' => [
52 | 'numeric' => 'The :attribute may not be greater than :max.',
53 | 'file' => 'The :attribute may not be greater than :max kilobytes.',
54 | 'string' => 'The :attribute may not be greater than :max characters.',
55 | 'array' => 'The :attribute may not have more than :max items.',
56 | ],
57 | 'mimes' => 'The :attribute must be a file of type: :values.',
58 | 'mimetypes' => 'The :attribute must be a file of type: :values.',
59 | 'min' => [
60 | 'numeric' => 'The :attribute must be at least :min.',
61 | 'file' => 'The :attribute must be at least :min kilobytes.',
62 | 'string' => 'The :attribute must be at least :min characters.',
63 | 'array' => 'The :attribute must have at least :min items.',
64 | ],
65 | 'not_in' => 'The selected :attribute is invalid.',
66 | 'numeric' => 'The :attribute must be a number.',
67 | 'present' => 'The :attribute field must be present.',
68 | 'regex' => 'The :attribute format is invalid.',
69 | 'required' => 'The :attribute field is required.',
70 | 'required_if' => 'The :attribute field is required when :other is :value.',
71 | 'required_unless' => 'The :attribute field is required unless :other is in :values.',
72 | 'required_with' => 'The :attribute field is required when :values is present.',
73 | 'required_with_all' => 'The :attribute field is required when :values is present.',
74 | 'required_without' => 'The :attribute field is required when :values is not present.',
75 | 'required_without_all' => 'The :attribute field is required when none of :values are present.',
76 | 'same' => 'The :attribute and :other must match.',
77 | 'size' => [
78 | 'numeric' => 'The :attribute must be :size.',
79 | 'file' => 'The :attribute must be :size kilobytes.',
80 | 'string' => 'The :attribute must be :size characters.',
81 | 'array' => 'The :attribute must contain :size items.',
82 | ],
83 | 'string' => 'The :attribute must be a string.',
84 | 'timezone' => 'The :attribute must be a valid zone.',
85 | 'unique' => 'The :attribute has already been taken.',
86 | 'uploaded' => 'The :attribute failed to upload.',
87 | 'url' => 'The :attribute format is invalid.',
88 |
89 | /*
90 | |--------------------------------------------------------------------------
91 | | Custom Validation Language Lines
92 | |--------------------------------------------------------------------------
93 | |
94 | | Here you may specify custom validation messages for attributes using the
95 | | convention "attribute.rule" to name the lines. This makes it quick to
96 | | specify a specific custom language line for a given attribute rule.
97 | |
98 | */
99 |
100 | 'custom' => [
101 | 'attribute-name' => [
102 | 'rule-name' => 'custom-message',
103 | ],
104 | ],
105 |
106 | /*
107 | |--------------------------------------------------------------------------
108 | | Custom Validation Attributes
109 | |--------------------------------------------------------------------------
110 | |
111 | | The following language lines are used to swap attribute place-holders
112 | | with something more reader friendly such as E-Mail Address instead
113 | | of "email". This simply helps us make messages a little cleaner.
114 | |
115 | */
116 |
117 | 'attributes' => [],
118 |
119 | ];
120 |
--------------------------------------------------------------------------------
/config/session.php:
--------------------------------------------------------------------------------
1 | env('SESSION_DRIVER', 'file'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Session Lifetime
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may specify the number of minutes that you wish the session
27 | | to be allowed to remain idle before it expires. If you want them
28 | | to immediately expire on the browser closing, set that option.
29 | |
30 | */
31 |
32 | 'lifetime' => 120,
33 |
34 | 'expire_on_close' => false,
35 |
36 | /*
37 | |--------------------------------------------------------------------------
38 | | Session Encryption
39 | |--------------------------------------------------------------------------
40 | |
41 | | This option allows you to easily specify that all of your session data
42 | | should be encrypted before it is stored. All encryption will be run
43 | | automatically by Laravel and you can use the Session like normal.
44 | |
45 | */
46 |
47 | 'encrypt' => false,
48 |
49 | /*
50 | |--------------------------------------------------------------------------
51 | | Session File Location
52 | |--------------------------------------------------------------------------
53 | |
54 | | When using the native session driver, we need a location where session
55 | | files may be stored. A default has been set for you but a different
56 | | location may be specified. This is only needed for file sessions.
57 | |
58 | */
59 |
60 | 'files' => storage_path('framework/sessions'),
61 |
62 | /*
63 | |--------------------------------------------------------------------------
64 | | Session Database Connection
65 | |--------------------------------------------------------------------------
66 | |
67 | | When using the "database" or "redis" session drivers, you may specify a
68 | | connection that should be used to manage these sessions. This should
69 | | correspond to a connection in your database configuration options.
70 | |
71 | */
72 |
73 | 'connection' => null,
74 |
75 | /*
76 | |--------------------------------------------------------------------------
77 | | Session Database Table
78 | |--------------------------------------------------------------------------
79 | |
80 | | When using the "database" session driver, you may specify the table we
81 | | should use to manage the sessions. Of course, a sensible default is
82 | | provided for you; however, you are free to change this as needed.
83 | |
84 | */
85 |
86 | 'table' => 'sessions',
87 |
88 | /*
89 | |--------------------------------------------------------------------------
90 | | Session Cache Store
91 | |--------------------------------------------------------------------------
92 | |
93 | | When using the "apc" or "memcached" session drivers, you may specify a
94 | | cache store that should be used for these sessions. This value must
95 | | correspond with one of the application's configured cache stores.
96 | |
97 | */
98 |
99 | 'store' => null,
100 |
101 | /*
102 | |--------------------------------------------------------------------------
103 | | Session Sweeping Lottery
104 | |--------------------------------------------------------------------------
105 | |
106 | | Some session drivers must manually sweep their storage location to get
107 | | rid of old sessions from storage. Here are the chances that it will
108 | | happen on a given request. By default, the odds are 2 out of 100.
109 | |
110 | */
111 |
112 | 'lottery' => [2, 100],
113 |
114 | /*
115 | |--------------------------------------------------------------------------
116 | | Session Cookie Name
117 | |--------------------------------------------------------------------------
118 | |
119 | | Here you may change the name of the cookie used to identify a session
120 | | instance by ID. The name specified here will get used every time a
121 | | new session cookie is created by the framework for every driver.
122 | |
123 | */
124 |
125 | 'cookie' => 'laravel_session',
126 |
127 | /*
128 | |--------------------------------------------------------------------------
129 | | Session Cookie Path
130 | |--------------------------------------------------------------------------
131 | |
132 | | The session cookie path determines the path for which the cookie will
133 | | be regarded as available. Typically, this will be the root path of
134 | | your application but you are free to change this when necessary.
135 | |
136 | */
137 |
138 | 'path' => '/',
139 |
140 | /*
141 | |--------------------------------------------------------------------------
142 | | Session Cookie Domain
143 | |--------------------------------------------------------------------------
144 | |
145 | | Here you may change the domain of the cookie used to identify a session
146 | | in your application. This will determine which domains the cookie is
147 | | available to in your application. A sensible default has been set.
148 | |
149 | */
150 |
151 | 'domain' => env('SESSION_DOMAIN', null),
152 |
153 | /*
154 | |--------------------------------------------------------------------------
155 | | HTTPS Only Cookies
156 | |--------------------------------------------------------------------------
157 | |
158 | | By setting this option to true, session cookies will only be sent back
159 | | to the server if the browser has a HTTPS connection. This will keep
160 | | the cookie from being sent to you if it can not be done securely.
161 | |
162 | */
163 |
164 | 'secure' => env('SESSION_SECURE_COOKIE', false),
165 |
166 | /*
167 | |--------------------------------------------------------------------------
168 | | HTTP Access Only
169 | |--------------------------------------------------------------------------
170 | |
171 | | Setting this value to true will prevent JavaScript from accessing the
172 | | value of the cookie and the cookie will only be accessible through
173 | | the HTTP protocol. You are free to modify this option if needed.
174 | |
175 | */
176 |
177 | 'http_only' => true,
178 |
179 | ];
180 |
--------------------------------------------------------------------------------
/resources/views/detail.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layout.app')
2 |
3 | @section('title')
4 | Taman Bandung
5 | @endsection
6 |
7 | @section('description')
8 |
9 | @endsection
10 |
11 | @section('content')
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | @if($location['lat'] == 0 && $location['lng'] == 0)
25 |
26 | Lokasi tidak ditemukan di Google Maps
27 |
28 | @endif
29 |
30 | {{ $sekolah['name'] }}
31 |
32 | Sekolah {{ ucwords(strtolower(str_replace("_", " ", $sekolah['status']))) }} · {{ ucwords(strtolower(str_replace("_", " ", $sekolah['villages']))) }}, {{ ucwords(strtolower(str_replace("_", " ", $sekolah['subdistricts']))) }}
33 |
34 | @if($sekolah['akreditasi'])
35 | Akreditasi {{ $sekolah['akreditasi'] }}
36 | @endif
37 |
38 |
39 | {!! $sekolah['description'] !!}
40 |
41 |
42 | {{ $sekolah['lat'] }} {{ $sekolah['lng'] }}
43 |
44 |
45 | Fasilitas
46 |
47 | @if($sekolah['internet'])
48 |
Internet
49 | @endif
50 | @if($sekolah['listrik'])
51 |
Listrik
52 | @endif
53 | @if($sekolah['wc'])
54 |
Toilet
55 | @endif
56 | @if($sekolah['perpustakaan'])
57 |
Perpustakaan
58 | @endif
59 | @if($sekolah['lab'])
60 |
Toilet
61 | @endif
62 |
63 |
64 |
73 |
74 |
75 |
76 | @endsection
77 |
78 |
79 | @section('custom-script')
80 |
81 |
130 |
165 |
179 |
188 | @endsection
189 |
--------------------------------------------------------------------------------
/config/app.php:
--------------------------------------------------------------------------------
1 | env('APP_NAME', 'Laravel'),
16 |
17 | /*
18 | |--------------------------------------------------------------------------
19 | | Application Environment
20 | |--------------------------------------------------------------------------
21 | |
22 | | This value determines the "environment" your application is currently
23 | | running in. This may determine how you prefer to configure various
24 | | services your application utilizes. Set this in your ".env" file.
25 | |
26 | */
27 |
28 | 'env' => env('APP_ENV', 'production'),
29 |
30 | /*
31 | |--------------------------------------------------------------------------
32 | | Application Debug Mode
33 | |--------------------------------------------------------------------------
34 | |
35 | | When your application is in debug mode, detailed error messages with
36 | | stack traces will be shown on every error that occurs within your
37 | | application. If disabled, a simple generic error page is shown.
38 | |
39 | */
40 |
41 | 'debug' => env('APP_DEBUG', false),
42 |
43 | /*
44 | |--------------------------------------------------------------------------
45 | | Application URL
46 | |--------------------------------------------------------------------------
47 | |
48 | | This URL is used by the console to properly generate URLs when using
49 | | the Artisan command line tool. You should set this to the root of
50 | | your application so that it is used when running Artisan tasks.
51 | |
52 | */
53 |
54 | 'url' => env('APP_URL', 'http://localhost'),
55 |
56 | /*
57 | |--------------------------------------------------------------------------
58 | | Application Timezone
59 | |--------------------------------------------------------------------------
60 | |
61 | | Here you may specify the default timezone for your application, which
62 | | will be used by the PHP date and date-time functions. We have gone
63 | | ahead and set this to a sensible default for you out of the box.
64 | |
65 | */
66 |
67 | 'timezone' => 'UTC',
68 |
69 | /*
70 | |--------------------------------------------------------------------------
71 | | Application Locale Configuration
72 | |--------------------------------------------------------------------------
73 | |
74 | | The application locale determines the default locale that will be used
75 | | by the translation service provider. You are free to set this value
76 | | to any of the locales which will be supported by the application.
77 | |
78 | */
79 |
80 | 'locale' => 'en',
81 |
82 | /*
83 | |--------------------------------------------------------------------------
84 | | Application Fallback Locale
85 | |--------------------------------------------------------------------------
86 | |
87 | | The fallback locale determines the locale to use when the current one
88 | | is not available. You may change the value to correspond to any of
89 | | the language folders that are provided through your application.
90 | |
91 | */
92 |
93 | 'fallback_locale' => 'en',
94 |
95 | /*
96 | |--------------------------------------------------------------------------
97 | | Encryption Key
98 | |--------------------------------------------------------------------------
99 | |
100 | | This key is used by the Illuminate encrypter service and should be set
101 | | to a random, 32 character string, otherwise these encrypted strings
102 | | will not be safe. Please do this before deploying an application!
103 | |
104 | */
105 |
106 | 'key' => env('APP_KEY'),
107 |
108 | 'cipher' => 'AES-256-CBC',
109 |
110 | /*
111 | |--------------------------------------------------------------------------
112 | | Logging Configuration
113 | |--------------------------------------------------------------------------
114 | |
115 | | Here you may configure the log settings for your application. Out of
116 | | the box, Laravel uses the Monolog PHP logging library. This gives
117 | | you a variety of powerful log handlers / formatters to utilize.
118 | |
119 | | Available Settings: "single", "daily", "syslog", "errorlog"
120 | |
121 | */
122 |
123 | 'log' => env('APP_LOG', 'single'),
124 |
125 | 'log_level' => env('APP_LOG_LEVEL', 'debug'),
126 |
127 | /*
128 | |--------------------------------------------------------------------------
129 | | Autoloaded Service Providers
130 | |--------------------------------------------------------------------------
131 | |
132 | | The service providers listed here will be automatically loaded on the
133 | | request to your application. Feel free to add your own services to
134 | | this array to grant expanded functionality to your applications.
135 | |
136 | */
137 |
138 | 'providers' => [
139 |
140 | /*
141 | * Laravel Framework Service Providers...
142 | */
143 | Illuminate\Auth\AuthServiceProvider::class,
144 | Illuminate\Broadcasting\BroadcastServiceProvider::class,
145 | Illuminate\Bus\BusServiceProvider::class,
146 | Illuminate\Cache\CacheServiceProvider::class,
147 | Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
148 | Illuminate\Cookie\CookieServiceProvider::class,
149 | Illuminate\Database\DatabaseServiceProvider::class,
150 | Illuminate\Encryption\EncryptionServiceProvider::class,
151 | Illuminate\Filesystem\FilesystemServiceProvider::class,
152 | Illuminate\Foundation\Providers\FoundationServiceProvider::class,
153 | Illuminate\Hashing\HashServiceProvider::class,
154 | Illuminate\Mail\MailServiceProvider::class,
155 | Illuminate\Notifications\NotificationServiceProvider::class,
156 | Illuminate\Pagination\PaginationServiceProvider::class,
157 | Illuminate\Pipeline\PipelineServiceProvider::class,
158 | Illuminate\Queue\QueueServiceProvider::class,
159 | Illuminate\Redis\RedisServiceProvider::class,
160 | Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
161 | Illuminate\Session\SessionServiceProvider::class,
162 | Illuminate\Translation\TranslationServiceProvider::class,
163 | Illuminate\Validation\ValidationServiceProvider::class,
164 | Illuminate\View\ViewServiceProvider::class,
165 |
166 | /*
167 | * Package Service Providers...
168 | */
169 | Laravel\Tinker\TinkerServiceProvider::class,
170 |
171 | /*
172 | * Application Service Providers...
173 | */
174 | App\Providers\AppServiceProvider::class,
175 | App\Providers\AuthServiceProvider::class,
176 | // App\Providers\BroadcastServiceProvider::class,
177 | App\Providers\EventServiceProvider::class,
178 | App\Providers\RouteServiceProvider::class,
179 |
180 | ],
181 |
182 | /*
183 | |--------------------------------------------------------------------------
184 | | Class Aliases
185 | |--------------------------------------------------------------------------
186 | |
187 | | This array of class aliases will be registered when this application
188 | | is started. However, feel free to register as many as you wish as
189 | | the aliases are "lazy" loaded so they don't hinder performance.
190 | |
191 | */
192 |
193 | 'aliases' => [
194 |
195 | 'App' => Illuminate\Support\Facades\App::class,
196 | 'Artisan' => Illuminate\Support\Facades\Artisan::class,
197 | 'Auth' => Illuminate\Support\Facades\Auth::class,
198 | 'Blade' => Illuminate\Support\Facades\Blade::class,
199 | 'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
200 | 'Bus' => Illuminate\Support\Facades\Bus::class,
201 | 'Cache' => Illuminate\Support\Facades\Cache::class,
202 | 'Config' => Illuminate\Support\Facades\Config::class,
203 | 'Cookie' => Illuminate\Support\Facades\Cookie::class,
204 | 'Crypt' => Illuminate\Support\Facades\Crypt::class,
205 | 'DB' => Illuminate\Support\Facades\DB::class,
206 | 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
207 | 'Event' => Illuminate\Support\Facades\Event::class,
208 | 'File' => Illuminate\Support\Facades\File::class,
209 | 'Gate' => Illuminate\Support\Facades\Gate::class,
210 | 'Hash' => Illuminate\Support\Facades\Hash::class,
211 | 'Lang' => Illuminate\Support\Facades\Lang::class,
212 | 'Log' => Illuminate\Support\Facades\Log::class,
213 | 'Mail' => Illuminate\Support\Facades\Mail::class,
214 | 'Notification' => Illuminate\Support\Facades\Notification::class,
215 | 'Password' => Illuminate\Support\Facades\Password::class,
216 | 'Queue' => Illuminate\Support\Facades\Queue::class,
217 | 'Redirect' => Illuminate\Support\Facades\Redirect::class,
218 | 'Redis' => Illuminate\Support\Facades\Redis::class,
219 | 'Request' => Illuminate\Support\Facades\Request::class,
220 | 'Response' => Illuminate\Support\Facades\Response::class,
221 | 'Route' => Illuminate\Support\Facades\Route::class,
222 | 'Schema' => Illuminate\Support\Facades\Schema::class,
223 | 'Session' => Illuminate\Support\Facades\Session::class,
224 | 'Storage' => Illuminate\Support\Facades\Storage::class,
225 | 'URL' => Illuminate\Support\Facades\URL::class,
226 | 'Validator' => Illuminate\Support\Facades\Validator::class,
227 | 'View' => Illuminate\Support\Facades\View::class,
228 |
229 | ],
230 |
231 | ];
232 |
--------------------------------------------------------------------------------
/public/data/sekolah.json:
--------------------------------------------------------------------------------
1 | {"total":41,"records":[{"id":"1024","categories_id":"2","subdistricts_id":"4","types_id":null,"name":"TPU Astana Anyar","location":"Jl. Bojongloa, Astana Anyar","lat":-6.931967,"lng":107.598433,"recid":"1024","categories":"T P U","subdistricts":"Astana Anyar","districts_id":"3","districts":"Tegalega","districts_color":"#3161fd","types":null,"priority":null,"url":"\/places\/1024\/tpu-astana-anyar","thumb":"\/uploads\/pictures\/2015\/05\/1024\/thumb\/55b076692efd3.jpg"},{"id":"1027","categories_id":"2","subdistricts_id":"5","types_id":null,"name":"TPU Babakan Ciparay","location":"Jl. Makam Caringin, Babakan Ciparay","lat":-6.94893,"lng":107.583001,"recid":"1027","categories":"T P U","subdistricts":"Babakan Ciparay","districts_id":"3","districts":"Tegalega","districts_color":"#3161fd","types":null,"priority":null,"url":"\/places\/1027\/tpu-babakan-ciparay","thumb":"\/uploads\/pictures\/2015\/05\/1027\/thumb\/55c1bc89eb44b.jpg"},{"id":"1020","categories_id":"2","subdistricts_id":"28","types_id":null,"name":"TPU Cibarunay","location":"Jl. Sarijadi, Sukasari","lat":-6.879206,"lng":107.572608,"recid":"1020","categories":"T P U","subdistricts":"Sukasari","districts_id":"1","districts":"Bojonagara","districts_color":"#c00007","types":null,"priority":null,"url":"\/places\/1020\/tpu-cibarunay","thumb":"\/uploads\/pictures\/2015\/05\/1020\/thumb\/55c1c77fbbabe.jpg"},{"id":"1026","categories_id":"2","subdistricts_id":"11","types_id":null,"name":"TPU Ciburuy","location":"Jl. Moch. Toha, Bojongloa Kidul","lat":-6.955696,"lng":107.614887,"recid":"1026","categories":"T P U","subdistricts":"Bojongloa Kidul","districts_id":"3","districts":"Tegalega","districts_color":"#3161fd","types":null,"priority":null,"url":"\/places\/1026\/tpu-ciburuy","thumb":"\/uploads\/pictures\/2015\/05\/1026\/thumb\/55b076b7ece1f.jpg"},{"id":"1021","categories_id":"2","subdistricts_id":"23","types_id":null,"name":"TPU Cikadut","location":"Jl. Cikadut, Mandalajati","lat":-6.893803,"lng":107.666518,"recid":"1021","categories":"T P U","subdistricts":"Mandalajati","districts_id":"5","districts":"Ujungberung","districts_color":"#6a20f1","types":null,"priority":null,"url":"\/places\/1021\/tpu-cikadut","thumb":"\/uploads\/pictures\/2015\/05\/1021\/thumb\/55c1c6d124425.jpg"},{"id":"1016","categories_id":"2","subdistricts_id":"13","types_id":null,"name":"TPU Cikutra","location":"Jl. Cikutra, Cibeunying Kaler","lat":-6.890983,"lng":107.637632,"recid":"1016","categories":"T P U","subdistricts":"Cibeunying Kaler","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":null,"priority":null,"url":"\/places\/1016\/tpu-cikutra","thumb":"\/uploads\/pictures\/2015\/05\/1016\/thumb\/55b076eb31690.jpg"},{"id":"1023","categories_id":"2","subdistricts_id":"9","types_id":null,"name":"TPU Gumuruh","location":"Jl. Gumuruh, Batununggal","lat":-6.939332,"lng":107.638097,"recid":"1023","categories":"T P U","subdistricts":"Batununggal","districts_id":"4","districts":"Karees","districts_color":"#d77400","types":null,"priority":null,"url":"\/places\/1023\/tpu-gumuruh","thumb":"\/uploads\/pictures\/2015\/05\/1023\/thumb\/55c1bae04ef7d.jpg"},{"id":"1025","categories_id":"2","subdistricts_id":"11","types_id":null,"name":"TPU Legok Ciseureuh","location":"Jl. Moch. Toha, Bojongloa Kidul","lat":-6.95539,"lng":107.609572,"recid":"1025","categories":"T P U","subdistricts":"Bojongloa Kidul","districts_id":"3","districts":"Tegalega","districts_color":"#3161fd","types":null,"priority":null,"url":"\/places\/1025\/tpu-legok-ciseureuh","thumb":"\/uploads\/pictures\/2015\/05\/1025\/thumb\/55b076ab74f89.jpg"},{"id":"1022","categories_id":"2","subdistricts_id":"21","types_id":null,"name":"TPU Maleer","location":"Jl. Jembatan Opat, Kiaracondong","lat":-6.925234,"lng":107.639957,"recid":"1022","categories":"T P U","subdistricts":"Kiaracondong","districts_id":"4","districts":"Karees","districts_color":"#d77400","types":null,"priority":null,"url":"\/places\/1022\/tpu-maleer","thumb":"\/uploads\/pictures\/2015\/05\/1022\/thumb\/55c1b771c4f68.jpg"},{"id":"1028","categories_id":"2","subdistricts_id":"30","types_id":null,"name":"TPU Nagrog","location":"Jalan Nagrog, Ujungberung","lat":-6.906871,"lng":107.710703,"recid":"1028","categories":"T P U","subdistricts":"Ujungberung","districts_id":"5","districts":"Ujungberung","districts_color":"#6a20f1","types":null,"priority":null,"url":"\/places\/1028\/tpu-nagrog","thumb":"\/uploads\/pictures\/2015\/05\/1028\/thumb\/55c1b8807d6e6.jpg"},{"id":"1015","categories_id":"2","subdistricts_id":"16","types_id":null,"name":"TPU Pandu","location":"Jl. Pandu, Cicendo","lat":-6.901131,"lng":107.592161,"recid":"1015","categories":"T P U","subdistricts":"Cicendo","districts_id":"1","districts":"Bojonagara","districts_color":"#c00007","types":null,"priority":null,"url":"\/places\/1015\/tpu-pandu","thumb":"\/uploads\/pictures\/2015\/05\/1015\/thumb\/55c1bceed9c2c.jpg"},{"id":"1029","categories_id":"2","subdistricts_id":"20","types_id":null,"name":"TPU Rancacili","location":"Jl. Sawo Endah, Gedebage","lat":-6.959303,"lng":107.679484,"recid":"1029","categories":"T P U","subdistricts":"Gedebage","districts_id":"6","districts":"Gedebage","districts_color":"#00b9c0","types":null,"priority":null,"url":"\/places\/1029\/tpu-rancacili","thumb":"\/uploads\/pictures\/2015\/05\/1029\/thumb\/55c1b9da45f8c.jpg"},{"id":"1017","categories_id":"2","subdistricts_id":"16","types_id":null,"name":"TPU Sirnaraga","location":"Jl. Pajajaran, Cicendo","lat":-6.90642,"lng":107.58863,"recid":"1017","categories":"T P U","subdistricts":"Cicendo","districts_id":"1","districts":"Bojonagara","districts_color":"#c00007","types":null,"priority":null,"url":"\/places\/1017\/tpu-sirnaraga","thumb":"\/uploads\/pictures\/2015\/08\/1017\/thumb\/55c1bf8323c34.jpg"},{"id":"1007","categories_id":"1","subdistricts_id":"8","types_id":"1","name":"Pet Park","location":"Jl. Cisangkuy, Bandung Wetan","lat":-6.904864,"lng":107.62681,"recid":"1007","categories":"Taman","subdistricts":"Bandung Wetan","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1007\/pet-park","thumb":"\/uploads\/pictures\/2015\/05\/1007\/thumb\/55923e2b87076.jpg"},{"id":"1013","categories_id":"1","subdistricts_id":"8","types_id":"1","name":"Skate Park","location":"Jl. Cibeunying, Bandung Wetan","lat":-6.898109,"lng":107.608928,"recid":"1013","categories":"Taman","subdistricts":"Bandung Wetan","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1013\/skate-park","thumb":"\/uploads\/pictures\/2015\/05\/1013\/thumb\/55923e8edb80e.jpg"},{"id":"1035","categories_id":"1","subdistricts_id":"30","types_id":"1","name":"Taman Alun Alun Ujung Berung","location":"Lapangan Ujung Berung, Ujungberung","lat":-6.913927,"lng":107.701269,"recid":"1035","categories":"Taman","subdistricts":"Ujungberung","districts_id":"5","districts":"Ujungberung","districts_color":"#6a20f1","types":"Taman Tematik","priority":"1","url":"\/places\/1035\/taman-alun-alun-ujung-berung","thumb":"\/uploads\/pictures\/2015\/11\/1035\/thumb\/56443faf7b933.jpg"},{"id":"1019","categories_id":"1","subdistricts_id":"8","types_id":"1","name":"Taman Balai Kota","location":"Jl. Wastukencana, Bandung Wetan","lat":-6.913041,"lng":107.609618,"recid":"1019","categories":"Taman","subdistricts":"Bandung Wetan","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1019\/taman-balai-kota","thumb":"\/uploads\/pictures\/2015\/06\/1019\/thumb\/55c1b4cf0d55f.jpg"},{"id":"1037","categories_id":"1","subdistricts_id":"29","types_id":"1","name":"Taman Braga","location":"Jl. Naripan, Sumur Bandung","lat":-6.919793,"lng":107.610089,"recid":"1037","categories":"Taman","subdistricts":"Sumur Bandung","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1037\/taman-braga","thumb":"\/uploads\/pictures\/2015\/11\/1037\/thumb\/5644b019d8fe7.jpg"},{"id":"1009","categories_id":"1","subdistricts_id":"8","types_id":"1","name":"Taman Cibeunying","location":"Jl. Cibeunying, Bandung Wetan","lat":-6.903945,"lng":107.623269,"recid":"1009","categories":"Taman","subdistricts":"Bandung Wetan","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1009\/taman-cibeunying","thumb":"\/uploads\/pictures\/2015\/05\/1009\/thumb\/55923eded64ae.jpg"},{"id":"1038","categories_id":"1","subdistricts_id":"19","types_id":"1","name":"Taman Dago","location":"Jl. Ir. H. Djuanda, Coblong","lat":-6.898593,"lng":107.612464,"recid":"1038","categories":"Taman","subdistricts":"Coblong","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1038\/taman-dago","thumb":"\/uploads\/pictures\/2015\/11\/1038\/thumb\/5644ae66a9c1f.jpg"},{"id":"1011","categories_id":"1","subdistricts_id":"19","types_id":"1","name":"Taman Film","location":"Jl. Tamansari, Coblong","lat":-6.898417,"lng":107.607814,"recid":"1011","categories":"Taman","subdistricts":"Coblong","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1011\/taman-film","thumb":"\/uploads\/pictures\/2015\/04\/1011\/thumb\/55928c3b1e672.jpg"},{"id":"1036","categories_id":"1","subdistricts_id":"19","types_id":"1","name":"Taman Fitness","location":"Jl. Teuku Umar, Coblong","lat":-6.891965,"lng":107.615722,"recid":"1036","categories":"Taman","subdistricts":"Coblong","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1036\/taman-fitness","thumb":"\/uploads\/pictures\/2015\/11\/1036\/thumb\/5644286756feb.jpg"},{"id":"1004","categories_id":"1","subdistricts_id":"29","types_id":"1","name":"Taman Fotografi","location":"Jl. Anggrek, Sumur Bandung","lat":-6.913519,"lng":107.627205,"recid":"1004","categories":"Taman","subdistricts":"Sumur Bandung","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1004\/taman-fotografi","thumb":"\/uploads\/pictures\/2015\/05\/1004\/thumb\/5592b6798113f.jpg"},{"id":"1014","categories_id":"1","subdistricts_id":"19","types_id":"1","name":"Taman Gesit","location":"Jl. Dipatiukur, Coblong","lat":-6.89566,"lng":107.616631,"recid":"1014","categories":"Taman","subdistricts":"Coblong","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1014\/taman-gesit","thumb":"\/uploads\/pictures\/2015\/05\/1014\/thumb\/55c1b1dc461ad.jpg"},{"id":"1001","categories_id":"1","subdistricts_id":"19","types_id":"1","name":"Taman Jomblo \/ Pasupati","location":"Jl. Tamansari No.66, Coblong","lat":-6.898111,"lng":107.609434,"recid":"1001","categories":"Taman","subdistricts":"Coblong","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1001\/taman-jomblo-pasupati","thumb":"\/uploads\/pictures\/2015\/04\/1001\/thumb\/5592b7d613e53.jpg"},{"id":"1010","categories_id":"1","subdistricts_id":"8","types_id":"1","name":"Taman Kandaga Puspa","location":"Jl. Cilaki, Bandung Wetan","lat":-6.903324,"lng":107.622485,"recid":"1010","categories":"Taman","subdistricts":"Bandung Wetan","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1010\/taman-kandaga-puspa","thumb":"\/uploads\/pictures\/2015\/05\/1010\/thumb\/5592b89e6eb77.jpg"},{"id":"1008","categories_id":"1","subdistricts_id":"13","types_id":"1","name":"Taman Lansia","location":"Jl. Cibeunying, Cibeunying Kaler","lat":-6.901463,"lng":107.620389,"recid":"1008","categories":"Taman","subdistricts":"Cibeunying Kaler","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1008\/taman-lansia","thumb":"\/uploads\/pictures\/2015\/05\/1008\/thumb\/5592b9ae19263.jpg"},{"id":"1002","categories_id":"1","subdistricts_id":"29","types_id":"1","name":"Taman Musik \/ Centrum","location":"Jl. Belitung, Sumur Bandung","lat":-6.911959,"lng":107.616027,"recid":"1002","categories":"Taman","subdistricts":"Sumur Bandung","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1002\/taman-musik-centrum","thumb":"\/uploads\/pictures\/2015\/05\/1002\/thumb\/5592bb2896624.jpg"},{"id":"1012","categories_id":"1","subdistricts_id":"19","types_id":"1","name":"Taman Panatayuda","location":"Jl. Panatayuda, Coblong","lat":-6.897993,"lng":107.615812,"recid":"1012","categories":"Taman","subdistricts":"Coblong","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1012\/taman-panatayuda","thumb":"\/uploads\/pictures\/2015\/05\/1012\/thumb\/55c1b23b29378.jpg"},{"id":"1005","categories_id":"1","subdistricts_id":"8","types_id":"1","name":"Taman Persib","location":"Jl. Supratman, Bandung Wetan","lat":-6.907668,"lng":107.629882,"recid":"1005","categories":"Taman","subdistricts":"Bandung Wetan","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1005\/taman-persib","thumb":"\/uploads\/pictures\/2015\/06\/1005\/thumb\/55c1b2ca41050.jpg"},{"id":"1018","categories_id":"1","subdistricts_id":"26","types_id":"1","name":"Taman Piknik \/ Alun - Alun Bandung","location":"Jl. Alun-alun timur, Regol","lat":-6.921796,"lng":107.607134,"recid":"1018","categories":"Taman","subdistricts":"Regol","districts_id":"4","districts":"Karees","districts_color":"#d77400","types":"Taman Tematik","priority":"1","url":"\/places\/1018\/taman-piknik-alun-alun-bandung","thumb":"\/uploads\/pictures\/2015\/06\/1018\/thumb\/55c1b46a32824.jpg"},{"id":"1006","categories_id":"1","subdistricts_id":"29","types_id":"1","name":"Taman Superhero","location":"Jl. Anggrek, Sumur Bandung","lat":-6.910882,"lng":107.630536,"recid":"1006","categories":"Taman","subdistricts":"Sumur Bandung","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1006\/taman-superhero","thumb":"\/uploads\/pictures\/2015\/05\/1006\/thumb\/55c1b3593e084.jpg"},{"id":"1003","categories_id":"1","subdistricts_id":"29","types_id":"1","name":"Taman Tongkeng","location":"Jl. Tongkeng No.46, Sumur Bandung","lat":-6.911972,"lng":107.623434,"recid":"1003","categories":"Taman","subdistricts":"Sumur Bandung","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1003\/taman-tongkeng","thumb":"\/uploads\/pictures\/2015\/05\/1003\/thumb\/55c1b43fac6b2.jpg"},{"id":"1044","categories_id":"1","subdistricts_id":"29","types_id":"1","name":"Taman Vanda","location":"Jalan Merdeka, Sumur Bandung","lat":-6.913763,"lng":107.610072,"recid":"1044","categories":"Taman","subdistricts":"Sumur Bandung","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Tematik","priority":"1","url":"\/places\/1044\/taman-vanda","thumb":"\/uploads\/pictures\/2016\/02\/1044\/thumb\/56cf2277265a5.jpg"},{"id":"1043","categories_id":"1","subdistricts_id":"2","types_id":"2","name":"Taman Gasibu Mini","location":"Jalan Kuningan Raya, Antapani","lat":-6.916718,"lng":107.661441,"recid":"1043","categories":"Taman","subdistricts":"Antapani","districts_id":"5","districts":"Ujungberung","districts_color":"#6a20f1","types":"Taman Kota","priority":"2","url":"\/places\/1043\/taman-gasibu-mini","thumb":"\/uploads\/pictures\/2016\/02\/1043\/thumb\/56cf234a6fff5.jpg"},{"id":"1042","categories_id":"1","subdistricts_id":"8","types_id":"2","name":"Taman Maluku","location":"Jalan Ambon, Bandung Wetan","lat":-6.909582,"lng":107.615361,"recid":"1042","categories":"Taman","subdistricts":"Bandung Wetan","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Kota","priority":"2","url":"\/places\/1042\/taman-maluku","thumb":"\/uploads\/pictures\/2016\/02\/1042\/thumb\/56cf1c6591d60.jpg"},{"id":"1041","categories_id":"1","subdistricts_id":"22","types_id":"2","name":"Taman Pers Malabar","location":"Jalan Malabar, Lengkong","lat":-6.925819,"lng":107.623565,"recid":"1041","categories":"Taman","subdistricts":"Lengkong","districts_id":"4","districts":"Karees","districts_color":"#d77400","types":"Taman Kota","priority":"2","url":"\/places\/1041\/taman-pers-malabar","thumb":"\/uploads\/pictures\/2016\/02\/1041\/thumb\/56cf13695924a.jpg"},{"id":"1030","categories_id":"1","subdistricts_id":"4","types_id":"2","name":"Taman Tegalega","location":"Jl. Tegalega, Astana Anyar","lat":-6.934474,"lng":107.604834,"recid":"1030","categories":"Taman","subdistricts":"Astana Anyar","districts_id":"3","districts":"Tegalega","districts_color":"#3161fd","types":"Taman Kota","priority":"2","url":"\/places\/1030\/taman-tegalega","thumb":"\/uploads\/pictures\/2015\/05\/1030\/thumb\/55c1b554d89de.jpg"},{"id":"1040","categories_id":"1","subdistricts_id":"29","types_id":"2","name":"Teras Cikapayang","location":"Jalan Merdeka (Area Balai Kota), Sumur Bandung","lat":-6.910679,"lng":107.610481,"recid":"1040","categories":"Taman","subdistricts":"Sumur Bandung","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Kota","priority":"2","url":"\/places\/1040\/teras-cikapayang","thumb":"\/uploads\/pictures\/2016\/02\/1040\/thumb\/56cf101d9ea85.jpg"},{"id":"1039","categories_id":"1","subdistricts_id":"19","types_id":"2","name":"Teras Cikapundung","location":"Jl. Siliwangi No.28, Coblong","lat":-6.884392,"lng":107.607171,"recid":"1039","categories":"Taman","subdistricts":"Coblong","districts_id":"2","districts":"Cibeunying","districts_color":"#00b341","types":"Taman Kota","priority":"2","url":"\/places\/1039\/teras-cikapundung","thumb":"\/uploads\/pictures\/2016\/02\/1039\/thumb\/56cf0aca68e68.jpg"},{"id":"1032","categories_id":"1","subdistricts_id":"26","types_id":"4","name":"Taman Patung Ikan","location":"Jl. Lingkar Selatan, Regol","lat":-6.937514,"lng":107.60946,"recid":"1032","categories":"Taman","subdistricts":"Regol","districts_id":"4","districts":"Karees","districts_color":"#d77400","types":"Taman Pulau Jalan","priority":"4","url":"\/places\/1032\/taman-patung-ikan","thumb":"\/uploads\/pictures\/2015\/06\/1032\/thumb\/55923de8d7d0b.jpg"}]}
--------------------------------------------------------------------------------
/resources/views/home.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layout.app')
2 |
3 | @section('title')
4 | Sekolah Bandung
5 | @endsection
6 |
7 | @section('description')
8 |
9 | @endsection
10 |
11 | @section('content')
12 |
13 |
14 |
26 |
27 |
28 |
29 |
Jenis Sekolah
30 |
Tingkat Pendidikan Sekolah
31 |
32 | Semua
33 | SMK
34 | SMA
35 | MA
36 | SMP
37 | MTs
38 | SD
39 | MI
40 | LKP
41 | PKBM
42 | RA/BA/TA
43 |
44 |
45 |
46 |
Tipe Sekolah
47 |
Tipe Kepemilikan Sekolah (swasta/negeri)
48 |
49 | Semua
50 | Swasta
51 | Negeri
52 |
53 |
54 |
55 |
Kecamatan
56 |
Lokasi kecamatan keberadaan Sekolah
57 |
58 | Semua
59 | Cimahi Utara
60 | Cimahi Tengah
61 | Cimahi Selatan
62 |
63 |
64 |
65 |
66 |
67 |
68 |
Kelurahan
69 |
Lokasi kelurahan Sekolah di seluruh Kota Cimahi
70 |
71 | Semua
72 | Cibabat
73 | Citeureup
74 | Cipageran
75 | Pasirkaliki
76 | Baros
77 | Cigugur Tengah
78 | Cimahi
79 | Karangmekar
80 | Padasuka
81 | Setiamanah
82 | Cibeber
83 | Cibeureum
84 | Leuwigajah
85 | Melong
86 | Utama
87 |
88 |
89 |
90 |
91 |
92 |
Kelurahan
93 |
Lokasi kelurahan Sekolah di Kecamatan Cimahi Utara
94 |
95 | Semua
96 | Cibabat
97 | Citeureup
98 | Cipageran
99 | Pasirkaliki
100 |
101 |
102 |
103 |
104 |
105 |
Kelurahan
106 |
Lokasi kelurahan Sekolah di Kecamatan Cimahi Tengah
107 |
108 | Semua
109 | Baros
110 | Cigugur Tengah
111 | Cimahi
112 | Karangmekar
113 | Padasuka
114 | Setiamanah
115 |
116 |
117 |
118 |
119 |
120 |
Kelurahan
121 |
Lokasi kelurahan Sekolah di Kecamatan Cimahi Selatan
122 |
123 | Semua
124 | Cibeber
125 | Cibeureum
126 | Leuwigajah
127 | Melong
128 | Utama
129 |
130 |
131 |
132 |
133 |
134 |
Akreditasi
135 |
Peringkat akreditasi sekolah
136 |
137 | Semua
138 | A
139 | B
140 | C
141 | D
142 |
143 |
144 |
145 |
Fasilitas
146 |
Fasilitas yang tersedia di sekolah
147 |
148 |
149 |
150 |
151 | Internet
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 | Listrik
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 | WC
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 | Perpustakaan
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 | Lab
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
265 | @endsection
266 |
267 |
268 | @section('custom-script')
269 |
270 |
286 |
361 |
367 | @endsection
368 |
--------------------------------------------------------------------------------