@extends('layouts.admin-layout') @section('title','Customer') @section('content')
| 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 |
| Name | {{ $order->customer_name }} |
| Phone | {{ $order->customer_phone_number }} |
| Address |
{{ $order->address }} {{ $order->district }} |
| # | 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}} | @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)Edit | @endif @elseEdit | @endif
| # | 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}} |