@extends('backend.layout') @section('content')
{{ __('Order ID') }} | {{ __('Product Name') }} | {{ __('Customer Name') }} | {{ __('Paid via') }} | {{ __('Payment Status') }} | {{ __('Shipping Status') }} | {{ __('Attachment') }} | {{ __('Actions') }} | |
---|---|---|---|---|---|---|---|---|
{{ '#' . $order->order_number }} | @php $order_item = \App\Models\ShopManagement\OrderItem::where('product_order_id', $order->id)->first(); if (!is_null($order_item)) { $product = \App\Models\ShopManagement\ProductContent::where('product_id', $order_item->product_id) ->where('language_id', $defaultLang->id) ->first(); if (!is_null($product)) { $title = $product->title; } } else { $product = null; } @endphp@if (!is_null($product)) {{ strlen($title) > 35 ? mb_substr($title, 0, 35, 'utf-8') . '...' : $title }} @endif | {{ $order->billing_fname }} {{ $order->billing_lname }} | {{ !is_null($order->method) ? $order->method : '-' }} |
@if ($order->gateway_type == 'online')
{{ __('Completed') }}@elseif ($order->gateway_type == 'offline') @if ($order->payment_status == 'pending') @else@if ($order->payment_status == 'completed') {{ __('Completed') }} @elseif ($order->payment_status == 'rejected') {{ __('Rejected') }} @endif@endif @else - @endif |
@php $order_items = App\Models\ShopManagement\OrderItem::where('product_order_id', $order->id) ->select('product_id') ->get(); $only_digital = true; foreach ($order_items as $key => $order_item) { $product = App\Models\ShopManagement\Product::where('id', $order_item->product_id) ->select('type') ->first(); if ($product->type == 'physical') { $only_digital = false; } } @endphp @if ($only_digital == false && $order->payment_status != 'rejected') @if ($order->order_status == 'pending' || $order->order_status == 'processing') @else @if ($order->order_status == 'completed') {{ __('Completed') }} @elseif ($order->order_status == 'rejected') {{ __('Rejected') }} @endif @endif @else - @endif | @if (!is_null($order->receipt)) {{ __('Show') }} @else - @endif |
|