diff --git a/app/Http/Controllers/Shop/CustomerController.php b/app/Http/Controllers/Shop/CustomerController.php index 29c0ea33..4649fdd2 100644 --- a/app/Http/Controllers/Shop/CustomerController.php +++ b/app/Http/Controllers/Shop/CustomerController.php @@ -6,6 +6,7 @@ use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Repositories\Shop\Customers; +use Illuminate\Support\Facades\Auth; class CustomerController extends Controller { @@ -17,10 +18,17 @@ class CustomerController extends Controller public function modalProfile($id = false) { - $data['old'] = Customers::get($id); + $data['customer'] = Customers::get($id); return view('Shop.Customers.partials.registration', $data); } + public function edit() + { + $id = Auth::id(); + $data['customer'] = Customers::get($id); + return view('Shop.Customers.edit', $data); + } + public function storeProfileAjax(Request $request) { $data = $request->all(); diff --git a/build/css/site.css b/build/css/site.css index 7c931492..b1ba35c5 100644 --- a/build/css/site.css +++ b/build/css/site.css @@ -9,7 +9,10 @@ body { background: linear-gradient(180deg, rgba(52,91,71,1) 0%, rgba(45,81,63,1) 10%, rgba(24,48,39,1) 90%, rgba(28,54,45,1) 100%); background-size: cover; background-attachment: fixed; +} +label { + margin-top: 0.5rem; } .gradient-green1 { diff --git a/resources/views/Shop/Customers/edit.blade.php b/resources/views/Shop/Customers/edit.blade.php new file mode 100644 index 00000000..42872289 --- /dev/null +++ b/resources/views/Shop/Customers/edit.blade.php @@ -0,0 +1,25 @@ +@extends('Shop.layout.layout', [ + 'title' => __('Editer son profil'), +]) + +@section('content') +