@extends('inventory.layout') @section('title', 'Routing Form') @section('content') @push('head') @endpush
@foreach($dataorder as $j=>$order)

@foreach($steps as $i=>$step) @if($step->stageid == $order->stageid)
Step {{($i+1) }}. {{ ($step->stepName) }}
@if($step->formid!='') @elseif($step->stepName== 'Do the M/I using the appropriate form (Physical/CAD).') @endif
{{ ($step->formname) }} @elseif($step->stepName== 'Assign and schedule measurement/ inspection to:') {{--@foreach($stepsstatus as $status)--}} {{--json_encode($status)--}} @if(in_array($step->id,$st) && $orders->id==$step->orderId) {{--@if(isset($status->status) && $status->status!='')--}} @else @endif {{--@endforeach--}} @if(isset($step->username) && ($step->username)!='' && isset($step->status) && $step->status!='' && $orders->id==$step->orderId) Submit By {{isset($step->username) ? $step->username:''}} @else Not Submitted @endif
@endif @endforeach @if(in_array($order->stageid,$ststageid) && ($order->dateofcompletion!='') && $order->orders_id==$order->orderno) @endif
@endforeach
@push('script') @endpush @endsection