@extends('layouts.main') @section('title', __('home.seo.title')) @section('description', __('home.seo.description')) @section('extraCss') @endsection @section('content')
@include('auth.customer.partials.header')
{{ __('customer.invoice.order_no') }} {{$orderInfo->order_number}}
{{ Carbon\Carbon::parse($order->created_at)->format('d/m/Y H:s') }}

{{ __('customer.invoice.bill_to') }}

{{ $orderInfo->billing_name}} {{ $orderInfo->billing_surname}}
{{ $orderInfo->email }}
{{ $orderInfo->billing_street}}
{{ $orderInfo->billing_city}}
{{ $orderInfo->billing_province }}

{{ __('customer.invoice.shipping_to') }}

{{ $orderInfo->shipping_name}} {{ $orderInfo->shipping_surname}}
{{ $orderInfo->email }}
{{ $orderInfo->shipping_street}}
{{ $orderInfo->shipping_city}}
{{ $orderInfo->shipping_province }}

@if($orderInfo->status == 'pending' || $orderInfo->status == 'processing' || $orderInfo->status == 'in_progress' || $orderInfo->status == 'completed')
@if($orderInfo->payment_method === 'card-payment' && $orderInfo->is_paid === 1)

{{ __('customer.invoice.payment_method') }}

{{ __('customer.invoice.card_payment') }}

@endif @if($orderInfo->payment_method === 'cash-on-delivery' && $orderInfo->is_paid === 1 && $orderInfo->is_shipped === 1)

{{ __('customer.invoice.payment_method') }}

{{ __('customer.invoice.cash_on_delivery_paid') }}

@endif @if($orderInfo->payment_method === 'cash-on-delivery' && $orderInfo->is_paid === 0 && $orderInfo->is_shipped === 1)

{{ __('customer.invoice.payment_method') }}:

{{ __('customer.invoice.cash_on_delivery_in_delivery') }}

@endif @if($orderInfo->payment_method === 'cash-on-delivery' && $orderInfo->is_paid === 0 && $orderInfo->is_shipped === 0)

{{ __('customer.invoice.payment_method') }}:

{{ __('customer.invoice.cash_on_delivery_in_progress') }}

@endif
@elseif($orderInfo->status == 'declined')
{{ __('customer.invoice.payment_refused') }}
@elseif($orderInfo->status == 'canceled')
{{ __('customer.invoice.order_canceled') }}
@elseif($orderInfo->status == 'refunded')
{{ __('customer.invoice.order_returned') }}
@endif
@if($orderInfo->status == "completed" && $orderInfo->orderItem->contains('is_downloadable', 1)) @endif @foreach($orderInfo->orderItem as $item) @if($orderInfo->status == "completed" && $orderInfo->orderItem->contains('is_downloadable', 1)) @endif @endforeach @if($orderInfo->orderItem->contains('is_downloadable', 0)) @endif @if($orderInfo->discount) @endif
{{ __('customer.invoice.item_name') }}{{ __('customer.invoice.download') }}{{ __('customer.invoice.unit_price') }} {{ __('customer.invoice.quantity') }} {{ __('customer.invoice.amount') }}
@if($item->product->img_01 != null && Storage::exists($item->product->img_01)) @else {{Str::of('/uploads/default/default.jpg')->basename('.jpg')}} @endif {{ $item->product->item_name}}
@if($orderInfo->status == "completed" && $item->is_downloadable && ($item->product->pdf || $item->product->mobi || $item->product->epub)) @endif
{{ priceView($item->price, true) }} {{ $item->quantity }} {{ priceView($item->price, true) }}
orderItem->contains('is_downloadable', 1)) 4 @else 3 @endif" class="text-end f-w-600">{{ __('customer.invoice.tax') }} {{ priceView($newTax)}}
orderItem->contains('is_downloadable', 1)) 4 @else 3 @endif" class="text-end f-w-600">{{ __('customer.invoice.shipping_cost') }} @if($shipping > 0) {{ priceView($shipping)}} @else Gratuit @endif
orderItem->contains('is_downloadable', 1)) 4 @else 3 @endif" class="text-end f-w-600">{{__('customer.cart.coupon')}}: - {{ priceView($orderInfo->discount) }}
orderItem->contains('is_downloadable', 1)) 4 @else 3 @endif" class="text-end f-w-600">{{ __('customer.invoice.grand_total') }} {{ priceView($orderInfo->grand_total) }}
@if($orderInfo->status == "completed" && $orderInfo->invoice) @endif @if($orderInfo->status == "completed" && $orderInfo->awb) @endif
@endsection @section('extraJs') @endsection