diff --git a/app/Http/Controllers/ClientPortal/DocumentController.php b/app/Http/Controllers/ClientPortal/DocumentController.php new file mode 100644 index 000000000000..041fcbcb7a14 --- /dev/null +++ b/app/Http/Controllers/ClientPortal/DocumentController.php @@ -0,0 +1,97 @@ +all()); + } + + /** + * Display the specified resource. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function show($id) + { + // + } + + /** + * Show the form for editing the specified resource. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function edit($id) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param int $id + * @return \Illuminate\Http\Response + */ + public function update(Request $request, $id) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function destroy($id) + { + // + } +} diff --git a/app/Http/Controllers/ClientPortal/ProfileController.php b/app/Http/Controllers/ClientPortal/ProfileController.php index 863172779d10..b2ce5ad0f04c 100644 --- a/app/Http/Controllers/ClientPortal/ProfileController.php +++ b/app/Http/Controllers/ClientPortal/ProfileController.php @@ -37,7 +37,15 @@ class ProfileController extends Controller */ public function edit(ClientContact $client_contact) { - return view('portal.default.profile.index'); + $data = [ + 'params' => [ + 'is_avatar' => TRUE, + ], + 'url' => '/client/document', + 'multi_upload' => FALSE, + ]; + + return view('portal.default.profile.index', $data); } /** diff --git a/app/Http/Requests/ClientPortal/StoreDocumentRequest.php b/app/Http/Requests/ClientPortal/StoreDocumentRequest.php new file mode 100644 index 000000000000..d415e1dad65b --- /dev/null +++ b/app/Http/Requests/ClientPortal/StoreDocumentRequest.php @@ -0,0 +1,43 @@ +sanitize(); + + return [ + 'file' => 'required|max:10000|mimes:png,ai,svg,jpeg,tiff,pdf,gif,psd,txt,doc,xls,ppt,xlsx,docx,pptx' + ]; + } + +} + diff --git a/resources/views/generic/dropzone.blade.php b/resources/views/generic/dropzone.blade.php new file mode 100644 index 000000000000..593161b19bcd --- /dev/null +++ b/resources/views/generic/dropzone.blade.php @@ -0,0 +1,63 @@ +@section('header') + @parent + + + +@stop +