@php
$location = \App\Models\UserContacts::LocationByContactID();
$hasSalvosite = !auth()->guest() && auth()->user()->hasSalvosite ? true : false;
//if ($location !== '') {
// if (empty($item->currency)) {
// $location = json_decode($location);
// if ($location->country->name === 'UK') {
// $item->currency = '£';
// } elseif (in_array($location->country->name, \App\UserContacts::getEuropeanUnionCountriesNames())) {
// $item->currency = '€';
// } else {
// $item->currency = '$';
//}
// }
//}
if (empty($item->price_type)) {
$item->price_type = 'price';
}
@endphp
{!! Form::select('item_currency', $currencies, old('item_currency', $item->currency), ['class' => 'form-control', 'id' => 'item-currency', 'form' => 'edit-item', 'onChange' => 'priceCombine()']) !!}
{!! Form::select('item_tax', $taxes, old('item_tax', $item->tax), ['class' => 'form-control', 'id' => 'item-tax', 'placeholder' => 'Choose the tax...', 'form' => 'edit-item', 'onChange' => 'priceCombine()']) !!}
{!! Form::select('item_unit_of_measurement', $unitsOfMeasurement, old('item_unit_of_measurement', $item->unit_of_measurement), ['class' => 'form-control', 'id' => 'item-unit-of-measurement', 'placeholder' => 'Choose the unit of measurement...', 'form' => 'edit-item', 'onChange' => 'priceCombine()']) !!}
{!! Form::select('item_text_price', $customPriceValues, old('item_text_price', $item->price), ['class' => 'form-control', 'id' => 'item-text-price', 'placeholder' => 'Choose the custom price value...', 'form' => 'edit-item', 'onChange' => 'priceCombine()']) !!}