@inject('PublicFunction', 'App\Http\Controllers\PublicFunction') @extends('layouts.admin_layout') @section('title') Order details - Igloo @endsection @section('stylesheet') @endsection @section('content')

Order Details

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if(session()->has('status')) {!! session()->get('status') !!} @endif

Customer Details

@if(count($customer_details) > 0)
Name: {{ $customer_details[0]->name }}
Email: {{ $customer_details[0]->email }}
Phone: {{ $customer_details[0]->phone }}
@endif

Addresses

Shipping Address:
{{ $order_details[0]->name}}
{{ $order_details[0]->phone}}
{{ $order_details[0]->address}}
{{ $order_details[0]->appartment}}

Billing Address:
{{ $billing_address[0]->name}}
{{ $billing_address[0]->phone}}
{{ $billing_address[0]->address}}
{{ $billing_address[0]->appartment}}

Order Summary

Order No. #{{ $order_details[0]->id }}
Order Date: {{ date('d-m-Y', strtotime($order_details[0]->created_at)) }}
Total Amount: Tk {{ $order_details[0]->amount }}
Status: {{ $order_details[0]->status }}
@if($order_details[0]->discount != null)
Coupon Type: {{ $order_details[0]->discount_type }}
Coupon Discount: {{ $order_details[0]->discount }}
@if($order_details[0]->coupon_code != null)
Coupon Code: {{ $order_details[0]->coupon_code }}
@endif @endif

Notice: Undefined variable: order_details in C:\xampp\htdocs\iglooapp\resources\views\admin\order\order_details.blade.php on line 142

Notice: Trying to access array offset on value of type null in C:\xampp\htdocs\iglooapp\resources\views\admin\order\order_details.blade.php on line 142

Notice: Trying to get property 'product_details' of non-object in C:\xampp\htdocs\iglooapp\resources\views\admin\order\order_details.blade.php on line 142
@foreach($product_details as $row)
Notice: Undefined variable: row in C:\xampp\htdocs\iglooapp\resources\views\admin\order\order_details.blade.php on line 160

Notice: Trying to get property 'qty' of non-object in C:\xampp\htdocs\iglooapp\resources\views\admin\order\order_details.blade.php on line 160

Notice: Undefined variable: row in C:\xampp\htdocs\iglooapp\resources\views\admin\order\order_details.blade.php on line 160

Notice: Trying to get property 'price' of non-object in C:\xampp\htdocs\iglooapp\resources\views\admin\order\order_details.blade.php on line 160
@endforeach
# Product Name Quantity Price Subtotal
{{ $i++ }} {{ $row->name }} ( @foreach($row->options as $key => $value) @if($key != 'image') {{ $value }} @endif @endforeach ) {{ $row->qty }} {{ $row->price }} Tk {{ $row->qty * $row->price }}
Subtotal Tk {{ $subtotal }}
Discount ({{ $order_details[0]->discount }}%) Tk {{ ($order_details[0]->discount/100) * $subtotal }}
Delivery charge Tk {{ $deliveryCharge }}
Total Tk {{ $subtotal + $deliveryCharge - (($order_details[0]->discount/100) * $subtotal) }}

Payment Details

@foreach($payment_details as $row) @endforeach
# Payment Date Method Amount Status
{{ $i++ }} {{ $row->created_at }} {{ $row->type }} {{ $row->amount }} {{ $row->status }}

Order Notes

@if(is_array($order_notes)) @foreach($order_notes as $note)
{{ $note }}
@endforeach @else
{{ $order_notes }}
@endif
@if($PublicFunction::checkPermission($userPermission, ["update_order"]))
@csrf
@endif
@if($PublicFunction::checkPermission($userPermission, ["order_payment"])) {{--mark as paid modal--}} @endif
@endsection @section('script') @endsection