{{$data_berita->judul}}
34 |35 | {{$data_berita->penulis}} - {{$data_berita->created_at->diffForHumans()}} 36 |
37 | {!!substr($data_berita->deskripsi, 0, 220)!!}.....38 | Baca selengkapnya 39 | 44 |
├── .editorconfig
├── .env.example
├── .gitattributes
├── .gitignore
├── .styleci.yml
├── README.md
├── app
├── Berita.php
├── Console
│ └── Kernel.php
├── Contact.php
├── Ekstrakulikuler.php
├── Exceptions
│ └── Handler.php
├── GuruTendik.php
├── Http
│ ├── Controllers
│ │ ├── Auth
│ │ │ ├── ConfirmPasswordController.php
│ │ │ ├── ForgotPasswordController.php
│ │ │ ├── LoginController.php
│ │ │ ├── RegisterController.php
│ │ │ ├── ResetPasswordController.php
│ │ │ └── VerificationController.php
│ │ ├── BeritaController.php
│ │ ├── ContactController.php
│ │ ├── Controller.php
│ │ ├── EkstrakulikulerController.php
│ │ ├── GuruTendikController.php
│ │ ├── HomeController.php
│ │ ├── InformasiPendaftaranController.php
│ │ ├── LeandingPageController.php
│ │ └── ProfileMadrasahController.php
│ ├── Kernel.php
│ └── Middleware
│ │ ├── Authenticate.php
│ │ ├── CheckForMaintenanceMode.php
│ │ ├── EncryptCookies.php
│ │ ├── RedirectIfAuthenticated.php
│ │ ├── TrimStrings.php
│ │ ├── TrustProxies.php
│ │ └── VerifyCsrfToken.php
├── InformasiPendaftaran.php
├── ProfileMadrasah.php
├── Providers
│ ├── AppServiceProvider.php
│ ├── AuthServiceProvider.php
│ ├── BroadcastServiceProvider.php
│ ├── EventServiceProvider.php
│ └── RouteServiceProvider.php
└── User.php
├── artisan
├── bootstrap
├── app.php
└── cache
│ └── .gitignore
├── composer.json
├── composer.lock
├── config
├── app.php
├── auth.php
├── broadcasting.php
├── cache.php
├── database.php
├── filesystems.php
├── hashing.php
├── logging.php
├── mail.php
├── queue.php
├── services.php
├── session.php
├── sweetalert.php
└── view.php
├── database
├── .gitignore
├── factories
│ └── UserFactory.php
├── migrations
│ ├── 2014_10_12_000000_create_users_table.php
│ ├── 2014_10_12_100000_create_password_resets_table.php
│ ├── 2019_08_19_000000_create_failed_jobs_table.php
│ ├── 2020_12_26_114653_create_profile_madrasah_table.php
│ ├── 2020_12_27_175723_create_ekstrakulikuler_table.php
│ ├── 2020_12_28_062834_create_gurutendik_table.php
│ ├── 2020_12_28_155258_create_contact_table.php
│ ├── 2020_12_28_172531_create_berita_table.php
│ └── 2021_01_01_143849_create_informasi_pendaftaran_table.php
└── seeds
│ └── DatabaseSeeder.php
├── package-lock.json
├── package.json
├── phpunit.xml
├── public
├── .htaccess
├── assets
│ ├── css
│ │ └── style.css
│ ├── img
│ │ ├── about.png
│ │ ├── apple-touch-icon.png
│ │ ├── favicon.png
│ │ ├── hero-img.png
│ │ ├── portfolio
│ │ │ ├── portfolio-1.jpg
│ │ │ ├── portfolio-2.jpg
│ │ │ ├── portfolio-3.jpg
│ │ │ ├── portfolio-4.jpg
│ │ │ ├── portfolio-5.jpg
│ │ │ ├── portfolio-6.jpg
│ │ │ ├── portfolio-7.jpg
│ │ │ ├── portfolio-8.jpg
│ │ │ ├── portfolio-9.jpg
│ │ │ ├── portfolio-details-1.jpg
│ │ │ ├── portfolio-details-2.jpg
│ │ │ └── portfolio-details-3.jpg
│ │ ├── team
│ │ │ ├── team-1.jpg
│ │ │ ├── team-2.jpg
│ │ │ └── team-3.jpg
│ │ └── testimonials
│ │ │ ├── testimonials-1.jpg
│ │ │ ├── testimonials-2.jpg
│ │ │ ├── testimonials-3.jpg
│ │ │ ├── testimonials-4.jpg
│ │ │ └── testimonials-5.jpg
│ ├── js
│ │ └── main.js
│ ├── summernote
│ │ ├── font
│ │ │ ├── summernote.eot
│ │ │ ├── summernote.ttf
│ │ │ └── summernote.woff
│ │ ├── js
│ │ │ └── summernote.min.js
│ │ └── summernote.css
│ └── vendor
│ │ ├── bootstrap
│ │ ├── css
│ │ │ ├── bootstrap-grid.css
│ │ │ ├── bootstrap-grid.css.map
│ │ │ ├── bootstrap-grid.min.css
│ │ │ ├── bootstrap-grid.min.css.map
│ │ │ ├── bootstrap-reboot.css
│ │ │ ├── bootstrap-reboot.css.map
│ │ │ ├── bootstrap-reboot.min.css
│ │ │ ├── bootstrap-reboot.min.css.map
│ │ │ ├── bootstrap.css
│ │ │ ├── bootstrap.css.map
│ │ │ ├── bootstrap.min.css
│ │ │ └── bootstrap.min.css.map
│ │ └── js
│ │ │ ├── bootstrap.bundle.js
│ │ │ ├── bootstrap.bundle.js.map
│ │ │ ├── bootstrap.bundle.min.js
│ │ │ ├── bootstrap.bundle.min.js.map
│ │ │ ├── bootstrap.js
│ │ │ ├── bootstrap.js.map
│ │ │ ├── bootstrap.min.js
│ │ │ └── bootstrap.min.js.map
│ │ ├── boxicons
│ │ ├── css
│ │ │ ├── animations.css
│ │ │ ├── boxicons.css
│ │ │ ├── boxicons.min.css
│ │ │ └── transformations.css
│ │ └── fonts
│ │ │ ├── boxicons.eot
│ │ │ ├── boxicons.svg
│ │ │ ├── boxicons.ttf
│ │ │ ├── boxicons.woff
│ │ │ └── boxicons.woff2
│ │ ├── counterup
│ │ └── counterup.min.js
│ │ ├── icofont
│ │ ├── fonts
│ │ │ ├── icofont.woff
│ │ │ └── icofont.woff2
│ │ └── icofont.min.css
│ │ ├── isotope-layout
│ │ ├── isotope.pkgd.js
│ │ └── isotope.pkgd.min.js
│ │ ├── jquery.easing
│ │ └── jquery.easing.min.js
│ │ ├── jquery
│ │ ├── jquery.min.js
│ │ └── jquery.min.map
│ │ ├── owl.carousel
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── assets
│ │ │ ├── ajax-loader.gif
│ │ │ ├── owl.carousel.css
│ │ │ ├── owl.carousel.min.css
│ │ │ ├── owl.theme.default.css
│ │ │ ├── owl.theme.default.min.css
│ │ │ ├── owl.theme.green.css
│ │ │ ├── owl.theme.green.min.css
│ │ │ └── owl.video.play.png
│ │ ├── owl.carousel.js
│ │ └── owl.carousel.min.js
│ │ ├── php-email-form
│ │ └── validate.js
│ │ ├── venobox
│ │ ├── venobox.css
│ │ ├── venobox.js
│ │ ├── venobox.min.css
│ │ └── venobox.min.js
│ │ └── waypoints
│ │ └── jquery.waypoints.min.js
├── css
│ ├── app.css
│ └── style.css
├── favicon.ico
├── foto_berita
│ ├── FB-35996300_DESKTOP.png
│ ├── FB-CCI12172020.pdf.jpg
│ ├── FB-FOTO KTP SUWARDI .jfif
│ ├── FB-_DSC1864.JPG
│ ├── FB-_DSC1868.JPG
│ ├── FB-_DSC1872.JPG
│ ├── FB-_DSC1888.JPG
│ ├── FB-_DSC1889.JPG
│ ├── FB-_DSC1892.JPG
│ ├── FB-_DSC1895.JPG
│ ├── FB-_DSC1896.JPG
│ ├── FB-_DSC1906.JPG
│ ├── FB-_DSC1913.JPG
│ ├── FB-_DSC1944.JPG
│ ├── FB-_DSC1959.JPG
│ └── FB-proposal.png
├── foto_ekstrakulikuler
│ ├── Eks-35996300_DESKTOP.png
│ ├── Eks-CCI12172020.pdf.jpg
│ ├── Eks-FOTO KTP SUWARDI .jfif
│ ├── Eks-Mengenal-Apa-Itu-Shot-List-Filmmaker-Wajib-Tahu-2.png
│ ├── Eks-_DSC1863.JPG
│ ├── Eks-_DSC1868.JPG
│ ├── Eks-_DSC1869.JPG
│ ├── Eks-_DSC1872.JPG
│ ├── Eks-_DSC1876.JPG
│ ├── Eks-_DSC1889.JPG
│ ├── Eks-_DSC1900.JPG
│ ├── Eks-_DSC1918.JPG
│ └── Eks-_DSC1963.JPG
├── foto_gurutendik
│ ├── GTK-_DSC1882.JPG
│ ├── GTK-_DSC1889.JPG
│ ├── GTK-_DSC1985.JPG
│ └── GTK-_DSC2020.JPG
├── gambar_pendaftaran
│ └── GPendaf-35996300_DESKTOP.png
├── gambar_profile
│ ├── GP-35996300_DESKTOP.png
│ ├── GP-Header Chanel OK.jpg
│ ├── GP-IJAZAH ZAHRA.jfif
│ ├── GP-contoh-cover-proposal-project.png
│ └── GP-header coba.jpg
├── index.php
├── js
│ ├── app.js
│ └── plugins-init
│ │ └── summernote-init.js
├── logo_madrasah
│ └── LP-LOGO.png
├── mix-manifest.json
├── robots.txt
├── vendor
│ └── sweetalert
│ │ └── sweetalert.all.js
└── web.config
├── resources
├── js
│ ├── app.js
│ ├── bootstrap.js
│ └── components
│ │ └── ExampleComponent.vue
├── lang
│ └── en
│ │ ├── auth.php
│ │ ├── pagination.php
│ │ ├── passwords.php
│ │ └── validation.php
├── sass
│ ├── _variables.scss
│ └── app.scss
└── views
│ ├── auth
│ ├── login.blade.php
│ ├── loginOld.blade.php
│ ├── passwords
│ │ ├── confirm.blade.php
│ │ ├── email.blade.php
│ │ └── reset.blade.php
│ ├── register.blade.php
│ └── verify.blade.php
│ ├── berita
│ ├── create.blade.php
│ ├── edit.blade.php
│ ├── index.blade.php
│ ├── index_berita.blade.php
│ ├── show.blade.php
│ └── show_berita.blade.php
│ ├── contact
│ ├── create.blade.php
│ ├── edit.blade.php
│ └── index.blade.php
│ ├── ekstrakulikuler
│ ├── create.blade.php
│ ├── edit.blade.php
│ └── index.blade.php
│ ├── gurutendik
│ ├── create.blade.php
│ ├── edit.blade.php
│ └── index.blade.php
│ ├── home.blade.php
│ ├── informasipendaftaran
│ ├── create.blade.php
│ ├── edit.blade.php
│ └── index.blade.php
│ ├── layouts
│ ├── app.blade.php
│ ├── appOld.blade.php
│ └── appnonlogin.blade.php
│ ├── profilemadrasah
│ ├── create.blade.php
│ ├── edit.blade.php
│ └── index.blade.php
│ ├── vendor
│ └── sweetalert
│ │ └── alert.blade.php
│ └── welcome.blade.php
├── routes
├── api.php
├── channels.php
├── console.php
└── web.php
├── server.php
├── storage
├── app
│ ├── .gitignore
│ └── public
│ │ └── .gitignore
├── framework
│ ├── .gitignore
│ ├── cache
│ │ ├── .gitignore
│ │ └── data
│ │ │ └── .gitignore
│ ├── sessions
│ │ └── .gitignore
│ ├── testing
│ │ └── .gitignore
│ └── views
│ │ └── .gitignore
└── logs
│ └── .gitignore
├── tests
├── CreatesApplication.php
├── Feature
│ └── ExampleTest.php
├── TestCase.php
└── Unit
│ └── ExampleTest.php
└── webpack.mix.js
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | insert_final_newline = true
7 | indent_style = space
8 | indent_size = 4
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | trim_trailing_whitespace = false
13 |
14 | [*.{yml,yaml}]
15 | indent_size = 2
16 |
--------------------------------------------------------------------------------
/.env.example:
--------------------------------------------------------------------------------
1 | APP_NAME=Laravel
2 | APP_ENV=local
3 | APP_KEY=
4 | APP_DEBUG=true
5 | APP_URL=http://localhost
6 |
7 | LOG_CHANNEL=stack
8 |
9 | DB_CONNECTION=mysql
10 | DB_HOST=127.0.0.1
11 | DB_PORT=3306
12 | DB_DATABASE=laravel
13 | DB_USERNAME=root
14 | DB_PASSWORD=
15 |
16 | BROADCAST_DRIVER=log
17 | CACHE_DRIVER=file
18 | QUEUE_CONNECTION=sync
19 | SESSION_DRIVER=file
20 | SESSION_LIFETIME=120
21 |
22 | REDIS_HOST=127.0.0.1
23 | REDIS_PASSWORD=null
24 | REDIS_PORT=6379
25 |
26 | MAIL_DRIVER=smtp
27 | MAIL_HOST=smtp.mailtrap.io
28 | MAIL_PORT=2525
29 | MAIL_USERNAME=null
30 | MAIL_PASSWORD=null
31 | MAIL_ENCRYPTION=null
32 | MAIL_FROM_ADDRESS=null
33 | MAIL_FROM_NAME="${APP_NAME}"
34 |
35 | AWS_ACCESS_KEY_ID=
36 | AWS_SECRET_ACCESS_KEY=
37 | AWS_DEFAULT_REGION=us-east-1
38 | AWS_BUCKET=
39 |
40 | PUSHER_APP_ID=
41 | PUSHER_APP_KEY=
42 | PUSHER_APP_SECRET=
43 | PUSHER_APP_CLUSTER=mt1
44 |
45 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
46 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
47 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 | *.css linguist-vendored
3 | *.scss linguist-vendored
4 | *.js linguist-vendored
5 | CHANGELOG.md export-ignore
6 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules
2 | /public/hot
3 | /public/storage
4 | /storage/*.key
5 | /vendor
6 | .env
7 | .env.backup
8 | .phpunit.result.cache
9 | Homestead.json
10 | Homestead.yaml
11 | npm-debug.log
12 | yarn-error.log
13 |
--------------------------------------------------------------------------------
/.styleci.yml:
--------------------------------------------------------------------------------
1 | php:
2 | preset: laravel
3 | disabled:
4 | - unused_use
5 | finder:
6 | not-name:
7 | - index.php
8 | - server.php
9 | js:
10 | finder:
11 | not-name:
12 | - webpack.mix.js
13 | css: true
14 |
--------------------------------------------------------------------------------
/app/Berita.php:
--------------------------------------------------------------------------------
1 | command('inspire')
28 | // ->hourly();
29 | }
30 |
31 | /**
32 | * Register the commands for the application.
33 | *
34 | * @return void
35 | */
36 | protected function commands()
37 | {
38 | $this->load(__DIR__.'/Commands');
39 |
40 | require base_path('routes/console.php');
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/app/Contact.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/ForgotPasswordController.php:
--------------------------------------------------------------------------------
1 | middleware('guest')->except('logout');
41 | Alert::success('Sukses', 'Login Berhasil');
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/RegisterController.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
42 | }
43 |
44 | /**
45 | * Get a validator for an incoming registration request.
46 | *
47 | * @param array $data
48 | * @return \Illuminate\Contracts\Validation\Validator
49 | */
50 | protected function validator(array $data)
51 | {
52 | return Validator::make($data, [
53 | 'name' => ['required', 'string', 'max:255'],
54 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
55 | 'password' => ['required', 'string', 'min:8', 'confirmed'],
56 | ]);
57 | }
58 |
59 | /**
60 | * Create a new user instance after a valid registration.
61 | *
62 | * @param array $data
63 | * @return \App\User
64 | */
65 | protected function create(array $data)
66 | {
67 | return User::create([
68 | 'name' => $data['name'],
69 | 'email' => $data['email'],
70 | 'password' => Hash::make($data['password']),
71 | ]);
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/ResetPasswordController.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
39 | $this->middleware('signed')->only('verify');
40 | $this->middleware('throttle:6,1')->only('verify', 'resend');
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/app/Http/Controllers/BeritaController.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
14 | }
15 | /**
16 | * Display a listing of the resource.
17 | *
18 | * @return \Illuminate\Http\Response
19 | */
20 | public function index()
21 | {
22 | $madrasah = ProfileMadrasah::first();
23 | $berita = Berita::orderByRaw('created_at DESC')->get();
24 | return view('berita.index', compact('berita', 'madrasah'));
25 | }
26 |
27 | /**
28 | * Show the form for creating a new resource.
29 | *
30 | * @return \Illuminate\Http\Response
31 | */
32 | public function create()
33 | {
34 | $madrasah = ProfileMadrasah::first();
35 | return view('berita.create', compact('madrasah'));
36 | }
37 |
38 | /**
39 | * Store a newly created resource in storage.
40 | *
41 | * @param \Illuminate\Http\Request $request
42 | * @return \Illuminate\Http\Response
43 | */
44 | public function store(Request $request)
45 | {
46 | $berita = new Berita();
47 | $berita->judul = $request->input('judul');
48 | $filefoto = $request->file('foto');
49 | $filefotoName = 'FB-' . $filefoto->getClientOriginalName();
50 | $filefoto->move('foto_berita/', $filefotoName);
51 | $berita->foto = $filefotoName;
52 | $berita->penulis = $request->input('penulis');
53 | $berita->deskripsi = $request->input('deskripsi');
54 | $berita->save();
55 | return redirect()->route('berita.index')->with("success", "Berita berhasil disimpan");
56 | }
57 |
58 | /**
59 | * Display the specified resource.
60 | *
61 | * @param int $id
62 | * @return \Illuminate\Http\Response
63 | */
64 | public function show($id)
65 | {
66 | $madrasah = ProfileMadrasah::first();
67 | $berita = Berita::find($id);
68 | return view('berita.show', compact('berita', 'madrasah'));
69 | }
70 |
71 | /**
72 | * Show the form for editing the specified resource.
73 | *
74 | * @param int $id
75 | * @return \Illuminate\Http\Response
76 | */
77 | public function edit($id)
78 | {
79 | $madrasah = ProfileMadrasah::first();
80 | $berita = Berita::find($id);
81 | return view('berita.edit', compact('berita','madrasah'));
82 | }
83 |
84 | /**
85 | * Update the specified resource in storage.
86 | *
87 | * @param \Illuminate\Http\Request $request
88 | * @param int $id
89 | * @return \Illuminate\Http\Response
90 | */
91 | public function update(Request $request, $id)
92 | {
93 | $berita = Berita::findorfail($id);
94 | $berita->update($request->all());
95 |
96 | if ($request->hasFile('foto')) {
97 | $request->file('foto')->move('foto_berita/', 'FB-' . $request->file('foto')->getClientOriginalName());
98 | $berita->foto = 'FB-' . $request->file('foto')->getClientOriginalName();
99 | $berita->save();
100 | }
101 | return redirect('berita')->with('success', 'Edit data sukses');
102 | }
103 |
104 | /**
105 | * Remove the specified resource from storage.
106 | *
107 | * @param int $id
108 | * @return \Illuminate\Http\Response
109 | */
110 | public function destroy($id)
111 | {
112 | try {
113 | $berita = Berita::find($id);
114 | $berita->delete();
115 | return redirect('berita')->with('success', 'Hapus data sukses');
116 | } catch (\Illuminate\Database\QueryException $ex) {
117 | return redirect()->back()->with('warning', 'Maaf data tidak dapat dihapus');
118 | }
119 | }
120 | }
121 |
--------------------------------------------------------------------------------
/app/Http/Controllers/ContactController.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
14 | }
15 | /**
16 | * Display a listing of the resource.
17 | *
18 | * @return \Illuminate\Http\Response
19 | */
20 | public function index()
21 | {
22 | $madrasah = ProfileMadrasah::first();
23 | $contact = Contact::orderByRaw('created_at DESC')->paginate(1);
24 | return view('contact.index', compact('contact', 'madrasah'));
25 | }
26 |
27 | /**
28 | * Show the form for creating a new resource.
29 | *
30 | * @return \Illuminate\Http\Response
31 | */
32 | public function create()
33 | {
34 | $madrasah = ProfileMadrasah::first();
35 | return view('contact.create', compact('madrasah'));
36 | }
37 |
38 | /**
39 | * Store a newly created resource in storage.
40 | *
41 | * @param \Illuminate\Http\Request $request
42 | * @return \Illuminate\Http\Response
43 | */
44 | public function store(Request $request)
45 | {
46 | $contact = new Contact();
47 | $contact->alamat = $request->input('alamat');
48 | $contact->email = $request->input('email');
49 | $contact->telpon = $request->input('telpon');
50 | $contact->instagram = $request->input('instagram');
51 | $contact->facebook = $request->input('facebook');
52 | $contact->twitter = $request->input('twitter');
53 | $contact->save();
54 | return redirect()->route('contact.index')->with("success", "Data berhasil disimpan");
55 | }
56 |
57 | /**
58 | * Display the specified resource.
59 | *
60 | * @param int $id
61 | * @return \Illuminate\Http\Response
62 | */
63 | public function show($id)
64 | {
65 | //
66 | }
67 |
68 | /**
69 | * Show the form for editing the specified resource.
70 | *
71 | * @param int $id
72 | * @return \Illuminate\Http\Response
73 | */
74 | public function edit($id)
75 | {
76 | $madrasah = ProfileMadrasah::first();
77 | $contact = Contact::find($id);
78 | return view('contact.edit', compact('contact','madrasah'));
79 | }
80 |
81 | /**
82 | * Update the specified resource in storage.
83 | *
84 | * @param \Illuminate\Http\Request $request
85 | * @param int $id
86 | * @return \Illuminate\Http\Response
87 | */
88 | public function update(Request $request, $id)
89 | {
90 | $contact = Contact::findorfail($id);
91 | $contact->update($request->all());
92 | return redirect('contact')->with('success', 'Edit data sukses');
93 | }
94 |
95 | /**
96 | * Remove the specified resource from storage.
97 | *
98 | * @param int $id
99 | * @return \Illuminate\Http\Response
100 | */
101 | public function destroy($id)
102 | {
103 | //
104 | }
105 | }
106 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Controller.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
14 | }
15 | /**
16 | * Display a listing of the resource.
17 | *
18 | * @return \Illuminate\Http\Response
19 | */
20 | public function index()
21 | {
22 | $madrasah = ProfileMadrasah::first();
23 | $ekstrakulikuler = Ekstrakulikuler::orderByRaw('created_at DESC')->get();
24 | return view('ekstrakulikuler.index', compact('ekstrakulikuler','madrasah'));
25 | }
26 |
27 | /**
28 | * Show the form for creating a new resource.
29 | *
30 | * @return \Illuminate\Http\Response
31 | */
32 | public function create()
33 | {
34 | $madrasah = ProfileMadrasah::first();
35 | return view('ekstrakulikuler.create', compact('madrasah'));
36 | }
37 |
38 | /**
39 | * Store a newly created resource in storage.
40 | *
41 | * @param \Illuminate\Http\Request $request
42 | * @return \Illuminate\Http\Response
43 | */
44 | public function store(Request $request)
45 | {
46 | $ekstrakulikuler = new Ekstrakulikuler();
47 | $ekstrakulikuler->nama = $request->input('nama');
48 | $ekstrakulikuler->deskripsi = $request->input('deskripsi');
49 | $image = $request->file('foto');
50 | $imageName = 'Eks-' . $image->getClientOriginalName();
51 | $image->move('foto_ekstrakulikuler/', $imageName);
52 | $ekstrakulikuler->foto = $imageName;
53 | $ekstrakulikuler->save();
54 | return redirect()->route('ekstrakulikuler.index')->with("success", "Tambah data suskes");
55 | }
56 |
57 | /**
58 | * Display the specified resource.
59 | *
60 | * @param int $id
61 | * @return \Illuminate\Http\Response
62 | */
63 | public function show($id)
64 | {
65 | //
66 | }
67 |
68 | /**
69 | * Show the form for editing the specified resource.
70 | *
71 | * @param int $id
72 | * @return \Illuminate\Http\Response
73 | */
74 | public function edit($id)
75 | {
76 | $madrasah = ProfileMadrasah::first();
77 | $ekstrakulikuler = Ekstrakulikuler::find($id);
78 | return view('ekstrakulikuler.edit', compact('ekstrakulikuler','madrasah'));
79 | }
80 |
81 | /**
82 | * Update the specified resource in storage.
83 | *
84 | * @param \Illuminate\Http\Request $request
85 | * @param int $id
86 | * @return \Illuminate\Http\Response
87 | */
88 | public function update(Request $request, $id)
89 | {
90 | $ekstrakulikuler = Ekstrakulikuler::findorfail($id);
91 | $ekstrakulikuler->update($request->all());
92 |
93 | if ($request->hasFile('foto')) {
94 | $request->file('foto')->move('foto_ekstrakulikuler/', 'Eks-' . $request->file('foto')->getClientOriginalName());
95 | $ekstrakulikuler->foto = 'Eks-' . $request->file('foto')->getClientOriginalName();
96 | $ekstrakulikuler->save();
97 | }
98 | return redirect('ekstrakulikuler')->with('success', 'Edit data sukses');
99 | }
100 |
101 | /**
102 | * Remove the specified resource from storage.
103 | *
104 | * @param int $id
105 | * @return \Illuminate\Http\Response
106 | */
107 | public function destroy($id)
108 | {
109 | try {
110 | $ekstrakulikuler = Ekstrakulikuler::find($id);
111 | $ekstrakulikuler->delete();
112 | return redirect('ekstrakulikuler')->with('success', 'Hapus data sukses');
113 | } catch (\Illuminate\Database\QueryException $ex) {
114 | return redirect()->back()->with('warning', 'Maaf data tidak dapat dihapus');
115 | }
116 | }
117 | }
118 |
--------------------------------------------------------------------------------
/app/Http/Controllers/GuruTendikController.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
14 | }
15 | /**
16 | * Display a listing of the resource.
17 | *
18 | * @return \Illuminate\Http\Response
19 | */
20 | public function index()
21 | {
22 | $madrasah = ProfileMadrasah::first();
23 | $gurutendik = GuruTendik::all();
24 | return view('gurutendik.index', compact('gurutendik','madrasah'));
25 | }
26 |
27 | /**
28 | * Show the form for creating a new resource.
29 | *
30 | * @return \Illuminate\Http\Response
31 | */
32 | public function create()
33 | {
34 | $madrasah = ProfileMadrasah::first();
35 | return view('gurutendik.create', compact('madrasah'));
36 | }
37 |
38 | /**
39 | * Store a newly created resource in storage.
40 | *
41 | * @param \Illuminate\Http\Request $request
42 | * @return \Illuminate\Http\Response
43 | */
44 | public function store(Request $request)
45 | {
46 | $gurutendik = new GuruTendik();
47 | $gurutendik->nama = $request->input('nama');
48 | $gurutendik->jabatan = $request->input('jabatan');
49 | $gurutendik->motto = $request->input('motto');
50 | $gurutendik->facebook = $request->input('facebook');
51 | $gurutendik->instagram = $request->input('instagram');
52 | $gurutendik->twitter = $request->input('twitter');
53 | $image = $request->file('foto');
54 | $imageName = 'GTK-' . $image->getClientOriginalName();
55 | $image->move('foto_gurutendik/', $imageName);
56 | $gurutendik->foto = $imageName;
57 | $gurutendik->save();
58 | return redirect()->route('gurutendik.index')->with("success", "Tambah data suskes");
59 | }
60 |
61 | /**
62 | * Display the specified resource.
63 | *
64 | * @param int $id
65 | * @return \Illuminate\Http\Response
66 | */
67 | public function show($id)
68 | {
69 | //
70 | }
71 |
72 | /**
73 | * Show the form for editing the specified resource.
74 | *
75 | * @param int $id
76 | * @return \Illuminate\Http\Response
77 | */
78 | public function edit($id)
79 | {
80 | $madrasah = ProfileMadrasah::first();
81 | $gurutendik = GuruTendik::find($id);
82 | return view('gurutendik.edit', compact('gurutendik','madrasah'));
83 | }
84 |
85 | /**
86 | * Update the specified resource in storage.
87 | *
88 | * @param \Illuminate\Http\Request $request
89 | * @param int $id
90 | * @return \Illuminate\Http\Response
91 | */
92 | public function update(Request $request, $id)
93 | {
94 | $gurutendik = GuruTendik::findorfail($id);
95 | $gurutendik->update($request->all());
96 |
97 | if ($request->hasFile('foto')) {
98 | $request->file('foto')->move('foto_gurutendik/', 'GTK-' . $request->file('foto')->getClientOriginalName());
99 | $gurutendik->foto = 'GTK-' . $request->file('foto')->getClientOriginalName();
100 | $gurutendik->save();
101 | }
102 | return redirect('gurutendik')->with('success', 'Edit data sukses');
103 | }
104 |
105 | /**
106 | * Remove the specified resource from storage.
107 | *
108 | * @param int $id
109 | * @return \Illuminate\Http\Response
110 | */
111 | public function destroy($id)
112 | {
113 | try {
114 | $gurutendik = GuruTendik::find($id);
115 | $gurutendik->delete();
116 | return redirect('gurutendik')->with('success', 'Hapus data sukses');
117 | } catch (\Illuminate\Database\QueryException $ex) {
118 | return redirect()->back()->with('warning', 'Maaf data tidak dapat dihapus');
119 | }
120 | }
121 | }
122 |
--------------------------------------------------------------------------------
/app/Http/Controllers/HomeController.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
18 | }
19 |
20 | /**
21 | * Show the application dashboard.
22 | *
23 | * @return \Illuminate\Contracts\Support\Renderable
24 | */
25 | public function index()
26 | {
27 | $madrasah = ProfileMadrasah::first();
28 | return view('home', compact('madrasah'));
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/app/Http/Controllers/InformasiPendaftaranController.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
14 | }
15 | /**
16 | * Display a listing of the resource.
17 | *
18 | * @return \Illuminate\Http\Response
19 | */
20 | public function index()
21 | {
22 | $madrasah = ProfileMadrasah::first();
23 | $informasi_pendaftaran = InformasiPendaftaran::orderByRaw('created_at DESC')->paginate(1);
24 | return view('informasipendaftaran.index', compact('informasi_pendaftaran','madrasah'));
25 | }
26 |
27 | /**
28 | * Show the form for creating a new resource.
29 | *
30 | * @return \Illuminate\Http\Response
31 | */
32 | public function create()
33 | {
34 | $madrasah = ProfileMadrasah::first();
35 | return view('informasipendaftaran.create', compact('madrasah'));
36 | }
37 |
38 | /**
39 | * Store a newly created resource in storage.
40 | *
41 | * @param \Illuminate\Http\Request $request
42 | * @return \Illuminate\Http\Response
43 | */
44 | public function store(Request $request)
45 | {
46 | $informasi_pendaftaran = new InformasiPendaftaran();
47 | $informasi_pendaftaran->status = $request->input('status');
48 | $informasi_pendaftaran->deskripsi = $request->input('deskripsi');
49 | $filegambar = $request->file('gambar');
50 | $filegambarName = 'GPendaf-' . $filegambar->getClientOriginalName();
51 | $filegambar->move('gambar_pendaftaran/', $filegambarName);
52 | $informasi_pendaftaran->gambar = $filegambarName;
53 | $informasi_pendaftaran->save();
54 | return redirect()->route('informasipendaftaran.index')->with("success", "Data berhasil disimpan");
55 | }
56 |
57 | /**
58 | * Display the specified resource.
59 | *
60 | * @param int $id
61 | * @return \Illuminate\Http\Response
62 | */
63 | public function show($id)
64 | {
65 | //
66 | }
67 |
68 | /**
69 | * Show the form for editing the specified resource.
70 | *
71 | * @param int $id
72 | * @return \Illuminate\Http\Response
73 | */
74 | public function edit($id)
75 | {
76 | $madrasah = ProfileMadrasah::first();
77 | $informasi_pendaftaran = InformasiPendaftaran::find($id);
78 | return view('informasipendaftaran.edit', compact('informasi_pendaftaran','madrasah'));
79 | }
80 |
81 | /**
82 | * Update the specified resource in storage.
83 | *
84 | * @param \Illuminate\Http\Request $request
85 | * @param int $id
86 | * @return \Illuminate\Http\Response
87 | */
88 | public function update(Request $request, $id)
89 | {
90 | $informasi_pendaftaran = InformasiPendaftaran::findorfail($id);
91 | $informasi_pendaftaran->update($request->all());
92 |
93 | if ($request->hasFile('gambar')) {
94 | $request->file('gambar')->move('gambar_pendaftaran/', 'GPendaf-' . $request->file('gambar')->getClientOriginalName());
95 | $informasi_pendaftaran->gambar = 'GPendaf-' . $request->file('gambar')->getClientOriginalName();
96 | $informasi_pendaftaran->save();
97 | }
98 | return redirect('informasipendaftaran')->with('success', 'Edit data sukses');
99 | }
100 |
101 | /**
102 | * Remove the specified resource from storage.
103 | *
104 | * @param int $id
105 | * @return \Illuminate\Http\Response
106 | */
107 | public function destroy($id)
108 | {
109 | //
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/app/Http/Controllers/LeandingPageController.php:
--------------------------------------------------------------------------------
1 | get();
19 | $gurutendik = GuruTendik::all();
20 | $contact = Contact::first();
21 | $berita_terbaru = Berita::orderByRaw('created_at DESC')->paginate(6);
22 | $informasi_pendaftaran = InformasiPendaftaran::first();
23 | return view('welcome', compact('profile_madrasah', 'ekstrakulikuler', 'gurutendik', 'contact', 'berita_terbaru','informasi_pendaftaran'));
24 | }
25 |
26 | public function index_berita()
27 | {
28 | $madrasah = ProfileMadrasah::first();
29 | $contact = Contact::first();
30 | $berita_terbaru = Berita::orderByRaw('created_at DESC')->paginate(3);
31 | $berita_all = Berita::orderByRaw('created_at DESC')->whereNotIn('id', $berita_terbaru)->get();
32 | return view('berita.index_berita', compact('berita_terbaru','berita_all','contact','madrasah'));
33 | }
34 |
35 | public function show_berita($id)
36 | {
37 | $madrasah = ProfileMadrasah::first();
38 | $contact = Contact::first();
39 | $berita = Berita::find($id);
40 | return view('berita.show_berita', compact('berita', 'madrasah', 'contact'));
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/app/Http/Kernel.php:
--------------------------------------------------------------------------------
1 | [
31 | \App\Http\Middleware\EncryptCookies::class,
32 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
33 | \Illuminate\Session\Middleware\StartSession::class,
34 | // \Illuminate\Session\Middleware\AuthenticateSession::class,
35 | \Illuminate\View\Middleware\ShareErrorsFromSession::class,
36 | \App\Http\Middleware\VerifyCsrfToken::class,
37 | \Illuminate\Routing\Middleware\SubstituteBindings::class,
38 | \RealRashid\SweetAlert\ToSweetAlert::class,
39 | ],
40 |
41 | 'api' => [
42 | 'throttle:60,1',
43 | \Illuminate\Routing\Middleware\SubstituteBindings::class,
44 | ],
45 | ];
46 |
47 | /**
48 | * The application's route middleware.
49 | *
50 | * These middleware may be assigned to groups or used individually.
51 | *
52 | * @var array
53 | */
54 | protected $routeMiddleware = [
55 | 'auth' => \App\Http\Middleware\Authenticate::class,
56 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
57 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
58 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
59 | 'can' => \Illuminate\Auth\Middleware\Authorize::class,
60 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
61 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
62 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
63 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
64 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
65 | ];
66 |
67 | /**
68 | * The priority-sorted list of middleware.
69 | *
70 | * This forces non-global middleware to always be in the given order.
71 | *
72 | * @var array
73 | */
74 | protected $middlewarePriority = [
75 | \Illuminate\Session\Middleware\StartSession::class,
76 | \Illuminate\View\Middleware\ShareErrorsFromSession::class,
77 | \App\Http\Middleware\Authenticate::class,
78 | \Illuminate\Routing\Middleware\ThrottleRequests::class,
79 | \Illuminate\Session\Middleware\AuthenticateSession::class,
80 | \Illuminate\Routing\Middleware\SubstituteBindings::class,
81 | \Illuminate\Auth\Middleware\Authorize::class,
82 | ];
83 | }
84 |
--------------------------------------------------------------------------------
/app/Http/Middleware/Authenticate.php:
--------------------------------------------------------------------------------
1 | expectsJson()) {
18 | return route('login');
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/app/Http/Middleware/CheckForMaintenanceMode.php:
--------------------------------------------------------------------------------
1 | check()) {
22 | return redirect(RouteServiceProvider::HOME);
23 | }
24 |
25 | return $next($request);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/app/Http/Middleware/TrimStrings.php:
--------------------------------------------------------------------------------
1 | 'App\Policies\ModelPolicy',
17 | ];
18 |
19 | /**
20 | * Register any authentication / authorization services.
21 | *
22 | * @return void
23 | */
24 | public function boot()
25 | {
26 | $this->registerPolicies();
27 |
28 | //
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/app/Providers/BroadcastServiceProvider.php:
--------------------------------------------------------------------------------
1 | [
19 | SendEmailVerificationNotification::class,
20 | ],
21 | ];
22 |
23 | /**
24 | * Register any events for your application.
25 | *
26 | * @return void
27 | */
28 | public function boot()
29 | {
30 | parent::boot();
31 |
32 | //
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/app/Providers/RouteServiceProvider.php:
--------------------------------------------------------------------------------
1 | mapApiRoutes();
46 |
47 | $this->mapWebRoutes();
48 |
49 | //
50 | }
51 |
52 | /**
53 | * Define the "web" routes for the application.
54 | *
55 | * These routes all receive session state, CSRF protection, etc.
56 | *
57 | * @return void
58 | */
59 | protected function mapWebRoutes()
60 | {
61 | Route::middleware('web')
62 | ->namespace($this->namespace)
63 | ->group(base_path('routes/web.php'));
64 | }
65 |
66 | /**
67 | * Define the "api" routes for the application.
68 | *
69 | * These routes are typically stateless.
70 | *
71 | * @return void
72 | */
73 | protected function mapApiRoutes()
74 | {
75 | Route::prefix('api')
76 | ->middleware('api')
77 | ->namespace($this->namespace)
78 | ->group(base_path('routes/api.php'));
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/app/User.php:
--------------------------------------------------------------------------------
1 | 'datetime',
38 | ];
39 | }
40 |
--------------------------------------------------------------------------------
/artisan:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 | make(Illuminate\Contracts\Console\Kernel::class);
34 |
35 | $status = $kernel->handle(
36 | $input = new Symfony\Component\Console\Input\ArgvInput,
37 | new Symfony\Component\Console\Output\ConsoleOutput
38 | );
39 |
40 | /*
41 | |--------------------------------------------------------------------------
42 | | Shutdown The Application
43 | |--------------------------------------------------------------------------
44 | |
45 | | Once Artisan has finished running, we will fire off the shutdown events
46 | | so that any final work may be done by the application before we shut
47 | | down the process. This is the last thing to happen to the request.
48 | |
49 | */
50 |
51 | $kernel->terminate($input, $status);
52 |
53 | exit($status);
54 |
--------------------------------------------------------------------------------
/bootstrap/app.php:
--------------------------------------------------------------------------------
1 | singleton(
30 | Illuminate\Contracts\Http\Kernel::class,
31 | App\Http\Kernel::class
32 | );
33 |
34 | $app->singleton(
35 | Illuminate\Contracts\Console\Kernel::class,
36 | App\Console\Kernel::class
37 | );
38 |
39 | $app->singleton(
40 | Illuminate\Contracts\Debug\ExceptionHandler::class,
41 | App\Exceptions\Handler::class
42 | );
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Return The Application
47 | |--------------------------------------------------------------------------
48 | |
49 | | This script returns the application instance. The instance is given to
50 | | the calling script so we can separate the building of the instances
51 | | from the actual running of the application and sending responses.
52 | |
53 | */
54 |
55 | return $app;
56 |
--------------------------------------------------------------------------------
/bootstrap/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "laravel/laravel",
3 | "type": "project",
4 | "description": "The Laravel Framework.",
5 | "keywords": [
6 | "framework",
7 | "laravel"
8 | ],
9 | "license": "MIT",
10 | "require": {
11 | "php": "^7.2.5|^8.0",
12 | "fideloper/proxy": "^4.4",
13 | "laravel/framework": "^6.20",
14 | "laravel/tinker": "^2.5",
15 | "realrashid/sweet-alert": "^3.1"
16 | },
17 | "require-dev": {
18 | "facade/ignition": "^1.16.4",
19 | "fakerphp/faker": "^1.9.1",
20 | "laravel/ui": "^1.0",
21 | "mockery/mockery": "^1.0",
22 | "nunomaduro/collision": "^3.0",
23 | "phpunit/phpunit": "^8.5.8|^9.3.3"
24 | },
25 | "config": {
26 | "optimize-autoloader": true,
27 | "preferred-install": "dist",
28 | "sort-packages": true
29 | },
30 | "extra": {
31 | "laravel": {
32 | "dont-discover": []
33 | }
34 | },
35 | "autoload": {
36 | "psr-4": {
37 | "App\\": "app/"
38 | },
39 | "classmap": [
40 | "database/seeds",
41 | "database/factories"
42 | ]
43 | },
44 | "autoload-dev": {
45 | "psr-4": {
46 | "Tests\\": "tests/"
47 | }
48 | },
49 | "minimum-stability": "dev",
50 | "prefer-stable": true,
51 | "scripts": {
52 | "post-autoload-dump": [
53 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
54 | "@php artisan package:discover --ansi"
55 | ],
56 | "post-root-package-install": [
57 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
58 | ],
59 | "post-create-project-cmd": [
60 | "@php artisan key:generate --ansi"
61 | ]
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/config/broadcasting.php:
--------------------------------------------------------------------------------
1 | env('BROADCAST_DRIVER', 'null'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Broadcast Connections
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may define all of the broadcast connections that will be used
26 | | to broadcast events to other systems or over websockets. Samples of
27 | | each available type of connection are provided inside this array.
28 | |
29 | */
30 |
31 | 'connections' => [
32 |
33 | 'pusher' => [
34 | 'driver' => 'pusher',
35 | 'key' => env('PUSHER_APP_KEY'),
36 | 'secret' => env('PUSHER_APP_SECRET'),
37 | 'app_id' => env('PUSHER_APP_ID'),
38 | 'options' => [
39 | 'cluster' => env('PUSHER_APP_CLUSTER'),
40 | 'useTLS' => true,
41 | ],
42 | ],
43 |
44 | 'redis' => [
45 | 'driver' => 'redis',
46 | 'connection' => 'default',
47 | ],
48 |
49 | 'log' => [
50 | 'driver' => 'log',
51 | ],
52 |
53 | 'null' => [
54 | 'driver' => 'null',
55 | ],
56 |
57 | ],
58 |
59 | ];
60 |
--------------------------------------------------------------------------------
/config/cache.php:
--------------------------------------------------------------------------------
1 | env('CACHE_DRIVER', 'file'),
22 |
23 | /*
24 | |--------------------------------------------------------------------------
25 | | Cache Stores
26 | |--------------------------------------------------------------------------
27 | |
28 | | Here you may define all of the cache "stores" for your application as
29 | | well as their drivers. You may even define multiple stores for the
30 | | same cache driver to group types of items stored in your caches.
31 | |
32 | */
33 |
34 | 'stores' => [
35 |
36 | 'apc' => [
37 | 'driver' => 'apc',
38 | ],
39 |
40 | 'array' => [
41 | 'driver' => 'array',
42 | ],
43 |
44 | 'database' => [
45 | 'driver' => 'database',
46 | 'table' => 'cache',
47 | 'connection' => null,
48 | ],
49 |
50 | 'file' => [
51 | 'driver' => 'file',
52 | 'path' => storage_path('framework/cache/data'),
53 | ],
54 |
55 | 'memcached' => [
56 | 'driver' => 'memcached',
57 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
58 | 'sasl' => [
59 | env('MEMCACHED_USERNAME'),
60 | env('MEMCACHED_PASSWORD'),
61 | ],
62 | 'options' => [
63 | // Memcached::OPT_CONNECT_TIMEOUT => 2000,
64 | ],
65 | 'servers' => [
66 | [
67 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
68 | 'port' => env('MEMCACHED_PORT', 11211),
69 | 'weight' => 100,
70 | ],
71 | ],
72 | ],
73 |
74 | 'redis' => [
75 | 'driver' => 'redis',
76 | 'connection' => 'cache',
77 | ],
78 |
79 | 'dynamodb' => [
80 | 'driver' => 'dynamodb',
81 | 'key' => env('AWS_ACCESS_KEY_ID'),
82 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
83 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
84 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
85 | 'endpoint' => env('DYNAMODB_ENDPOINT'),
86 | ],
87 |
88 | ],
89 |
90 | /*
91 | |--------------------------------------------------------------------------
92 | | Cache Key Prefix
93 | |--------------------------------------------------------------------------
94 | |
95 | | When utilizing a RAM based store such as APC or Memcached, there might
96 | | be other applications utilizing the same cache. So, we'll specify a
97 | | value to get prefixed to all our keys so we can avoid collisions.
98 | |
99 | */
100 |
101 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'),
102 |
103 | ];
104 |
--------------------------------------------------------------------------------
/config/filesystems.php:
--------------------------------------------------------------------------------
1 | env('FILESYSTEM_DRIVER', 'local'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Default Cloud Filesystem Disk
21 | |--------------------------------------------------------------------------
22 | |
23 | | Many applications store files both locally and in the cloud. For this
24 | | reason, you may specify a default "cloud" driver here. This driver
25 | | will be bound as the Cloud disk implementation in the container.
26 | |
27 | */
28 |
29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'),
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Filesystem Disks
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here you may configure as many filesystem "disks" as you wish, and you
37 | | may even configure multiple disks of the same driver. Defaults have
38 | | been setup for each driver as an example of the required options.
39 | |
40 | | Supported Drivers: "local", "ftp", "sftp", "s3"
41 | |
42 | */
43 |
44 | 'disks' => [
45 |
46 | 'local' => [
47 | 'driver' => 'local',
48 | 'root' => storage_path('app'),
49 | ],
50 |
51 | 'public' => [
52 | 'driver' => 'local',
53 | 'root' => storage_path('app/public'),
54 | 'url' => env('APP_URL').'/storage',
55 | 'visibility' => 'public',
56 | ],
57 |
58 | 's3' => [
59 | 'driver' => 's3',
60 | 'key' => env('AWS_ACCESS_KEY_ID'),
61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
62 | 'region' => env('AWS_DEFAULT_REGION'),
63 | 'bucket' => env('AWS_BUCKET'),
64 | 'url' => env('AWS_URL'),
65 | 'endpoint' => env('AWS_ENDPOINT'),
66 | ],
67 |
68 | ],
69 |
70 | ];
71 |
--------------------------------------------------------------------------------
/config/hashing.php:
--------------------------------------------------------------------------------
1 | 'bcrypt',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Bcrypt Options
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may specify the configuration options that should be used when
26 | | passwords are hashed using the Bcrypt algorithm. This will allow you
27 | | to control the amount of time it takes to hash the given password.
28 | |
29 | */
30 |
31 | 'bcrypt' => [
32 | 'rounds' => env('BCRYPT_ROUNDS', 10),
33 | ],
34 |
35 | /*
36 | |--------------------------------------------------------------------------
37 | | Argon Options
38 | |--------------------------------------------------------------------------
39 | |
40 | | Here you may specify the configuration options that should be used when
41 | | passwords are hashed using the Argon algorithm. These will allow you
42 | | to control the amount of time it takes to hash the given password.
43 | |
44 | */
45 |
46 | 'argon' => [
47 | 'memory' => 1024,
48 | 'threads' => 2,
49 | 'time' => 2,
50 | ],
51 |
52 | ];
53 |
--------------------------------------------------------------------------------
/config/logging.php:
--------------------------------------------------------------------------------
1 | env('LOG_CHANNEL', 'stack'),
21 |
22 | /*
23 | |--------------------------------------------------------------------------
24 | | Log Channels
25 | |--------------------------------------------------------------------------
26 | |
27 | | Here you may configure the log channels for your application. Out of
28 | | the box, Laravel uses the Monolog PHP logging library. This gives
29 | | you a variety of powerful log handlers / formatters to utilize.
30 | |
31 | | Available Drivers: "single", "daily", "slack", "syslog",
32 | | "errorlog", "monolog",
33 | | "custom", "stack"
34 | |
35 | */
36 |
37 | 'channels' => [
38 | 'stack' => [
39 | 'driver' => 'stack',
40 | 'channels' => ['single'],
41 | 'ignore_exceptions' => false,
42 | ],
43 |
44 | 'single' => [
45 | 'driver' => 'single',
46 | 'path' => storage_path('logs/laravel.log'),
47 | 'level' => 'debug',
48 | ],
49 |
50 | 'daily' => [
51 | 'driver' => 'daily',
52 | 'path' => storage_path('logs/laravel.log'),
53 | 'level' => 'debug',
54 | 'days' => 14,
55 | ],
56 |
57 | 'slack' => [
58 | 'driver' => 'slack',
59 | 'url' => env('LOG_SLACK_WEBHOOK_URL'),
60 | 'username' => 'Laravel Log',
61 | 'emoji' => ':boom:',
62 | 'level' => 'critical',
63 | ],
64 |
65 | 'papertrail' => [
66 | 'driver' => 'monolog',
67 | 'level' => 'debug',
68 | 'handler' => SyslogUdpHandler::class,
69 | 'handler_with' => [
70 | 'host' => env('PAPERTRAIL_URL'),
71 | 'port' => env('PAPERTRAIL_PORT'),
72 | ],
73 | ],
74 |
75 | 'stderr' => [
76 | 'driver' => 'monolog',
77 | 'handler' => StreamHandler::class,
78 | 'formatter' => env('LOG_STDERR_FORMATTER'),
79 | 'with' => [
80 | 'stream' => 'php://stderr',
81 | ],
82 | ],
83 |
84 | 'syslog' => [
85 | 'driver' => 'syslog',
86 | 'level' => 'debug',
87 | ],
88 |
89 | 'errorlog' => [
90 | 'driver' => 'errorlog',
91 | 'level' => 'debug',
92 | ],
93 |
94 | 'null' => [
95 | 'driver' => 'monolog',
96 | 'handler' => NullHandler::class,
97 | ],
98 |
99 | 'emergency' => [
100 | 'path' => storage_path('logs/laravel.log'),
101 | ],
102 | ],
103 |
104 | ];
105 |
--------------------------------------------------------------------------------
/config/queue.php:
--------------------------------------------------------------------------------
1 | env('QUEUE_CONNECTION', 'sync'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Queue Connections
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here you may configure the connection information for each server that
24 | | is used by your application. A default configuration has been added
25 | | for each back-end shipped with Laravel. You are free to add more.
26 | |
27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
28 | |
29 | */
30 |
31 | 'connections' => [
32 |
33 | 'sync' => [
34 | 'driver' => 'sync',
35 | ],
36 |
37 | 'database' => [
38 | 'driver' => 'database',
39 | 'table' => 'jobs',
40 | 'queue' => 'default',
41 | 'retry_after' => 90,
42 | ],
43 |
44 | 'beanstalkd' => [
45 | 'driver' => 'beanstalkd',
46 | 'host' => 'localhost',
47 | 'queue' => 'default',
48 | 'retry_after' => 90,
49 | 'block_for' => 0,
50 | ],
51 |
52 | 'sqs' => [
53 | 'driver' => 'sqs',
54 | 'key' => env('AWS_ACCESS_KEY_ID'),
55 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
56 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
57 | 'queue' => env('SQS_QUEUE', 'your-queue-name'),
58 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
59 | ],
60 |
61 | 'redis' => [
62 | 'driver' => 'redis',
63 | 'connection' => 'default',
64 | 'queue' => env('REDIS_QUEUE', 'default'),
65 | 'retry_after' => 90,
66 | 'block_for' => null,
67 | ],
68 |
69 | ],
70 |
71 | /*
72 | |--------------------------------------------------------------------------
73 | | Failed Queue Jobs
74 | |--------------------------------------------------------------------------
75 | |
76 | | These options configure the behavior of failed queue job logging so you
77 | | can control which database and table are used to store the jobs that
78 | | have failed. You may change them to any database / table you wish.
79 | |
80 | */
81 |
82 | 'failed' => [
83 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database'),
84 | 'database' => env('DB_CONNECTION', 'mysql'),
85 | 'table' => 'failed_jobs',
86 | ],
87 |
88 | ];
89 |
--------------------------------------------------------------------------------
/config/services.php:
--------------------------------------------------------------------------------
1 | [
18 | 'domain' => env('MAILGUN_DOMAIN'),
19 | 'secret' => env('MAILGUN_SECRET'),
20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
21 | ],
22 |
23 | 'postmark' => [
24 | 'token' => env('POSTMARK_TOKEN'),
25 | ],
26 |
27 | 'ses' => [
28 | 'key' => env('AWS_ACCESS_KEY_ID'),
29 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
30 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
31 | ],
32 |
33 | ];
34 |
--------------------------------------------------------------------------------
/config/view.php:
--------------------------------------------------------------------------------
1 | [
17 | resource_path('views'),
18 | ],
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Compiled View Path
23 | |--------------------------------------------------------------------------
24 | |
25 | | This option determines where all the compiled Blade templates will be
26 | | stored for your application. Typically, this is within the storage
27 | | directory. However, as usual, you are free to change this value.
28 | |
29 | */
30 |
31 | 'compiled' => env(
32 | 'VIEW_COMPILED_PATH',
33 | realpath(storage_path('framework/views'))
34 | ),
35 |
36 | ];
37 |
--------------------------------------------------------------------------------
/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite
2 | *.sqlite-journal
3 |
--------------------------------------------------------------------------------
/database/factories/UserFactory.php:
--------------------------------------------------------------------------------
1 | define(User::class, function (Faker $faker) {
21 | return [
22 | 'name' => $faker->name,
23 | 'email' => $faker->unique()->safeEmail,
24 | 'email_verified_at' => now(),
25 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
26 | 'remember_token' => Str::random(10),
27 | ];
28 | });
29 |
--------------------------------------------------------------------------------
/database/migrations/2014_10_12_000000_create_users_table.php:
--------------------------------------------------------------------------------
1 | bigIncrements('id');
18 | $table->string('name');
19 | $table->string('email')->unique();
20 | $table->timestamp('email_verified_at')->nullable();
21 | $table->string('password');
22 | $table->rememberToken();
23 | $table->timestamps();
24 | });
25 | }
26 |
27 | /**
28 | * Reverse the migrations.
29 | *
30 | * @return void
31 | */
32 | public function down()
33 | {
34 | Schema::dropIfExists('users');
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/database/migrations/2014_10_12_100000_create_password_resets_table.php:
--------------------------------------------------------------------------------
1 | string('email')->index();
18 | $table->string('token');
19 | $table->timestamp('created_at')->nullable();
20 | });
21 | }
22 |
23 | /**
24 | * Reverse the migrations.
25 | *
26 | * @return void
27 | */
28 | public function down()
29 | {
30 | Schema::dropIfExists('password_resets');
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/database/migrations/2019_08_19_000000_create_failed_jobs_table.php:
--------------------------------------------------------------------------------
1 | bigIncrements('id');
18 | $table->text('connection');
19 | $table->text('queue');
20 | $table->longText('payload');
21 | $table->longText('exception');
22 | $table->timestamp('failed_at')->useCurrent();
23 | });
24 | }
25 |
26 | /**
27 | * Reverse the migrations.
28 | *
29 | * @return void
30 | */
31 | public function down()
32 | {
33 | Schema::dropIfExists('failed_jobs');
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/database/migrations/2020_12_26_114653_create_profile_madrasah_table.php:
--------------------------------------------------------------------------------
1 | bigIncrements('id');
18 | $table->string('nama', 45);
19 | $table->text('deskripsi');
20 | $table->string('gambar');
21 | $table->string('logo');
22 | $table->integer('jumlah_rombel');
23 | $table->integer('jumlah_siswa');
24 | $table->integer('jumlah_guru');
25 | $table->integer('jumlah_tendik');
26 | $table->timestamps();
27 | });
28 | }
29 |
30 | /**
31 | * Reverse the migrations.
32 | *
33 | * @return void
34 | */
35 | public function down()
36 | {
37 | Schema::dropIfExists('profilemadrasah');
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/database/migrations/2020_12_27_175723_create_ekstrakulikuler_table.php:
--------------------------------------------------------------------------------
1 | bigIncrements('id');
18 | $table->string('nama', 45);
19 | $table->text('deskripsi');
20 | $table->string('foto');
21 | $table->timestamps();
22 | });
23 | }
24 |
25 | /**
26 | * Reverse the migrations.
27 | *
28 | * @return void
29 | */
30 | public function down()
31 | {
32 | Schema::dropIfExists('ekstrakulikuler');
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/database/migrations/2020_12_28_062834_create_gurutendik_table.php:
--------------------------------------------------------------------------------
1 | bigIncrements('id');
18 | $table->string('nama', 45);
19 | $table->string('jabatan', 45);
20 | $table->text('motto');
21 | $table->string('foto');
22 | $table->string('facebook', 45)->nullable();
23 | $table->string('instagram', 45)->nullable();
24 | $table->string('twitter', 45)->nullable();
25 | $table->timestamps();
26 | });
27 | }
28 |
29 | /**
30 | * Reverse the migrations.
31 | *
32 | * @return void
33 | */
34 | public function down()
35 | {
36 | Schema::dropIfExists('gurutendik');
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/database/migrations/2020_12_28_155258_create_contact_table.php:
--------------------------------------------------------------------------------
1 | bigIncrements('id');
18 | $table->string('alamat');
19 | $table->string('email', 45);
20 | $table->string('telpon', 45)->nullable();
21 | $table->string('instagram', 45)->nullable();
22 | $table->string('facebook', 45)->nullable();
23 | $table->string('twitter', 45)->nullable();
24 | $table->timestamps();
25 | });
26 | }
27 |
28 | /**
29 | * Reverse the migrations.
30 | *
31 | * @return void
32 | */
33 | public function down()
34 | {
35 | Schema::dropIfExists('contact');
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/database/migrations/2020_12_28_172531_create_berita_table.php:
--------------------------------------------------------------------------------
1 | bigIncrements('id');
18 | $table->string('judul');
19 | $table->string('foto');
20 | $table->longText('deskripsi');
21 | $table->string('penulis', 45);
22 | $table->timestamps();
23 | });
24 | }
25 |
26 | /**
27 | * Reverse the migrations.
28 | *
29 | * @return void
30 | */
31 | public function down()
32 | {
33 | Schema::dropIfExists('berita');
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/database/migrations/2021_01_01_143849_create_informasi_pendaftaran_table.php:
--------------------------------------------------------------------------------
1 | bigIncrements('id');
18 | $table->string('gambar');
19 | $table->longText('deskripsi');
20 | $table->boolean('status');
21 | $table->timestamps();
22 | });
23 | }
24 |
25 | /**
26 | * Reverse the migrations.
27 | *
28 | * @return void
29 | */
30 | public function down()
31 | {
32 | Schema::dropIfExists('informasi_pendaftaran');
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/database/seeds/DatabaseSeeder.php:
--------------------------------------------------------------------------------
1 | call(UsersTableSeeder::class);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/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 --config=node_modules/laravel-mix/setup/webpack.config.js",
6 | "watch": "npm run development -- --watch",
7 | "watch-poll": "npm run watch -- --watch-poll",
8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js",
9 | "prod": "npm run production",
10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --config=node_modules/laravel-mix/setup/webpack.config.js"
11 | },
12 | "devDependencies": {
13 | "axios": "^0.19",
14 | "bootstrap": "^4.0.0",
15 | "cross-env": "^7.0",
16 | "jquery": "^3.2",
17 | "laravel-mix": "^5.0.1",
18 | "lodash": "^4.17.19",
19 | "popper.js": "^1.12",
20 | "resolve-url-loader": "^2.3.1",
21 | "sass": "^1.20.1",
22 | "sass-loader": "^8.0.0",
23 | "vue": "^2.5.17",
24 | "vue-template-compiler": "^2.6.10"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
24 | {!!$berita->deskripsi!!} 25 |
26 |{{$data_contact->alamat}}
30 |{{$data_contact->email}}
35 |{{$data_contact->telpon}}
42 |{{$data_contact->instagram}}
47 |{{$data_contact->facebook}}
54 |{{$data_contact->twitter}}
59 |{{$data_ekskul->deskripsi}}
35 | 40 |31 | {{$gtk->motto}} 32 |
33 | 38 | 39 |{!!$info_daftar->deskripsi!!}
32 |{{$profile->deskripsi}}
28 |Rombongan Belajar
43 |Siswa
48 |Guru
53 |Tenaga Kependidikan
58 |