@method("PUT") @csrf
@foreach ($invoice->getBillingAddressArray() as $k => $v)
@if ($k == 'billing_details') @include('admin/shared/textarea', ['name' => 'billing_address[' . $k . ']', 'label' => __('global.' . $k), 'value' => $v]) @elseif ($k == 'country') @include('admin/shared/select', ['name' => 'billing_address[' . $k . ']', 'label' => __('global.' . $k), 'options' => $countries, 'value' => $v]) @else @include('admin/shared/input', ['name' => 'billing_address[' . $k . ']', 'label' => __('global.' . ($k == 'zipcode' ? 'zip' : $k)), 'value' => $v]) @endif
@endforeach