@extends('admin.app') @section('content')
Orders Details
@php $useraddress = DB::table('user_address')->where('user_id',$data->user_id)->first(); $products = DB::table('products')->where('id',$data->product_id)->first(); @endphp
TRANSACTION ID   :   {{$data->order_id ?? ''}}
   Date  : {{\Carbon\Carbon::parse($data->created_at)->format('d-M-Y')}}
@foreach($payment as $detail) @php $products = DB::table('products')->where('id',$detail->product_id)->first(); @endphp @endforeach
IMAGE PRODUCT NAME QUANTITY PRICE
no image {{$products->name ?? ''}} {{$detail->quantity}} {{$detail->total}}
Total Amount {{$amount}}

USER INFORMATION

Name : {{$useraddress->shipping_name}}
Email : {{$useraddress->shipping_email}}
Phone no. : {{$useraddress->phone}}
@csrf
ORDER STATUS
@endsection @section('script') @endsection