{{ __('messages.customer_information') }}

{{ __('messages.basic_customer_information') }}

@if($customer->id)
@endif @if($customer->afiliado) @php define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'boxshopd_compras'); define('DB_PASSWORD', 'c0GvwJvfhslg'); define('DB_NAME', 'boxshopd_billing'); $link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME); if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } $sql = "SELECT c.*, i.*, c.email FROM customers c INNER JOIN customers i ON c.afiliado = i.id ORDER by i.id ASC"; $result = mysqli_query($link, $sql); $nombreafiliado = ''; while($mostrar = mysqli_fetch_array($result)){ $nombreafiliado = $mostrar['display_name']; } @endphp
@endif @if(($customer->afiliado) == "")
BOX
@endif @if(($customer->afiliado) == "0")
BOX
@endif
@if($customer->getCustomFields()->count() > 0)

{{ __('messages.custom_fields') }}

@foreach ($customer->getCustomFields() as $custom_field) @if($custom_field->type !== 'Hidden')
@include('layouts._custom_field', [ 'model' => $customer, 'custom_field' => $custom_field ])
@else {{-- Hidden --}} @include('layouts._custom_field', [ 'model' => $customer, 'custom_field' => $custom_field ]) @endif @endforeach
@endif