@extends('admin::curd.preview') @section('heading') @stop @section('title') @stop @section('breadcrumb') @stop @section('entry') @stop @section('tools') @stop @section('content')
{{-- @if ($work_order->asset_id) --}} {{--

{!!ucfirst($work_order->asset->name)!!} [{!!$work_order->asset->ref!!} , {!!$work_order->asset->bar_code!!}]

--}} {{-- @else --}}

Work Order No : [{{ @$work_order->ref }}], Request Type : [{{ ucfirst($work_order->request_type) }}]

{{-- @endif --}}
@if (@$work_order->workorder_type == 'Internal') @else @endif @if (@$work_order->workorder_type == 'External' && user('admin.web')->currentCompany->show_technicians_in_external_work_order == '1' && !empty(@$work_order->technician_names)) @endif @if ($work_order->servicerequest) @if ($work_order->facility_inspection_id) @else @endif @endif @if (@$work_order->asset_id) @if (!empty(@$work_order->subwork->name)) @endif @if (!empty(@$work_order->jobtype->name)) @endif @else @endif {{-- --}} @if ($work_order->contract_id) @endif @if (@$work_order->hold_time) @endif @if ($work_order->signature) @endif

Created At

{{ $work_order->created_at }}

Work Due

{{ $work_order->work_due }}

Work Order Type

{{ @$work_order->workorder_type }}

Technicians

{{ @$work_order->technician_names }}

Supplier

{{ @$work_order->supplier->name }}

Technicians

{{ @$work_order->technician_names }}

Service Request ID

{{ @$work_order->servicerequest->id }}

Facility Inspection ID

{{ @$work_order->facility_inspection_id }}

Asset ID

{{ @$work_order->asset->rfc }}

Asset Name

{{ @$work_order->asset->name }}

Category

{{ @$work_order->asset->category->name }}

Subcategory

{{ @$work_order->asset->subcategory->name }}

Department

{{ @$work_order->asset->department->name }}

Work Department

{{ @$work_order->asset->work_department->name }}

Sub Work

{{ @$work_order->subwork->name }}

Job Type

{{ @$work_order->jobtype->name }}

Manufacturer

{{ @$work_order->asset->manufacturer->name }}

Serial no

{{ @$work_order->asset->serial_no }}

Location

{{ @$work_order->asset->location->name }}

Sublocation

{{ @$work_order->asset->sublocation->name }}

Company

{{ @$work_order->company->name }}

Division

{{ @$work_order->division->name }}

Department

{{ @$work_order->department->name }}

Work Department

{{ @$work_order->work_department->name }}

Sublocation

{{ @$work_order->sublocation->name }}

Calibration From date

{{ format_date(@$work_order->asset->calibration_from_date) }}

Calibration Due date

{{ format_date(@$work_order->asset->calibration_end_date) }}

Contract No.

{{ @$work_order->contract->ref }}

Contract Status

{{ @$work_order->contract->status }}

Contract Start Date

{{ @$work_order->contract->start_date }}

Contract End Date

{{ @$work_order->contract->end_date }}

Estimated Time

{{ @$work_order->estimated_time ? @$work_order->estimated_time . 'hours' : '' }}

Consumed Time

{{ secondsToHoursMinutes(@$work_order->consumed_time_seconds) }}

HR Cost

{{ @$work_order->totalhrcost }} Rs

Material Cost

{{ @$work_order->totalmaterialcost }} Rs

Turn Around Time

{{ secondsToDayHourMinutes(@$work_order->turn_around_time) }}

Hold Time

{{ secondsToHoursMinutes(@$work_order->hold_time) }}

Status

{{ @$work_order->work_status }}

Status date

{{ @$work_order->status_date }}

Acknowledged By

{!! $work_order->acknowledged_by !!}

Date

{!! $work_order->acknowledged_date !!}

Signature

{!! $work_order->fileShow('signature') !!}

@if ($work_order->asset) @if (@$work_order->asset->bar_code) @endif @if (count(@$work_order->servicerequest->image)) @elseif(count(@$work_order->asset->images)) @endif @endif
{!! DNS1D::getBarcodeSVG(@$work_order->asset->bar_code, 'C39', 1, 33) !!}
Image from Service Request
Image from Asset Master
@if (!empty(@$work_status)) @forelse(@$work_status as $key => $ws) @empty @endif @endif

Workorder Updates

Name Type Date Start Time End Time Status Cost Description
@php if ($ws->type == 'Internal') { $name = @$ws->technician->name; } else { if (user('admin.web')->currentCompany->show_technicians_in_external_work_order == '1' && !empty(@$ws->technician->name)) { $name = @$ws->technician->name; } else { $name = @$ws->s_name->name; } } @endphp {{ $name }} {{ @$ws->type }} {{ format_date(@$ws->date) }} {{ @$ws->start_time }} {{ @$ws->end_time }} {{ @$ws->status }} {{ @$ws->hrcost }} {{ @$ws->description }}

No Workorder Details

@if (!empty(@$work_material)) @forelse(@$work_material as $key => $wm) @php $materialDisplay = @$wm->material_type == 0 || @$wm->material_type == '' ? @$wm->materials->name : @$wm->materialtype->name; @endphp @if (!config('package.material.api_material')) @else @endif @empty @endif @endif

Material Details

Material Date Price Quantity Total Amount Description
{{ $materialDisplay }}{{ @$wm->material }}{{ format_date(@$wm->date) }} {{ @$wm->price }} {{ @$wm->quantity }} {{ @$wm->total_amount }} {{ @$wm->description }}
No Material Details
@stop