@extends('layouts.template') @section('content')

Workshop Breakdown

@if(Session::has('flash_message'))

{{ Session::get('flash_message') }}

@endif

Workshop Breakdown

@foreach($workshop_breakdown as $wb) @if(is_numeric($wb->current_km)) @else @endif @if(is_numeric($wb->service_km)) @else @endif @endforeach
Date Job Number Trip Nr Reg Nr KM Service at Km Location Mechanic Truck Truck Status Trailer Trailer Status Details Actions
{{ Helper::convert_to_ddmmyy($wb->date) }} {{ $wb->job_number }} {{ $wb->trip_number}} {{ $wb->registration_number}}{{ str_replace('.00', '',number_format($wb->current_km, 2, '.', ',')) }}{{ str_replace('.00', '',$wb->current_km) }}{{ str_replace('.00', '',number_format($wb->service_km, 2, '.', ',')) }}{{ str_replace('.00', '',$wb->service_km) }}{{ $wb->location}} {{ $wb->mechanic}} {{ isset($wb->truckmaintainance) ? $wb->truckmaintainance['truck'] : ""}} @if(isset($wb->truckmaintainance)) @if($wb->truckmaintainance['status'] == 'job_opened')

Job Opened

@endif @if($wb->truckmaintainance['status'] == 'maintaining')

Maintaining

@endif @if($wb->truckmaintainance['status'] == 'awaiting_part')

Awaiting Part

@endif @if($wb->truckmaintainance['status'] == 'job_completed')

Job Completed

@endif @endif
{{ isset($wb->trailermaintainance)?$wb->trailermaintainance['trailer']:"" }} @if(isset($wb->truckmaintainance)) @if($wb->trailermaintainance['status'] == 'job_opened')

Job Opened

@endif @if($wb->trailermaintainance['status'] == 'maintaining')

Maintaining

@endif @if($wb->trailermaintainance['status'] == 'awaiting_part')

Awaiting Part

@endif @if($wb->trailermaintainance['status'] == 'job_completed')

Job Completed

@endif @endif
Details
{!!$workshop_breakdown->render()!!}
@endsection