@extends('layouts.vendor') @section('styles') @endsection @section('content')
@include('includes.form-success')
@foreach($orders as $orderr) @php $qty = $orderr->sum('qty'); $price = $orderr->sum('price'); @endphp @foreach($orderr as $order) @php $pric = App\Models\Order::where('order_number','=',$order->order_number)->first(); if($pric){ if(App\Models\Order::where('order_number','=',$order->order->order_number)->first()->tax != 0){ $price += ($price / 100) * App\Models\Order::where('order_number','=',$order->order->order_number)->first()->tax; } } if($user->shipping_cost != 0){ $price += round($user->shipping_cost * $order->order->currency_value , 2); } $note = DB::table('vendor_orders') ->where('order_number', $order->order_number) ->first(); @endphp {{-- if($order->order->packing_cost != 0){ $price += $order->packing_cost; } if($order->order->shipping_cost != 0){ $price += round($order->order->shipping_cost / $order->order->currency_value , 9); }--}} @if($order->order->is_api == 1) @else @endif @break @endforeach @endforeach
{{ $langg->lang534 }} {{ $langg->lang535 }} {{ $langg->lang536 }} {{ $langg->lang537 }} {{ $langg->lang538 }}
{{ $order->order->order_number}}{{$qty}} {{$order->order->currency_sign}}{{round($note->price * $order->order->currency_value, 2)}}{{$qty}} {{$order->order->currency_sign}}{{round($price * $order->order->currency_value, 2)}}{{$order->order->method}}
{{ $langg->lang539 }}
{{-- ORDER MODAL --}} {{-- ORDER MODAL ENDS --}} @endsection @section('scripts') {{-- DATA TABLE --}} {{-- DATA TABLE --}} @endsection