@foreach($orders as $key=>$order)
@if(isset($order->book_by)){{$order->book_by->firstname.' '.$order->book_by->lastname}} @endif
- Order #: {{$order->id}}
- Booked on: {{date('d-m-Y', strtotime($order->created_at))}}
- Price Changes: @if($order->is_discounted==true) Yes @else No @endif
- Payment: {{round($order->payment,2)}}
- @if(isset($order->shop)){{$order->shop->name.' ('.$order->shop->customer_type.')'}} @endif
- Discounted: @if($order->discount!=0) Yes @else No @endif
Order #{{$order->id}}
- Booked By: @if(isset($order->book_by)){{$order->book_by->firstname .' '.$order->book_by->lastname}} @endif
- Booked By Phone #:@if(isset($order->book_by->phone_1)) {{$order->book_by->phone_1}} @endif
- Customer: @if(isset($order->shop)){{$order->shop->name.' ('.$order->shop->customer_type.')'}} @endif
- Booked on: {{date('d-m-Y', strtotime($order->created_at))}}
- Due date: {{date('d-m-Y', strtotime($order->delivery_on))}}
Products Included
- Order Price: {{round($order->price,2)}}
- Discount: {{$order->discount}} %
- Payment: {{round($order->payment,2)}}
# |
Product Name |
Quantity |
Actual Price (Dozen) |
Discount Price (Dozen) |
Free Scheme Quantity |
@foreach($order->products as $key=>$value)
{{$key+1}} |
{{$value->products->name}} |
{{$value->quantity}} |
{{round(12*($value->product_actual_price),2)}}
@if(count($value->OrderProductCategories)>0)
# |
Name |
Quantity |
@foreach($value->OrderProductCategories as $key2=>$category)
{{$key2+1}} |
@if(isset($category->product->name)){{ $category->product->name}} @endif |
{{ $category['quantity']}} |
@endforeach
@endif
|
{{12*($value->product_discounted_price)}}
| {{$value->scheme_free_quantity}}
@if(!empty($value->product_discounted_price)) Warning @endif
|
@endforeach
@endforeach
{{ $orders->links() }}