@extends('inventory.layout') @section('title', 'Routing Form Group') @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:') @if(in_array($step->id,$st) || $orders->id==$step->orderId) @else @endif @if(isset($step->username) && ($step->username)!='' && isset($step->status) && $step->status!='' && $orders->orderId==$step->orderId) Submit By {{isset($step->username) ? $step->username:''}} on {{ isset($step->created_at) ? \Carbon\Carbon::parse($step->created_at)->format('d M Y') :'' }} @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