This commit is contained in:
Ludovic CANDELLIER
2022-12-22 01:09:11 +01:00
parent ae39681cb0
commit 9698ba54d0
25 changed files with 298 additions and 195 deletions

View File

@@ -1,10 +1,37 @@
<hr>
<strong>Mes coordonnées</strong><br>
<i class="fa fa-home pr-2"></i> {{ $customer['first_name'] }} {{ $customer['first_name'] }} {{ $customer['company'] }}
<i class="fa fa-home pr-2"></i> {{ $customer['address'] }}<br>
<i class="pr-5"></i> {{ $customer['address2'] }}<br>
<x-card title="Mes coordonnées" class="mb-3 gradient-green1" outline=false classBody="pt-3" tools="<button id='profile_edit' class='btn btn-outline-warning'><i class='fa fa-fw fa-edit'></i></button>">
<i class="fa fa-phone pr-2"></i> {{ $customer['phone'] }}<br>
<i class="fa fa-envelope pr-2"></i> {{ $customer['email'] }}<br>
<hr>
<strong>Compte créé le {{ Carbon\Carbon::parse($customer['created_at'])->format('d-m-Y') }}</strong>
@if ($customer['company'])
<i class="fa fa-building pr-2"></i>
{{ $customer['company'] }}
@endif
<i class="fa fa-fw fa-user pr-2"></i>
{{ $customer['first_name'] }} {{ $customer['last_name'] }}
<hr>
<i class="fa fa-fw fa-home pr-2"></i>
{{ $customer['address'] }}<br>
@if ($customer['address2'])
<i class="fa fa-fw pr-2"></i> {{ $customer['address2'] }}<br>
@endif
<i class="fa fa-fw pr-2"></i> {{ $customer['zipcode'] }} {{ $customer['city'] }}<br>
<hr>
<i class="fa fa-fw fa-phone pr-2"></i> {{ $customer['phone'] }}<br>
<i class="fa fa-fw fa-envelope pr-2"></i> {{ $customer['email'] }}<br>
<hr>
<strong>Compte créé le {{ Carbon\Carbon::parse($customer['created_at'])->format('d-m-Y') }}</strong>
</x-card>
@push('js')
<script>
$('#profile_edit').click(function() {
openModal('Modification de vos coordonnées',
'profile-form',
"{{ route('Shop.Customers.modalProfile') }}/",
"{{ route('Shop.Customers.storeProfile') }}",
);
});
</script>
@endpush