@extends('admin.layouts.app') @section('title', 'Order') @section('content')

ORDER

ORDER : {{$data->order_id}}
Date : {{$data->created_at}}
Customer Details

Name: {{$data->full_name}}

Email: {{$data->email}}

Contact No: {{$data->mobile}}

Order Status:

Payment Type: {{$data->payment_type == 'Not cash' || $data->payment_type == 'KNET' ? 'KNET' : 'COD'}}

@if(!empty($data->del_start_time))

Time Slot: {{$data->del_start_time}} -- {{$data->del_end_time}}

@endif

Transaction ID: {{$data->transaction_id}}

Total Amount: {{$data->grand_total}} KD


@php $shipping = 0; $totalAmount = 0; $paidAmout = 0; @endphp @foreach ($data->orderItems as $k=> $iteam) @php $i = 1; @endphp @php $totalAmount +=$iteam->item_price * $iteam->quantity; $i++; @endphp @endforeach
S.No. Name Price Quantity Total
{{$k+1}} {{$iteam->product->title ?? ''}}({{$iteam->product->arabic_title ?? ''}}) {{$iteam->item_price}} KD {{$iteam->quantity}} {{$iteam->item_price * $iteam->quantity}}
Total 0 KD

Address
Governorate: {{$data->governorate}}
Area: {{$data->area}}
Street: {{$data->address}}
Near Location: {{$data->near_location}}
House No/Building No: {{$data->building_no??$data->appartment_no}}
Address Type: {{$data->userAddress ?$data->userAddress->address_type:'home'}}
Final Amount
Total Amount: {{number_format($totalAmount, 0)}} KD
Discount: {{$data->coupon_discount}}
Payable Amout: {{$data->grand_total}} KD
@include('admin.orders.invoice')
@endsection