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

Order Detail

Order Info

@hasrole('admin') @endhasrole @foreach ($data->getRelevantProducts() as $items) @hasrole('admin') @endhasrole @endforeach @hasanyrole('admin') @endhasanyrole
ID Product PriceSeller
{{ $items->id }}
{{ $items->product->name }}
@foreach (json_decode($items->variation) as $key => $value)

{{ $value->name }} - ${{ $value->price }} * {{ $value->qty }}

${{ $items->price }} @endforeach
${{ $items->price }} @php $sales_vendor = DB::table('sale_vendors') ->where('order_id', $items->order_id) ->where('product_id', $items->product_id) ->first(); @endphp

Product Price: ${{ $items->price }}

Harvest Commission: - ${{ $sales_vendor->admin_commission }} ({{ $items->product->user->package->marketplace_commission }}%)

Earning: ${{ $sales_vendor->seller_commission }}

@if ($items->product->user->image != null) {{ $items->product->user->name }} @else {{ $items->product->user->name }} @endif {{ $items->product->user->name }}
{{ $items->product->user->email }}
    Shipping Amount: {{ $data->shipping == 0 ? 'Free' : '$' . $data->shipping }}
    Sales Tax: {{ $data->tax }}%
    Total Price: ${{ $data->amount }}

Shipping Address

@if ($data->address_1 != null) @endif @if ($data->notes != null) @endif
Name {{ $data->name }}
Email {{ $data->email }}
Phone {{ $data->phone }}
Address {{ $data->address }}
Address 1 {{ $data->address_1 }}
Country {{ $data->country }}
City {{ $data->city }}
State {{ $data->state }}
Zip {{ $data->zip }}
Notes {{ $data->notes }}

Payment Details

Method {{ ucwords($data->payment_method) }}
Transaction ID {{ $data->transaction_id }}
@endsection @push('css') @endpush @push('js') @endpush