From 68f43671a8758eaf06a52780a6747b9f9ad04125 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 5 Aug 2019 15:29:50 +1000 Subject: [PATCH] Working on profile avatar upload - with dropzone --- .../ClientPortal/ProfileController.php | 2 +- package.json | 1 + .../portal/default/invoices/index.blade.php | 2 +- .../portal/default/profile/index.blade.php | 64 +++++++++++++++++++ 4 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 resources/views/portal/default/profile/index.blade.php diff --git a/app/Http/Controllers/ClientPortal/ProfileController.php b/app/Http/Controllers/ClientPortal/ProfileController.php index 1e6e667b69..863172779d 100644 --- a/app/Http/Controllers/ClientPortal/ProfileController.php +++ b/app/Http/Controllers/ClientPortal/ProfileController.php @@ -37,7 +37,7 @@ class ProfileController extends Controller */ public function edit(ClientContact $client_contact) { - dd($client_contact); + return view('portal.default.profile.index'); } /** diff --git a/package.json b/package.json index 85dc8be01c..eb9b592660 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@coreui/icons": "^0.3.0", "bootstrap": "^4.3.1", "cross-env": "^5.2.0", + "dropzone": "^5.5.1", "font-awesome": "^4.7.0", "jquery": "^3.4.1", "laravel-mix": "^4.1.2", diff --git a/resources/views/portal/default/invoices/index.blade.php b/resources/views/portal/default/invoices/index.blade.php index 56f2b25ced..b6dbc3021b 100644 --- a/resources/views/portal/default/invoices/index.blade.php +++ b/resources/views/portal/default/invoices/index.blade.php @@ -18,7 +18,7 @@ {!! Former::dark_button(ctrans('texts.download'))->addClass('download_invoices') !!} {!! Former::success_button(ctrans('texts.pay_now'))->addClass('pay_invoices') !!} - diff --git a/resources/views/portal/default/profile/index.blade.php b/resources/views/portal/default/profile/index.blade.php new file mode 100644 index 0000000000..1e76b008a2 --- /dev/null +++ b/resources/views/portal/default/profile/index.blade.php @@ -0,0 +1,64 @@ +@extends('portal.default.layouts.master') +@section('body') +
+
+ +
+ +
+ +
+ +
+ + {{ ctrans('texts.avatar') }} +
+ +
+ +
+ + +
+ +
+ +
+ +
+ +
+ + {{ ctrans('texts.profile') }} + +
+ +
+ +
+ + +
+ +
+ +
+ +
+
+ +@endsection +@section('footer') + + +