diff --git a/resources/views/pages/accounts/profile.blade.php b/resources/views/pages/accounts/profile.blade.php index 42822c4..e7e542a 100644 --- a/resources/views/pages/accounts/profile.blade.php +++ b/resources/views/pages/accounts/profile.blade.php @@ -1,582 +1,280 @@ @extends('layouts.base_portal') @section('inner_content') -
-
-
-
-
- -
-
-
-
-
-

{{ucwords($profile->first_name.' '.$profile->last_name)}}

-

Development - Php Developer

-
- -
-
- -
-
-
+
+
+
+
+
+
+
- Contact Information + + Personal Information +
-
+
-
-
-

Phone:

+
+
+
-
-
+
+
-

- @if($userContacts['primary']) {{ '+'.$userContacts['primary']->country_key.' '.$userContacts['primary']->contact_no}} @endif - Not specified -

-

-
-
-
- -
+ Basic Information
-
-
-
-
-
- -
-
-
-
- -
-
-
-
-
- - - @if($userContacts['primary'] !== null) - - @endif - - -
-
+
+
+

First Name

-
-
-
-
-
-
-
-
-
-

E-mail:

-
-
-
-
-

{{$profile->email}}

+
+

:

-
-
-
-
-
-
-
-
-
-

Address:

-
-
-
-
-

- {{$profile->street_one.' '.$profile->street_two.' '.$profile->city.' '.$profile->state.' '.$profile->post_code.' '.$profile->country }} - Not specified -

-
-
-
- -
-
-
-
-
-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
- -
-
-
-
- -
-
-
-
-
-
- -
-
-
-
- -
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
- Basic Information -
-
-
-
-
-
-

Employee ID:

-
-
-
-
-

- {{$profile->employee_id}} - Not specified -

-
-
-
- -
-
-
-
-
-
-
-
- -
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-

Birthday:

-
-
-
-
-

- {{$profile->birth_date}} - Not specified -

-
-
-
- -
-
-
-
-
-
-
-
- -
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-

Gender:

-
-
-
-
-

- - @if($profile->gender !== 0) - {{Constants::GENDER_NAMES[$profile->gender]}} - @endif - - Not specified -

-
-
-
- -
-
-
-
-
-
-
- @foreach(Constants::GENDER_NAMES as $id => $name) -
- gender === $id) checked @endif> -
- -
-
- @endforeach -
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-

Marital Status:

-
-
-
-
-

- - @if($profile->marriage_status !== 0) - {{Constants::MARITAL_STATUS_NAMES[$profile->marriage_status]}} - @endif - - Not specified -

-
-
-
- -
-
-
-
-
-
-
- @foreach(Constants::MARITAL_STATUS_NAMES as $id => $name) -
- marriage_status === $id) checked @endif> -
- -
-
- @endforeach -
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

- - -

-

- + + @if(auth()->user() !== null) + {{ auth()->user()->first_name}} + @endif + + Not specified

+

-
+
-
- -
- -
+
-
-
- -
-
- -
-
-
-
-
-
- -
-
-
-
- +
- - +
-
-
- @foreach($userContacts['emergency'] as $key => $contact) -
-
-
+
+
+

Last Name

+
+
+

:

+
-
-

- {{Constants::MODULE_TYPES[$contact->type]}} - {{$contact->name}} -

-

- {{ '+'.$contact->country_key.' '.$contact->contact_no}} + + @if(auth()->user() !== null) + {{ auth()->user()->last_name}} + @endif + + Not specified

+

-
+
-
- -
-
-
-
- -
-
- -
-
-
-
-
-
- -
-
-
-
- +
- - + +
+
+
+
+
+
+
+
+

Email

+
+
+

:

+
+
+
+
+

+ + @if(auth()->user() !== null) + {{ auth()->user()->email}} + @endif + + Not specified +

+

+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+

Password

+
+
+

:

+
+
+
+
+

+ ********* + +

+

+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+

Address

+
+
+

:

+
+
+
+
+

+ + @if(auth()->user() !== null) + {{ auth()->user()->address}} + @endif + + Not specified +

+

+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+

Joined

+
+
+

:

+
+
+
+
+

+ + @if(auth()->user() !== null) + {{ auth()->user()->created_at}} + @endif + + Not specified + +

+

+
+
+
+ +
+
+
+
+
+
+
+
+ +
@@ -585,106 +283,33 @@
- @endforeach -
-
-
-
-

- Add New Contact -

-
-
-
-
-
-
-
- -
-
-
-
- -
-
-
-
-
-
- -
-
-
-
- -
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
Under Construction
-
-
-
+
+
+
+
+
-
Total Claims
-
-
-
-
-

MYR 0.00

-
-
-
-
- Make a claim +
+
+ + User Activity + +
+
-
- -@endsection \ No newline at end of file +@endsection + + + + diff --git a/resources/views/partials/general/header.blade.php b/resources/views/partials/general/header.blade.php index 42899b1..6beb84c 100644 --- a/resources/views/partials/general/header.blade.php +++ b/resources/views/partials/general/header.blade.php @@ -27,7 +27,7 @@
{{ucwords(auth()->user()->first_name.' '.auth()->user()->last_name)}}
{{auth()->user()->email}}
- +
diff --git a/routes/web.php b/routes/web.php index a2885b0..c6d2ac5 100644 --- a/routes/web.php +++ b/routes/web.php @@ -24,6 +24,10 @@ Route::group(['prefix' => 'auth'], function () { Route::group(['middleware' => ['secure', 'clearcache']], function (): void { + Route::get('/profile', function(){ + return view('pages.accounts.profile'); + })->name('user.profile'); + Route::post('/test', 'TestController@index')->name('test'); Route::get('/accounts', function(){