@extends('layouts.admin') @section('styles') @endsection @section('content')

{{ __('Products') }}

@foreach($cart->items as $key1 => $product) @endforeach
{{ __('Product ID#') }} {{ __('Product Title') }} {{ __('Price') }} {{ __('Details') }} {{ __('Subtotal') }}
{{ $product['item']['id'] }}
{{mb_strlen($product['item']['name'],'utf-8') > 30 ? mb_substr($product['item']['name'],0,30,'utf-8').'...' : $product['item']['name']}}
{{ App\Models\Product::convertPrice($product['item_price']) }} @if($product['size'])

{{ __('Size') }} : {{str_replace('-',' ',$product['size'])}}

@endif @if($product['color'])

{{ __('color') }} :

@endif

{{ __('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

{{ App\Models\Product::convertPrice($product['price']) }}

@if ($product['discount'] != 0) {{$product['discount']}} %{{__('off')}} @endif

{{ __('Customer Details') }}

@if(@$address['customer_city'] != null) @endif
{{ __('Name') }} : {{$address['customer_name']}}
{{ __('Email') }} : {{$address['customer_email']}}
{{ __('Phone') }} : {{$address['customer_phone']}}
{{ __('Address') }} : {{$address['customer_address']}}
{{ __('Country') }} : {{$address['customer_country'] ? $address['customer_country'] : '--'}}
{{ __('State') }} : {{$address['customer_state'] ? $address['customer_state'] : '--'}}
{{ __('City') }} : {{$address['customer_city'] ? $address['customer_city'] : '--'}}
{{ __('Postal Code') }} : {{$address['customer_zip'] ? $address['customer_zip'] : '--'}}

{{ __('Order Details') }}

{{ __('Total Products') }} : {{count($cart->items)}}
{{ __('Total Quintity') }} : {{$cart->totalQty}}
{{ __('Total Amount') }} : {{App\Models\Product::convertPrice($cart->totalPrice)}}
Order Submit
@endsection