@extends('master') @section('content')
@if(Session::has('error'))
{{ Session::get('error') }}
@endif @if(Session::has('message'))
{{ Session::get('message') }}
@endif

Work Order List

@if(auth()->user()->role_id == 2) @endif
@foreach($woList as $wo) @endforeach
ID Company Service Category No. of Vehicles Date Status Action
{{ $wo->wo_id }} {{ $wo->company->name }} {{ $wo->service_category_text }} {{ $wo->vehicles_count }} {{ $wo->wo_dt }} @if($wo->status == 1000) Approved @elseif($wo->status == 0) Disapproved @elseif($wo->status == 100) Pending @endif @if(Auth::user()->role->name == 'doctor') Edit @elseif(Auth::user()->role->name == 'admin' || Auth::user()->role->name == 'manager' || Auth::user()->role->name == 'mechano_ccp') View @endif
@endsection @push('scripts') @endpush