@extends('backend.adminlayouts.master') @section('body')

Comanda #{{$orderInfo->order_number}}

Data Comenzii

@csrf @if(in_array($orderInfo->status, ['pending', 'processing', 'in_progress', 'completed']))

{{ $orderInfo->is_shipped ? 'Livrata' : 'Livreaza comanda' }}

is_shipped ? 'disabled' : '' }} />
@else

Comanda Anulata

@endif

Produse achizitionate

@foreach($orderInfo->orderItem as $item)
@if($item->product->img_01 && Storage::exists($item->product->img_01)) @endif

{{ $item->product->item_name }}

{{ priceView($item->price, true) }}

Cantitate: {{ $item->quantity }}

@if($item->product->isbn_printed)

ISBN Tiparit: {{ $item->product->isbn_printed }}

@endif @if($item->product->isbn_pdf)

ISBN Digital: {{ $item->product->isbn_pdf }}

@endif

@endforeach @if(in_array($orderInfo->status, ['pending', 'processing', 'in_progress', 'completed']))

Status

{{--

{{ $orderInfo->is_shipped ? 'Livrata pe' : 'Pregatire ' }}

--}}
@endif
Detalii livrare
@if($orderInfo->shipping_company) Company: {{$orderInfo->shipping_company}} @endif Nume: {{$orderInfo->shipping_name}} {{$orderInfo->shipping_surname}} Adresa: {{$orderInfo->shipping_street}} {{$orderInfo->shipping_address}} {{$orderInfo->shipping_zipcode}} {{$orderInfo->shipping_city}} ({{$orderInfo->shipping_province}}) Telefon: {{$orderInfo->shipping_phone}}
Detalii facturare
@if($orderInfo->billing_company) Company: {{$orderInfo->billing_company}} VAT ID: {{$orderInfo->billing_vat}} @endif Nume: {{$orderInfo->billing_name}} {{$orderInfo->billing_surname}} Adresa: {{$orderInfo->billing_street}} {{$orderInfo->billing_address}} {{$orderInfo->billing_zipcode}} {{$orderInfo->billing_city}} ({{$orderInfo->billing_province}}) Telefon: {{$orderInfo->billing_phone}}
@if($orderInfo->notes)
Notes: {{$orderInfo->notes}}
@endif
Detalii plata
@if(in_array($orderInfo->status, ['pending', 'processing', 'in_progress', 'completed']))
@if($orderInfo->payment_method === 'card-payment' && $orderInfo->is_paid === 1)
Plata primita
Metoda de plata:

Plata cu cardul

@elseif($orderInfo->payment_method === 'card-payment' && $orderInfo->is_paid === 0)
Se asteapta plata
Metoda de plata:

Plata cu cardul

@elseif($orderInfo->payment_method === 'cash-on-delivery')
{{ $orderInfo->is_paid ? 'Plata primita' : 'Se asteapta plata' }}
Metoda de plata:

Plata ramburs

@endif
@else
Comanda anulata
@endif
@if($orderInfo->orderItem->contains('is_downloadable', 0) && $orderInfo->shipping_cost > 0)
Livrare
Curier: Fan Courier

+ {{ priceView($orderInfo->shipping_cost) }}
@endif @if($orderInfo->discount)
Coupon

- {{ priceView($orderInfo->discount) }}
@endif
Pret total (TVA inclus)
{{ priceView($orderInfo->grand_total) }}
@csrf
Inapoi @if($orderInfo->status == 'in_progress' && $orderInfo->is_shipped)
Finalizare comanda

Sunteți sigur că doriți să finalizati această comandă?

{{ __('product.alertSentence') }}

@csrf
@endif @if(in_array($orderInfo->status, ['pending', 'processing']))
Anulare comanda

Sunteți sigur că doriți să anulati această comandă?

{{ __('product.alertSentence') }}

@csrf
@endif
@endsection