@if(session()->has('order_updated')) @endif @if(session()->has('order_not_updated')) @endif @include('includes.form_errors') @can('read', App\Location::class)
@lang('Location:') @if($order->location) {{$order->location->name}} @else @lang('None') @endif

@lang('Login Type:') {{ ucwords($order->checkout_type) }} Login

@endcan

@lang('Order Detail')

@if(!empty(config('settings.site_logo')))   @endif

@lang('Order') # {{$order->orderno}}


{{config('app.name')}}
@if(config('settings.address_block_address')) {{config('settings.address_block_address')}}
@endif @if(config('settings.toll_free_number')) @lang('PhoneNo:') {{config('settings.toll_free_number')}}
@endif @if(config('settings.gstin')) @lang('GST NO:') {{config('settings.gstin')}}
@endif
@lang('Customer Details:')
{{$order->address->first_name}} {{$order->address->last_name}}
{{$order->address->address}}
{{$order->address->city}}, {{$order->address->state}}, {{$order->address->country}}.
@lang('Pincode:') {{$order->address->zip}}, @lang('Mob:') {{$order->address->phone}}
@if ($order->user) @if ($order->user->gstin) @lang('GST NO:') {{$order->user->gstin}}
@endif @endif
@lang('Payment Status:') {{$order->paid ? __('Paid') : __('Unpaid')}}
@lang('Payment Method:') {{$order->payment_method}}
@lang('Order Status:') {{$order->is_processed ? __('Delivered') : __('Pending')}}
@lang('Order Date:')
{{$order->created_at->toFormattedDateString()}}

@foreach($order->products as $product) @endforeach @if($order->coupon_amount && $order->coupon_amount > 0) @endif
@lang('Item') @lang('Price') @lang('Unit Tax') @lang('Quantity') @lang('Total')
{{$product->name}} @if($product->pivot->spec && ($specs = unserialize($product->pivot->spec)))
@foreach($specs as $key => $spec) {{$spec['name']}}: {{$spec['value']}}@if(!$loop->last), @endif @endforeach @endif
@lang('SKU'):{{$product->sku}}
{{currency_format($product->pivot->unit_price, $order->currency)}} {{ $product->pivot->tax_rate ? $product->pivot->tax_rate : $product->tax_rate }}% {{$product->pivot->quantity}} {{currency_format($product->pivot->total, $order->currency)}}
@lang('Subtotal') {{currency_format($order->total, $order->currency)}}
@lang('Tax') +{{ currency_format($order->total*$order->tax/100 , $order->currency)}}
@lang('Shipping Cost') {{isset($order->shipping_cost) ? currency_format($order->shipping_cost, $order->currency) : currency_format(0, $order->currency)}}
@lang('Coupon Discount') -{{ currency_format($order->coupon_amount, $order->currency) }}
@lang('Total') {{currency_format($order->shipping_cost + $order->total - $order->coupon_amount + ($order->total * $order->tax) / 100, $order->currency)}}
{!! Form::model($order, ['method'=>'patch', 'action'=>['ManageOrdersController@update', $order->id], 'id'=>'update-form-'.$order->id]) !!} @if(count($order->shipments) > 0)
@foreach($order->shipments as $shipment) @if($order->shipments->contains($shipment->id))
{{$shipment->pivot->status ? $shipment->pivot->status : $shipment->name }}
{{$shipment->name}}
{{$shipment->address. ', ' .$shipment->city. ', ' .$shipment->state. ' - ' .$shipment->zip. ' ' .$shipment->country}}
{{$shipment->pivot->created_at->toCookieString()}}
@endif @endforeach

@endif
{!! Form::label('status', __('Current Status:')) !!}* {!! Form::textarea('status', null, ['id' => 'current_status', 'class'=>'form-control', 'placeholder'=>__('Enter current status')])!!}

@if(!$order->stock_regained)
@endif

{!! Form::label('receiver_detail', __('Receiver Detail:')) !!} {!! Form::textarea('receiver_detail', null, ['class'=>'form-control', 'placeholder'=>__('Enter receiver detail'), 'rows'=>4])!!}

@lang('Update') {!! Form::close() !!}