@if($order->type == "invoice") @livewire('orders.change-order-status', ['order' => $order]) @endif
{{--

{{ __('Create Blog') }}

--}}
{{--
--}}
Address 1: {{$order->address_1}} Address 2: {{$order->address_2}} {{$order->city}}, {{$order->zip_code}}
@if($order->state) {{$order->state->title}} @elseif($order->other_state) {{$order->other_state}} @endif @if($order->country) {{$order->country->title}} @endif
@if($order->billing_address)
Address 1: {{$order->billing_address->address_1}} Address 2: {{$order->billing_address->address_2}} {{$order->billing_address->city}}, {{$order->billing_address->zip_code}}
@if($order->billing_address->state) {{$order->billing_address->state->title}} @else {{$order->billing_address->other_state}} @endif @if($order->billing_address->country) {{$order->billing_address->country->title}} @endif
@else
Billing address is same as shipping address
@endif
{{--

#

Product

Quantity

Price

Formular

Discount

Total

@foreach ($order->products as $product_order )

{{$loop->iteration}}

{{$product_order->product->title}}
{{$product_order->quantity}}
{{number_format($product_order->price, 2, '.', '')}}
@if($product_order->formular) View formular @endif
{{number_format($product_order->discount) }}
{{number_format($product_order->sum_price, 2, '.', '') }}
@endforeach
--}}
{{--

Order No:{{$order->order_number}}

--}} {{--

New order

--}} @foreach ($order->products as $order_product) @endforeach
# Name Quantity Single Price Questionnaire Discount Total
{{$loop->iteration}} {{$order_product->product->title}} {{$order_product->quantity}} ${{$order_product->price}} @if($order_product->formular) View questionnaire @else / @endif @if($order_product->discount) {{$order_product->discount}}% @else / @endif ${{$order_product->sum_price}}
Total: ${{$order->sum_price()}}
{{--

View order here

--}}