From 5f37553f8771cf1cb2c89ede8c1eee33130fa480 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 14 Aug 2019 08:41:19 +1000 Subject: [PATCH] Working on client profile --- .../portal/default/profile/index.blade.php | 122 +++++++----------- 1 file changed, 50 insertions(+), 72 deletions(-) diff --git a/resources/views/portal/default/profile/index.blade.php b/resources/views/portal/default/profile/index.blade.php index 039bc704503b..d8bee5672824 100644 --- a/resources/views/portal/default/profile/index.blade.php +++ b/resources/views/portal/default/profile/index.blade.php @@ -13,98 +13,76 @@ @endpush @section('body')
-
- -
- -
- - {!! Former::framework('TwitterBootstrap4'); !!} - - {!! Former::vertical_open_for_files() - ->id('update_contact') - ->route('client.profile.update', auth()->user()->hashed_id) - ->method('PUT'); !!} - - @csrf - -
- -
- - {{ ctrans('texts.avatar') }} - -
- -
- - @if(auth()->user()->avatar) - - @else - - @endif - - {!! Former::file('avatar') - ->max(2, 'MB') - ->accept('image') - ->label('') - ->inlineHelp(trans('texts.logo_help')) !!} - -
- - - +
+
+
+
+ {{ ctrans('texts.user_details') }}
-
+ {!! Former::framework('TwitterBootstrap4'); !!} -
- -
+ {!! Former::vertical_open_for_files() + ->id('update_contact') + ->route('client.profile.update', auth()->user()->hashed_id) + ->method('PUT'); !!} + + @csrf -
- - {{ ctrans('texts.user_details') }} +
+
+
+
+
+ @if(auth()->user()->avatar) + + @else + + @endif + + {!! Former::file('avatar') + ->max(2, 'MB') + ->accept('image') + ->label('') + ->inlineHelp(trans('texts.logo_help')) !!} +
+
+
+
+
+ {!! Former::text('first_name')->placeholder( ctrans('texts.first_name'))->label('')->value(auth()->user()->first_name)!!} -
- - {!! Former::text('first_name')->placeholder( ctrans('texts.first_name'))->label('')->value(auth()->user()->first_name)!!} + {!! Former::text('last_name')->placeholder( ctrans('texts.last_name'))->label('')->value(auth()->user()->last_name) !!} - {!! Former::text('last_name')->placeholder( ctrans('texts.last_name'))->label('')->value(auth()->user()->last_name) !!} + {!! Former::text('email')->placeholder( ctrans('texts.email'))->label('')->value(auth()->user()->email) !!} - {!! Former::text('email')->placeholder( ctrans('texts.email'))->label('')->value(auth()->user()->email) !!} + {!! Former::text('phone')->placeholder( ctrans('texts.phone'))->label('')->value(auth()->user()->phone) !!} - {!! Former::text('phone')->placeholder( ctrans('texts.phone'))->label('')->value(auth()->user()->phone) !!} + {!! Former::password('password')->placeholder( ctrans('texts.password'))->label('') !!} - {!! Former::password('password')->placeholder( ctrans('texts.password'))->label('') !!} + {!! Former::password('password_confirmation')->placeholder( ctrans('texts.confirm_password'))->label('') !!} - {!! Former::password('password_confirmation')->placeholder( ctrans('texts.confirm_password'))->label('') !!} +
+ +
+
+
- - - +
- - {!! Former::close() !!} - +
+
-
+ {!! Former::close() !!} - @include('portal.default.profile.client_information') - -
+ @include('portal.default.profile.client_information') +
- @endsection \ No newline at end of file