@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@csrf @method('PUT')
bruce
Id Checklist : {{ $trs_checklist_h->id }}
Tanggal : {{ date('l, d F Y', strtotime($trs_checklist_h->tanggal)) }} Shift : {{ $trs_checklist_h->shift }}
@php $count = 0; @endphp @foreach ($table_kategori as $kategori) @php $result = DB::table('sys_enum') ->where(['idenum' => 'kategori', 'isactive' => '1', 'value' => $kategori->kategori]) ->get(); $notes_value = []; $idListShowOnce = []; @endphp
{{ $result[0]->name }}
@foreach ($table_detail as $detail) @php if ($count_genba != 0) { $count_row = DB::table('trs_genba_d') ->where([ 'id_genba' => $table_genba_h[0]->id, 'id_list' => $detail->id, 'isactive' => '1', ]) ->count(); $data_row = DB::table('trs_genba_d') ->where([ 'id_genba' => $table_genba_h[0]->id, 'id_list' => $detail->id, 'isactive' => '1', ]) ->get(); // dd($count_row); if ($count_table_checklist != 0) { if ($detail->id_list != null) { if (in_array($detail->id_list, $idListShowOnce)) { continue; } else { array_push($idListShowOnce, $detail->id_list); } } } } @endphp @if ($kategori->kategori == $detail->kategori) @if ($detail->item_type == 'text') @php if ($count_table_checklist != 0) { $notes_value[$count] = [$detail->check, $detail]; } else { $notes_value[$count] = ['', $detail]; } $count += 1; @endphp @elseif ($detail->item_type == 'check') @php if ($count_table_checklist != 0) { $check = $detail->check; $bukti_gambar = $detail->bukti_gambar; $notes = $detail->notes; if ($notes == null) { $notes = ''; } if ($check == null) { $check = ''; } if ($check == 0) { $check = ''; } if ($bukti_gambar == null) { $bukti_gambar = 'noimage.png'; } if ($check == 1) { $bukti_gambar = 'noimage.png'; $notes = ''; } } else { $check = ''; $bukti_gambar = 'noimage.png'; $notes = ''; } // dd($check == 1 ? 'hidden' : ''); @endphp
{{--

Benar

--}}
@if ($count_genba == 0 || $count_row == 0)
Input Temuan Baru
@php // dd($bukti_gambar); @endphp image

Maksimal Size : 5120 KB

Format Image : PNG,JPG,JPEG

@error('check_' . $detail->id)

{{ $message }}

@enderror @else
@foreach ($data_row as $row) @php if ( $count_table_checklist != 0 && $detail->id_list != null ) { if ( isset( $bukti_gambar_genba[ $detail->id_list . '_' . $row->id ], ) ) { $bukti_gambar = $bukti_gambar_genba[ $detail->id_list . '_' . $row->id ]; } else { $bukti_gambar = 'noimage.png'; } if ( isset( $notes_checklist_genba[ $detail->id_list . '_' . $row->id . '_notes' ], ) ) { $notes = $notes_checklist_genba[ $detail->id_list . '_' . $row->id . '_notes' ]; } else { $notes = ''; } } @endphp
Input Temuan Baru
{{ $row->notes }}
Before Image Temuan
After Image Genba

Maksimal Size : 5120 KB

Format Image : PNG,JPG,JPEG

@error('check_' . $detail->id . '_' . $row->id)

{{ $message }}

@enderror
@endforeach
@php if ($count_table_checklist != 0) { if (isset($bukti_gambar_genba[$detail->id_list . '_'])) { $bukti_gambar = $bukti_gambar_genba[$detail->id_list . '_']; } else { $bukti_gambar = 'noimage.png'; } if ( isset( $notes_checklist_genba[ $detail->id_list . '_' . '_notes' ], ) ) { $notes = $notes_checklist_genba[ $detail->id_list . '_' . '_notes' ]; } else { $notes = ''; } } @endphp
Input Temuan Baru
@php // dd($bukti_gambar); @endphp image

Maksimal Size : 5120 KB

Format Image : PNG,JPG,JPEG

@error('check_' . $detail->id)

{{ $message }}

@enderror @endif @else
@php if ($count_table_checklist != 0) { $check = $detail->check; $bukti_gambar = $detail->bukti_gambar; $notes = ''; if ($detail->notes == null) { $notes = $detail->notes; } if ($check == null) { $check = ''; } if ($bukti_gambar == null || $bukti_gambar == '') { $bukti_gambar = 'noimage.png'; } if ($check == 1) { $bukti_gambar = 'noimage.png'; $notes = ''; } } else { $check = ''; $bukti_gambar = 'noimage.png'; $notes = ''; } $data_query = DB::table('sys_enum') ->where([ 'isactive' => '1', 'idenum' => $detail->item_type, 'isactive' => '1', ]) ->select('value', 'name') ->get(); if ($count_table_checklist != 0) { $result = $detail->check; } else { $result = ''; } // dd($result,$data_query, $data_query[2]->value == $result); @endphp @error('checkbox_' . $detail->id)

{{ $message }}

@enderror @if ($count_genba == 0 || $count_row == 0)
Input Temuan Baru
@php // dd($bukti_gambar); @endphp image

Maksimal Size : 5120 KB

Format Image : PNG,JPG,JPEG

@else
@foreach ($data_row as $row) @php if ( $count_table_checklist != 0 && $detail->id_list != null ) { if ( isset( $bukti_gambar_genba[ $detail->id_list . '_' . $row->id ], ) ) { $bukti_gambar = $bukti_gambar_genba[ $detail->id_list . '_' . $row->id ]; } else { $bukti_gambar = 'noimage.png'; } if ( isset( $notes_checklist_genba[ $detail->id_list . '_' . $row->id . '_notes' ], ) ) { $notes = $notes_checklist_genba[ $detail->id_list . '_' . $row->id . '_notes' ]; } else { $notes = ''; } } @endphp
Input Temuan Baru
{{ $row->notes }}
Before Image Temuan
After Image Genba

Maksimal Size : 5120 KB

Format Image : PNG,JPG,JPEG

@error('check_' . $detail->id . '_' . $row->id)

{{ $message }}

@enderror
@endforeach
@php if ($count_table_checklist != 0) { if ( isset($bukti_gambar_genba[$detail->id_list . '_']) ) { $bukti_gambar = $bukti_gambar_genba[$detail->id_list . '_']; } else { $bukti_gambar = 'noimage.png'; } if ( isset( $notes_checklist_genba[ $detail->id_list . '_' . '_notes' ], ) ) { $notes = $notes_checklist_genba[ $detail->id_list . '_' . '_notes' ]; } else { $notes = ''; } } @endphp
Input Temuan Baru
@php // dd($bukti_gambar); @endphp image

Maksimal Size : 5120 KB

Format Image : PNG,JPG,JPEG

@endif
@endif @endif @endforeach @foreach ($notes_value as $notes)
@error('check_' . $notes[1]->id)

{{ $message }}

@enderror
@endforeach
@endforeach
{{-- check flag js on dmenu --}} @if ($jsmenu == '1') @if (view()->exists("js.{$dmenu}")) @push('addjs') {{-- file js in folder (resources/views/js) --}} @include('js.' . $dmenu); @endpush @else @push('addjs') @endpush @endif @endif @endsection @push('js') @endpush