@extends('layouts.admin-simple') @section('title', 'Maintenance Record') @section('breadcrumb') @endsection @section('page-title')

{{ $record->maintenance_number }}

{{ $record->fixedAsset ? $record->fixedAsset->asset_name : '-' }} - @php $sColors = ['scheduled'=>'secondary','in_progress'=>'warning','completed'=>'success','cancelled'=>'danger']; @endphp {{ ucfirst(str_replace('_',' ',$record->status)) }}

@if($record->status == 'scheduled') @can('warehouse.fixed-asset-maintenance.process')
@csrf
@endcan @can('warehouse.fixed-asset-maintenance.edit') edit Edit @endcan @elseif($record->status == 'in_progress') @can('warehouse.fixed-asset-maintenance.process') @endcan @endif arrow_back Back
@endsection @section('content') @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Maintenance Details
Maintenance #{{ $record->maintenance_number }}
Type{{ ucfirst($record->maintenance_type) }}
Priority @php $pColors = ['low'=>'secondary','medium'=>'info','high'=>'warning','critical'=>'danger']; @endphp {{ ucfirst($record->priority ?? 'medium') }}
Scheduled Date{{ $record->scheduled_date ? $record->scheduled_date->format('M d, Y') : '-' }}
Start Date{{ $record->start_date ? $record->start_date->format('M d, Y') : '-' }}
Completion Date{{ $record->completion_date ? $record->completion_date->format('M d, Y') : '-' }}
Vendor{{ $record->vendor ?? '-' }}
Asset & Costs
Asset @if($record->fixedAsset) {{ $record->fixedAsset->asset_code }} - {{ $record->fixedAsset->asset_name }} @else - @endif
Condition Before {{ ucfirst(str_replace('_',' ',$record->condition_before ?? '-')) }}
Condition After @if($record->condition_after) {{ ucfirst(str_replace('_',' ',$record->condition_after)) }} @else - @endif
Labor CostAED {{ number_format($record->labor_cost ?? 0, 2) }}
Parts CostAED {{ number_format($record->parts_cost ?? 0, 2) }}
Total CostAED {{ number_format($record->total_cost ?? 0, 2) }}
@if($record->description)
Description

{{ $record->description }}

@endif @if($record->findings || $record->actions_taken)
Findings & Actions
@if($record->findings)

Findings:

{{ $record->findings }}

@endif @if($record->actions_taken)

Actions Taken:

{{ $record->actions_taken }}

@endif
@endif @if($record->notes)
Notes

{{ $record->notes }}

@endif @if($record->status == 'in_progress') @endif @endsection @push('scripts') @endpush