@extends('layouts.admin') @section('header-content') @endsection @section('content')
@if(!empty($order)) @if(count($order->OrderImages->toarray())>0) @foreach($order->OrderImages->toarray() as $key=>$value) @else @endif @endforeach @else @endif @endif
Order Detail @if(($order->status!="Delivered") && ($order->status!="Returned")) @if( Auth::user()->can('modify_sales')) @endif @endif
Customer Name @if(isset($order->shop->name)){{$order->shop->name}} @endif Price {{$order->price}}
Discount {{$order->discount}} Payment {{$order->payment}}
Booked By {{$order->book_by->firstname.' '.$order->book_by->lastname}} Delivery Date {{$order->date_to_deliver}}
Delivery Time {{$order->delivery_time}} Type {{$order->type}}
Status {{$order->status}} Latitude {{$order->latitude}}
Longitude {{$order->longitude}} Type {{$order->type}}
Description {{$order->remarks}}
Product Included
@foreach($order->products as $key=>$value) @endforeach
# Product Name Quantity Actual Price (Dozen) Discount Price (Dozen) Free Scheme Quantity
{{$key+1}} {{$value->products->name}} {{$value->quantity}} {{round(12*($value->product_actual_price),2)}} @if(count($value->OrderProductCategories)>0) @endif {{12*($value->product_discounted_price)}} {{$value->scheme_free_quantity}} @if(!empty($value->product_discounted_price)) Warning @endif
Order Images
@if(isset($value['image']) && !empty($value['image']))
@endif @if(($key+1)%4==0)
No Images
@endsection