@extends('master') @section('content')

Work Order Edit

@csrf

{{$workOrderObject->wo_no}}

{{$workOrderObject->service_category_text}}

{{$workOrderObject->wo_date}}

{{$workOrderObject->date_created}}

{{$workOrderObject->desc}}

{{$workOrderObject->comments}}

Total WO Status @if($workOrderObject->status == 100) Pending @elseif($workOrderObject->status == 0) Disapproved @elseif($workOrderObject->status == 1000) Approved @endif

Work Order Details

@if($workOrderObject->vehicles->isNotEmpty()) @foreach($workOrderObject->vehicles as $detail) @endforeach @else @endif
Vehicle Nature of Work Details Comments Action

{{$detail->vehicle->make}} {{$detail->vehicle->model}} ({{$detail->vehicle->year}}) - {{$detail->vehicle->reg_no}} @if($detail->status == 100) Pending @elseif($detail->status == 0) Disapproved @elseif($detail->status == 1000) Approved @endif

{{$detail->workNature ? $detail->workNature->service_title : 'N/A'}} {{$detail->description}}
No vehicles added
@if($workOrderObject->status != 1000)
@endif
@endsection @push('scripts') @endpush