@extends('admin.layout.master') @section('title', 'Schedule Maintenance Report') @section('custom_style') @endsection @section('content')

Schedule Maintenance Details

@include('inventory.global.report_print_excel_button')
@php $maintenanceStatus = $info->getLog->sortByDesc('id')->first()->status ?? null; @endphp @if (isset($info->getLog->sortByDesc('id')->first()->date))
{{ $maintenanceStatus == 1 ? getDMY($info->getLog->sortByDesc('id')->first()->date) : '' }}
@endif @php $index = 1; $runningLog = $info->getLog->where('status', 2)->values(); $closedLog = $info->getLog->where('status', 3)->values(); @endphp @foreach ($runningLog as $key => $item) @endforeach
# Starting Date Ending Date Indents
{{ $index++ }} {{ getDMY($item->date) }}
{{ $item->note }}
@if (isset($closedLog[$key])) {{ getDMY($closedLog[$key]->date) }}
{{ $closedLog[$key]->note }} @endif
@foreach ($item->getIndent as $indent) {{ $indent->getIndentInfo->indent_no ?? '' }} @endforeach
@endsection @section('script') @endsection