@extends('admin.app') @section('title', 'Disposable Maintenance') @section('content')

Ongoing maintenance operations can be finished here, also fleet status is listed

 

© B.Fatih KOZ

@if($activemaint->count())

Ongoing Maintenance

@foreach($activemaint as $active) @csrf @endforeach
Registration / Name Aircraft State Current Operation Started Time Scheduled End Actions  
{{ optional($active->aircraft)->ident }} @if($active->aircraft && $active->aircraft->registration != $active->aircraft->name) {{ "'".$active->aircraft->name."'" }} @endif {{ '%'.$active->curr_state }} {{ $active->act_note }} {{ $active->act_start }} {{ $active->act_end }}
@endif

Fleet Maintenance Status

@foreach($maintenance as $maint) {{-- A Check Remaining --}} {{-- B Check Remaining --}} {{-- C Check Remaining --}} @endforeach
Registration / Name Curr. State A Check (Rem.) B Check (Rem.) C Check (Rem.) Last Check Actions  
{{ optional($maint->aircraft)->ident }} @if($maint->aircraft && $maint->aircraft->registration != $maint->aircraft->name) {{ "'".$maint->aircraft->name."'" }} @endif {{ '%'.$maint->curr_state }} {{ ($maint->rem_ca).' Cycles' }}
@if($maint->rem_ta < 0)@endif {{ DS_ConvertMinutes($maint->rem_ta, '%2dh') }} @if($maint->rem_ta < 0)@endif
{{ ($maint->rem_cb).' Cycles' }}
@if($maint->rem_tb < 0)@endif {{ DS_ConvertMinutes($maint->rem_tb, '%2dh') }} @if($maint->rem_tb < 0)@endif
{{ ($maint->rem_cc).' Cycles' }}
@if($maint->rem_tc < 0)@endif {{ DS_ConvertMinutes($maint->rem_tc, '%2dh') }} @if($maint->rem_tc < 0)@endif
{{ $maint->last_note }}
{{ $maint->last_time }}
@csrf @if ($maint->rem_tc < 10 || $maint->rem_cc < 3) @elseif ($maint->rem_tb < 10 || $maint->rem_cb < 3) @elseif ($maint->rem_ta < 10 || $maint->rem_ca < 3) @elseif ($maint->curr_state < 77) @endif
@if($maintenance->hasPages())
{{ $maintenance->links('pagination.default') }}
@endif @endsection