@extends('layouts.vendor') @section('content')
@lang('Product ID#') | @lang('Shop Name') | @lang('Status') | @lang('Product Title') | @lang('Details') | @lang('Total Price') |
---|---|---|---|---|---|
{{ $product['item']['id'] }} | @if ($product['item']['user_id'] != 0) @php $user = App\Models\User::find($product['item']['user_id']); @endphp @if (isset($user)) {{ $user->shop_name }} @else {{ __('Vendor Removed') }} @endif @endif | @if ($product['item']['user_id'] != 0) @php $user = App\Models\VendorOrder::where('order_id', '=', $order->id) ->where('user_id', '=', $product['item']['user_id']) ->first(); @endphp @if ($order->dp == 1 && $order->payment_status == 'Completed') {{ __('Completed') }} @else @if ($user->status == 'pending') {{ ucwords($user->status) }} @elseif($user->status == 'processing') {{ ucwords($user->status) }} @elseif($user->status == 'on delivery') {{ ucwords($user->status) }} @elseif($user->status == 'completed') {{ ucwords($user->status) }} @elseif($user->status == 'declined') {{ ucwords($user->status) }} @endif @endif @endif | @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 @endif @if ($product['license'] != '') {{ __('View License') }} @endif |
@if ($product['size'])
@lang('Size :')
{{ str_replace('-','',$product['size'],) }}
@endif
@if ($product['color'])
{{ __('Color') }} :
@endif
@lang('Price :')
{{ \PriceHelper::showOrderCurrencyPrice($product['item_price'] * $order->currency_value, $order->currency_sign) }}
@lang('Qty :')
{{ $product['qty'] }}
{{ $product['item']['measure'] }}
@if (!empty($product['keys']))
@foreach (array_combine(explode(',', $product['keys']), explode(',', $product['values'])) as $key => $value)
{{ ucwords(str_replace('_', ' ', $key)) }} :
{{ $value }}
@endforeach
@endif
|
{{ \PriceHelper::showOrderCurrencyPrice($product['price'] * $order->currency_value, $order->currency_sign) }} {{ $product['discount'] == 0 ? '' : '(' . $product['discount'] . '% ' . __('Off') . ')' }} |