From 3fb2af403d9b934423b2df55020d94c25f4c2803 Mon Sep 17 00:00:00 2001 From: EnesSacid-Buker <73346401+EnesSacid-Buker@users.noreply.github.com> Date: Thu, 1 Dec 2022 18:31:43 +0300 Subject: [PATCH] Fixed the position of stacks so they don't break the style --- .../contacts/show/content.blade.php | 76 ++++++++++++------- 1 file changed, 50 insertions(+), 26 deletions(-) diff --git a/resources/views/components/contacts/show/content.blade.php b/resources/views/components/contacts/show/content.blade.php index 87d043913..efce289f3 100644 --- a/resources/views/components/contacts/show/content.blade.php +++ b/resources/views/components/contacts/show/content.blade.php @@ -4,33 +4,29 @@ @if (! $hideTopLeft) - @if (! $hideAvatar) - - @if ($contact->logo) - @if (is_object($contact->logo)) - + @if (! $hideAvatar) + + @if ($contact->logo) + @if (is_object($contact->logo)) + + @else + + @endif + + {{ $contact->initials }} @else - + {{ $contact->initials }} @endif - - {{ $contact->initials }} - @else - {{ $contact->initials }} + @endif - - @endif - @stack('contact_email_start') @if (! $hideEmail) {{ $contact->email }} @endif - @stack('contact_email_end') - @stack('contact_phone_start') @if (! $hidePhone) {{ $contact->phone }} @endif - @stack('contact_phone_end') @endif @@ -74,16 +70,44 @@ @if (! $hideBottomLeft) - @stack('customer_address_start') + + @stack('name_input_start') + @stack('name_input_end') + + @stack('logo_input_start') + @stack('logo_input_end') + + @stack('email_input_start') + @stack('email_input_end') + + @stack('phone_input_start') + @stack('phone_input_end') + + @stack('currency_code_input_start') + @stack('currency_code_input_end') + + @stack('address_input_start') @if (! $hideAddress)
{{ trans('general.address') }}
{{ $contact->address }}
{{ $contact->location }}
@endif - @stack('customer_address_end') + @stack('address_input_end') - @stack('customer_tax_number_start') + @stack('city_input_start') + @stack('city_input_end') + + @stack('zip_code_input_start') + @stack('zip_code_input_end') + + @stack('state_input_start') + @stack('state_input_end') + + @stack('country_input_start') + @stack('country_input_end') + + @stack('tax_number_input_start') @if (! $hideTaxNumber) @if ($contact->tax_number)
@@ -92,9 +116,9 @@
@endif @endif - @stack('customer_tax_number_end') + @stack('tax_number_input_end') - @stack('customer_website_start') + @stack('website_input_start') @if (! $hideWebsite) @if ($contact->website)
@@ -103,9 +127,9 @@
@endif @endif - @stack('customer_website_end') + @stack('website_input_end') - @stack('customer_reference_start') + @stack('reference_input_start') @if (! $hideReference) @if ($contact->reference)
@@ -114,9 +138,9 @@
@endif @endif - @stack('customer_reference_end') + @stack('reference_input_end') - @stack('customer_client_portal_start') + @stack('create_user_input_start') @if (! $hideUser)
@@ -138,7 +162,7 @@
@endif - @stack('customer_client_portal_end') + @stack('create_user_input_end')
@endif