@extends('layouts.admin')
@section('styles')
@endsection
@section('content')
{{ __('Order Details') }}
{{ __('Customer Name') . ': ' . $order->customer_name }}
{{ __('Order Number') . ': ' . $order->order_number }}
| {{ __('ID#') }} |
{{ __('Name') }} |
{{ __('Total') }} |
@foreach ($cart['items'] as $product)
| {{ $product['item']['id'] }} |
@if ($product['item']['user_id'] != 0)
@php
$user = App\Models\User::find($product['item']['user_id']);
@endphp
@if (isset($user))
{{ mb_strlen($product['item']['name'], 'utf-8') > 30
? mb_substr($product['item']['name'], 0, 30, 'utf-8') . '...'
: $product['item']['name'] }}
@else
{{ mb_strlen($product['item']['name'], 'utf-8') > 30
? mb_substr($product['item']['name'], 0, 30, 'utf-8') . '...'
: $product['item']['name'] }}
@endif
@else
{{ mb_strlen($product['item']['name'], 'utf-8') > 30
? mb_substr($product['item']['name'], 0, 30, 'utf-8') . '...'
: $product['item']['name'] }}
@endif
@if ($product['item']['type'] != 'Physical')
@if ($order->payment_status == 'Completed')
@if ($product['item']['file'] != null)
{{ __('Download') }}
@else
{{ __('Download') }}
@endif
@if ($product['license'] != '')
{{ __('View License') }}
@endif
@endif
@endif
|
{{ $order->currency_sign }}{{ number_format(
$product['price'] * $order->currency_value,
$order_curr->decimal_digits,
$order_curr->decimal_separator,
$order_curr->thousands_separator,
) }} {{ $first_curr->sign }}{{ number_format(
$product['price'],
$first_curr->decimal_digits,
$first_curr->decimal_separator,
$first_curr->thousands_separator,
) }}
|
@endforeach
@if ($order->payment_status == 'Pending' && $order->receipt != null)
@elseif($order->payment_status == 'Completed')
{{ __('This receipt has been already accepted.') }}
@else
{{ __('There is no receipt for this order.') }}
@endif