-
+@extends('layouts.app')
+@section('content')
+
+
+
+
+
+
+ @foreach($kegiatan as $dataKeg)
+
+
+
+
+ Kegiatan {{ $dataKeg->kategori }}
+ {{ date('D',strtotime($dataKeg->created_at)) }}, {{ date('d M Y',strtotime($dataKeg->created_at)) }}
+
+
{{ $dataKeg->judul }}
+
+ {!! substr(strip_tags($dataKeg->body),0,200) !!}
+
+
+ Baca Selengkapnya
+
+
+
+ @endforeach
-
-
-
-
-
-
-
-
- @foreach($kegiatan as $dataKeg)
-
-
-
-
- Kegiatan {{ $dataKeg->kategori }}
- {{ date('D',strtotime($dataKeg->created_at)) }}, {{ date('d M Y',strtotime($dataKeg->created_at)) }}
-
-
{{ $dataKeg->judul }}
-
- {!! substr(strip_tags($dataKeg->body),0,200) !!}
-
-
- Baca Selengkapnya
-
-
-
- @endforeach
-
-
-
- {!! $kegiatan->links() !!}
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+ {!! $kegiatan->links() !!}
+
+
+@endsection
\ No newline at end of file
diff --git a/resources/views/kegiatan_detail.blade.php b/resources/views/kegiatan_detail.blade.php
new file mode 100644
index 0000000..9fc60f3
--- /dev/null
+++ b/resources/views/kegiatan_detail.blade.php
@@ -0,0 +1,92 @@
+@extends('layouts.app')
+@section('content')
+
+
+
+
+
+
+
+ Kegiatan {{ $kegiatan->kategori }}
+ {{ date('D',strtotime($kegiatan->created_at)) }}, {{ date('d M Y',strtotime($kegiatan->created_at)) }}
+
+
{{ $kegiatan->judul }}
+
+
+ {!!$kegiatan->body !!}
+
+
+
+
+
+
+
+ @foreach($lainnya as $dataKeg)
+
+
+
+
+
+
{{ date('D',strtotime($dataKeg->created_at)) }}, {{ date('d M Y',strtotime($dataKeg->created_at)) }}
+
{{ $dataKeg->judul }}
+
+
+ @endforeach
+
+
+
+
+
+
+@endsection
+@section('js')
+
+@endsection
\ No newline at end of file
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index a6970da..f2ecc6b 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -1,80 +1,114 @@
-
-
-
-
+
+
+
+
Kegiatan | Sekolah Adiwiyata DKI Jakarta
+
-
-
+
+
+
+
+
-
{{ config('app.name', 'Laravel') }}
+
+
+ @yield('css')
+
+
+
+
-
-
-
-
-
- @vite(['resources/sass/app.scss', 'resources/js/app.js'])
-
-
-
-
-
-
-
-
- @yield('content')
-
-
-
-
+
+ @yield('content')
+
+ @yield('js')
+
+
\ No newline at end of file
diff --git a/resources/views/sekolah.blade.php b/resources/views/sekolah.blade.php
index 9450d86..fc80e67 100644
--- a/resources/views/sekolah.blade.php
+++ b/resources/views/sekolah.blade.php
@@ -1,159 +1,53 @@
-
-
-
-
-
Sekolah | Sekolah Adiwiyata DKI Jakarta
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- No
- Sekolah
- Kota
- Tahun
- Skor
-
-
-
- 'SMPN 253','kota' => 'Jakarta Selatan','skor' => '89,86','tahun' => '2024'],
- ['name' => 'SDI Al Irsyad Islamiyah','kota' => 'Jakarta Pusat','skor' => '89,85','tahun' => '2024'],
- ['name' => 'SDN Kemanggisan 17','kota' => 'Jakarta Barat','skor' => '89,45','tahun' => ''],
- ['name' => 'SDN Sukabumi Utara 07','kota' => 'Jakarta Barat','skor' => '89,54','tahun' => ''],
- ['name' => 'SDS Strada Santo Ignatius','kota' => 'Jakarta Utara','skor' => '89,24','tahun' => ''],
- ['name' => 'SDN Jatinegara 06 Pagi','kota' => 'Jakarta Timur','skor' => '89,33','tahun' => ''],
- ['name' => 'SDN Pekayon 03 Pagi','kota' => 'Jakarta Timur','skor' => '89,43','tahun' => ''],
- ['name' => 'SDN Lubang Buaya 06 Pagi','kota' => 'Jakarta Timur','skor' => '89,71','tahun' => ''],
- ];
- ?>
- @foreach($data as $k => $val)
-
- {{ $k+1 }}
- {{ $val['name'] }}
- {{ $val['kota'] }}
- {{ $val['tahun'] }}
- {{ $val['skor'] }}
+@extends('layouts.app')
+@section('content')
+
+
+
+
+
+
+
+
+ No
+ Sekolah
+ Kota
+ Tahun
+ Skor
- @endforeach
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+ 'SMPN 253','kota' => 'Jakarta Selatan','skor' => '89,86','tahun' => '2024'],
+ ['name' => 'SDI Al Irsyad Islamiyah','kota' => 'Jakarta Pusat','skor' => '89,85','tahun' => '2024'],
+ ['name' => 'SDN Kemanggisan 17','kota' => 'Jakarta Barat','skor' => '89,45','tahun' => ''],
+ ['name' => 'SDN Sukabumi Utara 07','kota' => 'Jakarta Barat','skor' => '89,54','tahun' => ''],
+ ['name' => 'SDS Strada Santo Ignatius','kota' => 'Jakarta Utara','skor' => '89,24','tahun' => ''],
+ ['name' => 'SDN Jatinegara 06 Pagi','kota' => 'Jakarta Timur','skor' => '89,33','tahun' => ''],
+ ['name' => 'SDN Pekayon 03 Pagi','kota' => 'Jakarta Timur','skor' => '89,43','tahun' => ''],
+ ['name' => 'SDN Lubang Buaya 06 Pagi','kota' => 'Jakarta Timur','skor' => '89,71','tahun' => ''],
+ ];
+ ?>
+ @foreach($data as $k => $val)
+
+ {{ $k+1 }}
+ {{ $val['name'] }}
+ {{ $val['kota'] }}
+ {{ $val['tahun'] }}
+ {{ $val['skor'] }}
+
+ @endforeach
+
+
+
+
+
+@endsection
+@section('js')
+
+
+
+
+@endsection
\ No newline at end of file
diff --git a/routes/web.php b/routes/web.php
index a4453a1..801f3d8 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -41,6 +41,7 @@ Route::middleware(Session::class)->name('modules.')->group(function () {
Route::get('/',[FrontController::class,'index'])->name('index');
Route::get('/sekolah',[FrontController::class,'sekolah'])->name('sekolah');
Route::get('/kegiatan',[FrontController::class,'kegiatan'])->name('kegiatan');
+Route::get('/kegiatan/{slug}',[FrontController::class,'kegiatan_detail'])->name('kegiatan_detail');
Route::get('/galeri',[FrontController::class,'galeri'])->name('galeri');
// Auth::routes();