@extends('layouts.app') @section('title') {{ __('messages.nfc.nfc_card_order_details') }} @endsection @section('header_toolbar')

@yield('title')

@endsection @section('content')
{{ $nfcCardOrder->name }}
{{ $nfcCardOrder->nfcCard->name }}
@if (!@empty($nfcCardOrder->vcard->name))
{{ $nfcCardOrder->vcard->name }}
@endif
{{ $nfcCardOrder->company_name }}
{{ $nfcCardOrder->address }}
@if ($nfcCardOrder->order_status == '0') {{ __('messages.nfc.Pending') }} @elseif ($nfcCardOrder->order_status == '1') {{ __('messages.nfc.Ready To Ship') }} @elseif ($nfcCardOrder->order_status == '2') {{ __('messages.nfc.Shipped') }} @elseif ($nfcCardOrder->order_status == '3') {{ __('messages.nfc.Delivered') }} @else {{ __('messages.nfc.Cancelled') }} @endif
{{ (getFormattedDateTime($nfcCardOrder->created_at))}}
@if (empty($nfcCardOrder->nfcTransaction) || $nfcCardOrder->nfcTransaction->status == App\Models\NfcOrders::FAIL) {{ __('messages.nfc.failed') }} @else @if ($nfcCardOrder->nfcTransaction->status == App\Models\NfcOrders::PENDING) {{ __('messages.nfc.Pending') }} @else {{ __('messages.nfc.paid') }} @endif @endif
@if (empty($nfcCardOrder->nfcTransaction->type)) {{ __('messages.nfc.failed') }} @else {{ __('messages.setting.' . App\Models\NfcOrders::PAYMENT_TYPE_ARR[$nfcCardOrder->nfcTransaction->type]) }} @endif
{{ __('messages.whatsapp_stores_templates.order_summary') }}
{{ __('messages.nfc.price_per_nfc_card') }}: {{ number_format($nfcCardOrder->nfcCard->price, 2) }}
{{ __('messages.whatsapp_stores_templates.quantity') }}: {{ $nfcCardOrder->quantity }}
{{ __('messages.nfc.subtotal') }}: {{ number_format($nfcCardOrder->nfcCard->price * $nfcCardOrder->quantity, 2) }}
{{ __('messages.nfc.tax') }}({{ $nfcCardOrder->nfcTransaction->tax ?? 0 }}%): {{ number_format($nfcCardOrder->nfcTransaction->tax ?? 0, 2) }}

{{ __('messages.whatsapp_stores.grand_total') }}: {{ $nfcCardOrder->nfcTransaction->amount ?? 0 }}
@if ($nfcCardOrder->getMedia('nfc_order_logo')->isNotEmpty()) Company Logo @else

{{ __('messages.no_data') }}

@endif
@endsection