diff --git a/app/Http/Controllers/Home.php b/app/Http/Controllers/Home.php
new file mode 100644
index 0000000..4165210
--- /dev/null
+++ b/app/Http/Controllers/Home.php
@@ -0,0 +1,17 @@
+ 1, 'name' => 'Sukidi', 'age' => 30),
+ array('id' => 2, 'name' => 'Parjo', 'age' => 29),
+ ];
+ return view('home', ['employee' => $employee]); // melempar data employee ke view
+ }
+}
diff --git a/resources/views/about.blade.php b/resources/views/about.blade.php
index c3f12cd..52bba24 100644
--- a/resources/views/about.blade.php
+++ b/resources/views/about.blade.php
@@ -1,12 +1,5 @@
-
-
-
-
-
-
- Codestin Search App
-
-
+@extends('layout.main')
+@section('content')
@@ -14,24 +7,23 @@
Nama Web |
: |
-
+ {{ $webname }}
|
Pemilik Web |
: |
-
+ {{ $owner }}
|
Usia web |
: |
-
+ {{ $usiaweb }}
|
-
-
\ No newline at end of file
+@endsection
\ No newline at end of file
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php
new file mode 100644
index 0000000..7ae8222
--- /dev/null
+++ b/resources/views/home.blade.php
@@ -0,0 +1,21 @@
+@extends('layout.main')
+@section('content')
+
+
+
+ ID |
+ Nama |
+ Usia |
+
+
+
+ @foreach ($employee as $item) {{-- contoh looping --}}
+
+ {{ $item['id'] }} |
+ {{ $item['name'] }} |
+ {{ $item['age'] }} Tahun |
+
+ @endforeach
+
+
+@endsection
\ No newline at end of file
diff --git a/resources/views/layout/main.blade.php b/resources/views/layout/main.blade.php
new file mode 100644
index 0000000..4bd55c5
--- /dev/null
+++ b/resources/views/layout/main.blade.php
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+ Codestin Search App
+
+
+
+
+ @yield('content')
+
+
+
\ No newline at end of file
diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php
deleted file mode 100644
index 801f346..0000000
--- a/resources/views/welcome.blade.php
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
- Codestin Search App
-
-
- Hello welcome
-
-
\ No newline at end of file
diff --git a/routes/web.php b/routes/web.php
index 40b9fb4..2a303f2 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -1,21 +1,9 @@