@extends('layouts.admin-layout') @section('title','Customer') @section('content')

Order Details

  • Order Info
    @if(($order->order_status!=3)) @endif
    ID {{$order->order_number}}
    Date & Time {{$order->created_at}}
    Order By {{orderBy($order->order_by)}}
    Order Taker @isset($order->orderItemBy) {{ $order->orderItemBy->name }} @endisset
    Area @isset($order->customer) {{ area($order->customer->area_id) }} @endisset
    Status {{status($order->order_status)}}
    Actions
  • Customer Details
    Name {{ $order->customer_name }}
    Phone {{ $order->customer_phone_number }}
    Address {{ $order->address }}
    {{ $order->district }}
  • Order Items
  • @php $i = 1; $total_sum = 0; @endphp @foreach($order->orderItemDetails as $item) @php $total = 0; @endphp @php $edit_flag = 0; @endphp @if (session()->has('orders')) @foreach((array) session('orders') as $id => $details) @if($details['id']==$item->id) @php $edit_flag = 1; @endphp @endif @endforeach @if($edit_flag==0) @endif @else @endif @php $total_sum = $total_sum + $total; @endphp @endforeach
    # Product Rate Qty Total Actions
    {{ $i++ }}
    {{ $item->product_name }}
    @isset($order->orderItemAddOnDetails) @foreach($order->orderItemAddOnDetails as $addOn) @if($addOn->order_item_details_id == $item->id) {{ addOnCategoryType($addOn->add_on_type) }} : @if($addOn->add_on_type=="1") {{ $addOn->add_on_name }} [{{ $addOn->add_on_color_code }}] @endif @if($addOn->add_on_type=="2") {{ $addOn->add_on_name }} [ ₹ {{ $addOn->add_on_price }}] @endif
    @endif @endforeach @endisset
    ₹{{ $item->product_price }} @php $flag=0; @endphp @if (session()->has('orders')) @foreach((array) session('orders') as $id => $details) @if($details['id']==$item->id) @php $flag=1; $quantity = $details['quantity']; @endphp @endif @endforeach @endif @if($flag==1) {{ $quantity }} @php $total = $total + ($quantity * $item->product_price); @endphp @else {{ $item->product_quantity }} @php $total = $total + ($item->product_quantity * $item->product_price); @endphp @endif ₹{{$total}} Edit Edit
  • Total: ₹{{$total_sum }}
@if (session()->has('orders'))
  • Non Stock Items
  • @php $i = 1; @endphp @foreach((array) session('orders') as $id => $details) @php $item = App\OrderItemDetail::find($details['id']); @endphp @endforeach
    # Product Rate Qty Total
    {{ $i++ }}
    {{ $item->product_name }}
    @php $add_ons = App\OrderItemAddOnDetail::where('order_id',$item->order_id)->get(); @endphp @if($add_ons) @foreach ($add_ons as $add_on) @if($add_on->order_item_details_id == $item->id) {{ addOnCategoryType($add_on->add_on_type) }} : @if($add_on->add_on_type=="1") {{ $add_on->add_on_name }} [{{ $add_on->add_on_color_code }}] @endif @if($add_on->add_on_type=="2") {{ $add_on->add_on_name }} [ ₹ {{ $add_on->add_on_price }}] @endif @endif @endforeach @endif
    ₹{{ $item->product_price }} {{ $item->product_quantity - $details['quantity'] }} ₹{{($item->product_quantity - $details['quantity']) * $item->product_price}}
@endif
@endsection @push('js') @endpush