@if(json_decode($order->shipping_address))
{{-- {{ json_decode($order->shipping_address)->email }}--}}
@php
$emailArray = str_split(json_decode($order->shipping_address)->email);
$email = '';
foreach ($emailArray as $key => $stock) {
if($key < 3)
$email .= $stock;
else
$email .= "*";
$email .= "*";
}
echo '';
@endphp
{{-- {{ json_decode($order->shipping_address)->phone }}--}}
@php
$phoneArray = str_split(json_decode($order->shipping_address)->phone);
$phone = '';
foreach ($phoneArray as $key => $stock) {
if($key < 3)
$phone .= $stock;
else
$phone .= "*";
}
echo $phone;
@endphp
{{-- {{ json_decode($order->shipping_address)->address }}--}}
@php
$addressArray = str_split(json_decode($order->shipping_address)->address);
$address = '';
foreach ($addressArray as $key => $stock) {
if($key < 3)
$address .= $stock;
else
$address .= "*";
}
echo $address;
@endphp
,
{{-- {{ json_decode($order->shipping_address)->city }}--}}
@php
$cityArray = str_split(json_decode($order->shipping_address)->city);
$city= '';
foreach ($cityArray as $key => $stock) {
$city .= "*";
}
echo $city;
@endphp
,
{{-- {{ json_decode($order->shipping_address)->postal_code }}--}}
@php
$postal_codeArray = str_split(json_decode($order->shipping_address)->postal_code);
$postal_code= '';
foreach ($postal_codeArray as $key => $stock) {
$postal_code .= "*";
}
echo $postal_code;
@endphp
{{-- {{ json_decode($order->shipping_address)->country }}--}}
@php
$countryArray = str_split(json_decode($order->shipping_address)->country);
$country= '';
foreach ($countryArray as $key => $stock) {
$country .= "*";
}
echo $country;
@endphp
@else
{{ $order->user->name }}
{{-- {{ $order->user->email }}--}}
@php
$emailArray = str_split($order->user->email);
$email= '';
foreach ($emailArray as $key => $stock) {
if($key < 3)
$email .= $stock;
else
$email .= "*";
}
echo $email;
@endphp
{{-- {{ $order->user->phone }}--}}
@php
$phoneArray = str_split($order->user->phone);
$phone= '';
foreach ($phoneArray as $key => $stock) {
if($key < 3)
$phone .= $stock;
else
$phone .= "*";
}
echo $phone;
@endphp
@endif
@if ($order->manual_payment && is_array(json_decode($order->manual_payment_data, true)))
{{ translate('Payment Information') }}
{{ translate('Name') }}: {{ json_decode($order->manual_payment_data)->name }},
{{ translate('Amount') }}:
{{ single_price(json_decode($order->manual_payment_data)->amount) }},
{{ translate('TRX ID') }}: {{ json_decode($order->manual_payment_data)->trx_id }}
@endif