@php
$inputDataJaminan = [
[
'label' => 'Size',
'value' => ['Small', 'Large'],
'name' => 'size',
'index' => 0,
],
[
'label' => 'Kondisi',
'value' => ['Laik Terbang', 'Sekrap', 'Rusak', 'Progress'],
'name' => 'kondisi',
'index' => 1,
],
];
@endphp
@if (count($inputDataJaminan) > 0)
@foreach ($inputDataJaminan as $item)
@if (isset($item['value']))
@foreach ($item['value'] as $value)
@endforeach
@endif
@endforeach
@endif
@php
$inputDataJaminan = [
[
'label' => 'Nama Pesawat',
'name' => 'nama_pesawat',
'value' => old('nama_pesawat', $forminspeksi['nama_pesawat'] ?? ''),
'index' => 0,
],
[
'label' => 'Model',
'name' => 'model',
'value' => old('model', $forminspeksi['model'] ?? ''),
'index' => 1,
],
[
'label' => 'Nomor Registrasi',
'name' => 'nomor_registrasi',
'value' => old('nomor_registrasi', $forminspeksi['nomor_registrasi'] ?? ''),
'index' => 2,
],
[
'label' => 'Tahun Pembuatan',
'name' => 'tahun_pembuatan',
'value' => old('tahun_pembuatan', $forminspeksi['tahun_pembuatan'] ?? ''),
'index' => 3,
],
[
'label' => 'Certificate of Airworthines (C of A)',
'name' => 'certificate_of_airworthines',
'value' => old(
'certificate_of_airworthines',
$forminspeksi['certificate_of_airworthines'] ?? '',
),
'index' => 4,
],
[
'label' => 'Certificate of Registration (C of A)',
'name' => 'certificate_of_registration',
'value' => old(
'certificate_of_registration',
$forminspeksi['certificate_of_registration'] ?? '',
),
'index' => 5,
],
[
'label' => 'Total Service Hours (TSN - Total Time Since New)',
'name' => 'total_service_hours',
'value' => old('total_service_hours', $forminspeksi['total_service_hours'] ?? ''),
'index' => 6,
],
[
'label' => 'Total Service Cycles (CSN - Cycle Since New)',
'name' => 'total_service_cycles',
'value' => old('total_service_cycles', $forminspeksi['total_service_cycles'] ?? ''),
'index' => 7,
],
];
@endphp
@if (count($inputDataJaminan) > 0)
@foreach ($inputDataJaminan as $item)
@endforeach
@endif