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

Details:

{{ $work_order->status }}

Title: {{ $work_order->title }}

Description: {{ $work_order->description }}


Site Details
@if($work_order->site)

{{ $work_order->site->site_name }}

{{ $work_order->site->address, $work_order->site->city }}

@endif @if($work_order->milestone)
Milestone:
{{ $work_order->milestone->milestone }}
{{ $work_order->milestone->phase }}
@endif @if($work_order->service_request)
Service Request:
{{ $work_order->service_request->code }}

Issue: {{ $work_order->service_request->issue }}

Category: {{ $work_order->service_request->category }}

Notes: {{ $work_order->service_request->note }}

@endif

Type: {{ $work_order->type }}

PO Number: {{ $work_order->po_number }}

Priority: {{ $work_order->priority }}


Assigned to: {{ $work_order->user->name }}

Assigned at: {{ date('d M, Y h:i A', strtotime($work_order->assigned_at)) }}

Task Started at: {{ date('d M, Y h:i A', strtotime($work_order->start_time)) }}

Task Ends at: {{ date('d M, Y h:i A', strtotime($work_order->end_time)) }}


@php $datetime1 = new DateTime($work_order->start_time); $datetime2 = new DateTime($work_order->end_time); $interval = $datetime1->diff($datetime2); @endphp

Total Time Taken: {{ $interval->format('%d days %h hours %i minutes %s seconds') }}

Mark Comments:
{{ Form::open(['url' => 'work_order/comment/store']) }} @csrf {{ Form::hidden('work_order_id', $work_order->id) }}
{{ Form::textarea('comment', '', ['class' => 'form-control', 'required' => '', 'placeholder' => 'Leave Your Comment', 'rows' => 3]) }}
{{ Form::submit('Submit', ['class' => 'btn btn-dark']) }} {{ Form::close() }}
Comments Details:
@stop @section('scripting') @endsection