diff --git a/app/Models/User.php b/app/Models/User.php index 3088661..02bd294 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -48,4 +48,9 @@ class User extends Authenticatable implements MustVerifyEmail 'password' => 'hashed', ]; } + + public function full_name(): string + { + return $this->first_name . ' ' . $this->last_name; + } } diff --git a/resources/views/components/auth/form-field.blade.php b/resources/views/components/auth/form-field.blade.php index b880bec..8f27c42 100644 --- a/resources/views/components/auth/form-field.blade.php +++ b/resources/views/components/auth/form-field.blade.php @@ -1,7 +1,8 @@ @props([ 'name', - 'type', - 'label' => 'text', + 'type' => 'text', + 'label', + 'div_classes' => '' ]) @php $labelClasses = "block text-sm font-medium leading-6 text-gray-900"; @@ -14,7 +15,7 @@ 'value' => old($name) ]; @endphp -
+
merge($inputAttributes)}}> diff --git a/resources/views/components/layout/app.blade.php b/resources/views/components/layout/app.blade.php index e1ea05a..93ee6d6 100644 --- a/resources/views/components/layout/app.blade.php +++ b/resources/views/components/layout/app.blade.php @@ -19,173 +19,11 @@ ``` -->
- +
-

Dashboard

+

{{ $page_title }}

diff --git a/resources/views/components/layout/navbar.blade.php b/resources/views/components/layout/navbar.blade.php new file mode 100644 index 0000000..8c48feb --- /dev/null +++ b/resources/views/components/layout/navbar.blade.php @@ -0,0 +1,161 @@ + diff --git a/resources/views/components/layout/page-section.blade.php b/resources/views/components/layout/page-section.blade.php new file mode 100644 index 0000000..7531ddf --- /dev/null +++ b/resources/views/components/layout/page-section.blade.php @@ -0,0 +1,14 @@ +@props([ + 'section_name', + 'section_description' + ]) +
+
+

{{ $section_name }}

+

{{ $section_description }}

+
+ +
+ {{ $slot }} +
+
diff --git a/resources/views/profile.blade.php b/resources/views/profile.blade.php new file mode 100644 index 0000000..f79d791 --- /dev/null +++ b/resources/views/profile.blade.php @@ -0,0 +1,50 @@ +@php use Illuminate\Support\Facades\Auth; @endphp + + User Profile + + + +
+ + + +
+
+
+ + + + + + +
+
+
+ + +
+
+ +
+ + + + +
+
diff --git a/resources/views/test.blade.php b/resources/views/test.blade.php index 8927c69..26f7bba 100644 --- a/resources/views/test.blade.php +++ b/resources/views/test.blade.php @@ -1,4 +1,5 @@ + Test Page Hello World
diff --git a/routes/web.php b/routes/web.php index 551e86e..fa3b775 100644 --- a/routes/web.php +++ b/routes/web.php @@ -7,6 +7,7 @@ Route::get('/', function () { }); Route::view('/test','test'); +Route::view('/profile','profile'); Route::get('/dashboard', function () { return view('welcome');