<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>">

    @if ($customer['company'])
        <i class="fa fa-building pr-2"></i>
        {{ $customer['company'] }}<br>
    @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() {
            window.location.assign("{{ route('Shop.Customers.edit') }}");
        });
    </script>
@endpush
