@extends('layouts.external') @section('title') @endsection @section('header-style') @endsection @section('content')
@if(isset($product_orders)) {{-- @json($selling_requests)--}}

Confirmed Order


@if(Session::has('message')) @endif
{{----}} {{-- --}} {{-- --}} @if(isset($product_orders) && count($product_orders) > 0) @foreach($product_orders as $product_order) {{----}} {{-- --}} {{-- --}} @endforeach @else @endif
SL Order IdCustomer NameOrder Date Payment DateRequested QtyProduct Payment Amount StatusAction
{{$loop->iteration}} {{$product_order->product_order_id}} {{$product_order->customer->customer_name}} {{ date( 'Y-m-d' , strtotime($product_order->order_date) )}} {{ date( 'Y-m-d' , strtotime($product_order->payment_completed_date) )}} {{count($product_order->product_order_detail)}} --}} {{-- @if(isset($product_order->product_order_detail) && count($product_order->product_order_detail) > 0) {{count($product_order->product_order_detail)}} Format Requested @endif --}}{{-- @if(isset($product_order->product_order_details) && count($product_order->product_order_details))
{{ $p_name = "" }} @foreach($product_order->product_order_details as $details) {{$p_name = $p_name . $details->product->name}} @if($loop->iteration !=count($product_order->product_order_details)) {{$p_name = $p_name . " , "}} @endif @endforeach
{{$p_name}} @endif {{-- @json($product_order->product_order_details[0]->product->name)--}}
{{ $total = 0 }}
@foreach($product_order->product_order_detail as $device)
{{$total += $device->price}}
@endforeach {{$total}} BDT
Payment success
No confirmed order
@endif
@endsection @section('footer-script') @endsection