@extends('layouts.default') @section('title') @endsection @section('header-style') @endsection @section('content')
{{--@json($product_orders) --}}
@if(Session::has('message')) @endif

Purchase request Pricing

{{--@php $getKey = json_encode(Auth::user()->roles->pluck('role_key')); $getKey = json_decode($getKey, true); @endphp--}} {{--{{dd($product_orders)}}--}} @if(isset($product_orders) && count($product_orders)> 0) @foreach($product_orders as $product_order) {{--@if(in_array($product_order->user_role, $getKey))--}} {{--@endif--}} @endforeach @else @endif
SL Order Id Order Date Customer Name Items Order Detail Action
{{$loop->iteration}} {{$product_order->product_order_id}} {{ date( 'Y-m-d' , strtotime($product_order->order_date) )}} {{$product_order->customer->customer_name}} {{count($product_order->product_order_detail)}} @foreach($product_order->product_order_detail as $product_order_detail) @endforeach
Product Name Requested Format From Date To Date Qty
@if(isset($product_order_detail->product)) {{$product_order_detail->product->name}} @endif @if(isset($product_order_detail->file_format)) {{$product_order_detail->file_format->file_format_name}} @endif {{ date( 'Y-m-d' , strtotime($product_order_detail->from_date) )}} {{ date( 'Y-m-d' , strtotime($product_order_detail->to_date) )}} {{$product_order_detail->qty}}
No purchase request
@include('approval.workflowmodal_2')
@endsection @section('footer-script') @endsection