forked from bagisto/bagisto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request bagisto#8047 from amit-webkul/datagrid
🔒 Refactor Customer view page and fixed edit address state issue
- Loading branch information
Showing
7 changed files
with
623 additions
and
665 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
808 changes: 421 additions & 387 deletions
808
packages/Webkul/Admin/src/Resources/views/customers/addresses/edit.blade.php
Large diffs are not rendered by default.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
packages/Webkul/Admin/src/Resources/views/customers/addresses/index.blade.php
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
packages/Webkul/Admin/src/Resources/views/customers/customers/confirm-password.blade.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ class="flex gap-[6px] items-center justify-between px-[10px] text-blue-600 curso | |
@lang('admin::app.customers.edit.title') | ||
</p> | ||
</x-slot:header> | ||
|
||
<x-slot:content> | ||
<!-- Modal Content --> | ||
{!! view_render_event('bagisto.admin.customers.edit.before') !!} | ||
|
@@ -39,7 +39,7 @@ class="flex gap-[6px] items-center justify-between px-[10px] text-blue-600 curso | |
<x-admin::form.control-group.label class="required"> | ||
@lang('admin::app.customers.edit.first-name') | ||
</x-admin::form.control-group.label> | ||
|
||
<x-admin::form.control-group.control | ||
type="text" | ||
name="first_name" | ||
|
@@ -50,19 +50,19 @@ class="flex gap-[6px] items-center justify-between px-[10px] text-blue-600 curso | |
:placeholder="trans('admin::app.customers.edit.first-name')" | ||
> | ||
</x-admin::form.control-group.control> | ||
|
||
<x-admin::form.control-group.error | ||
control-name="first_name" | ||
> | ||
</x-admin::form.control-group.error> | ||
</x-admin::form.control-group> | ||
|
||
<!--Last Name --> | ||
<!--Last Name --> | ||
<x-admin::form.control-group class="w-full mb-[10px]"> | ||
<x-admin::form.control-group.label class="required"> | ||
@lang('admin::app.customers.edit.last-name') | ||
</x-admin::form.control-group.label> | ||
|
||
<x-admin::form.control-group.control | ||
type="text" | ||
name="last_name" | ||
|
@@ -73,7 +73,7 @@ class="flex gap-[6px] items-center justify-between px-[10px] text-blue-600 curso | |
:placeholder="trans('admin::app.customers.edit.last-name')" | ||
> | ||
</x-admin::form.control-group.control> | ||
|
||
<x-admin::form.control-group.error | ||
control-name="last_name" | ||
> | ||
|
@@ -86,7 +86,7 @@ class="flex gap-[6px] items-center justify-between px-[10px] text-blue-600 curso | |
<x-admin::form.control-group.label class="required"> | ||
@lang('admin::app.customers.edit.email') | ||
</x-admin::form.control-group.label> | ||
|
||
<x-admin::form.control-group.control | ||
type="email" | ||
name="email" | ||
|
@@ -97,7 +97,7 @@ class="flex gap-[6px] items-center justify-between px-[10px] text-blue-600 curso | |
placeholder="[email protected]" | ||
> | ||
</x-admin::form.control-group.control> | ||
|
||
<x-admin::form.control-group.error | ||
control-name="email" | ||
> | ||
|
@@ -110,7 +110,7 @@ class="flex gap-[6px] items-center justify-between px-[10px] text-blue-600 curso | |
<x-admin::form.control-group.label class="required"> | ||
@lang('admin::app.customers.edit.contact-number') | ||
</x-admin::form.control-group.label> | ||
|
||
<x-admin::form.control-group.control | ||
type="text" | ||
name="phone" | ||
|
@@ -121,19 +121,19 @@ class="flex gap-[6px] items-center justify-between px-[10px] text-blue-600 curso | |
:placeholder="trans('admin::app.customers.edit.contact-number')" | ||
> | ||
</x-admin::form.control-group.control> | ||
|
||
<x-admin::form.control-group.error | ||
control-name="phone" | ||
> | ||
</x-admin::form.control-group.error> | ||
</x-admin::form.control-group> | ||
|
||
<!-- Date --> | ||
<x-admin::form.control-group class="w-full mb-[10px]"> | ||
<x-admin::form.control-group.label> | ||
@lang('admin::app.customers.edit.date-of-birth') | ||
</x-admin::form.control-group.label> | ||
|
||
<x-admin::form.control-group.control | ||
type="date" | ||
name="date_of_birth" | ||
|
@@ -143,21 +143,21 @@ class="flex gap-[6px] items-center justify-between px-[10px] text-blue-600 curso | |
:placeholder="trans('admin::app.customers.edit.date-of-birth')" | ||
> | ||
</x-admin::form.control-group.control> | ||
|
||
<x-admin::form.control-group.error | ||
control-name="date_of_birth" | ||
> | ||
</x-admin::form.control-group.error> | ||
</x-admin::form.control-group> | ||
</div> | ||
|
||
<div class="flex gap-[16px] max-sm:flex-wrap"> | ||
<!-- Gender --> | ||
<x-admin::form.control-group class="w-full"> | ||
<x-admin::form.control-group.label class="required"> | ||
@lang('admin::app.customers.edit.gender') | ||
</x-admin::form.control-group.label> | ||
|
||
<x-admin::form.control-group.control | ||
type="select" | ||
name="gender" | ||
|
@@ -169,7 +169,7 @@ class="flex gap-[6px] items-center justify-between px-[10px] text-blue-600 curso | |
<option value="Male"> | ||
@lang('admin::app.customers.edit.male') | ||
</option> | ||
|
||
<option value="Female"> | ||
@lang('admin::app.customers.edit.female') | ||
</option> | ||
|
@@ -178,19 +178,19 @@ class="flex gap-[6px] items-center justify-between px-[10px] text-blue-600 curso | |
@lang('admin::app.customers.edit.other') | ||
</option> | ||
</x-admin::form.control-group.control> | ||
|
||
<x-admin::form.control-group.error | ||
control-name="gender" | ||
> | ||
</x-admin::form.control-group.error> | ||
</x-admin::form.control-group> | ||
|
||
<!-- Customer Group --> | ||
<x-admin::form.control-group class="w-full"> | ||
<x-admin::form.control-group.label> | ||
@lang('admin::app.customers.edit.customer-group') | ||
</x-admin::form.control-group.label> | ||
|
||
@php | ||
$selectedCustomerOption = !is_null($customer->customer_group_id) ? $customer->group->id : ''; | ||
@endphp | ||
|
@@ -208,7 +208,7 @@ class="flex gap-[6px] items-center justify-between px-[10px] text-blue-600 curso | |
</option> | ||
@endforeach | ||
</x-admin::form.control-group.control> | ||
|
||
<x-admin::form.control-group.error | ||
control-name="customer_group_id" | ||
> | ||
|
@@ -272,7 +272,7 @@ class="text-gray-600 font-semibold cursor-pointer" | |
|
||
</div> | ||
</x-slot:content> | ||
|
||
<x-slot:footer> | ||
<!-- Modal Submission --> | ||
<div class="flex gap-x-[10px] items-center"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.