@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@csrf
{{--

View {{ $title_menu }}

--}}
DATA PARAMETER SET
{{-- Section 1: Parameter Header --}}
1. Parameter Header
@php $headerCount = 0; @endphp @foreach ($parameter as $p) @if($p->is_header == 1) @php $headerCount++; @endphp @endif @endforeach @if($headerCount == 0) @endif
No Urutan Nama Parameter Tipe Input Source Data
{{ $headerCount }} {{ $p->urut }} {{ $p->nama_parameter }} @php $tipe = collect($tipe_input)->firstWhere('value', $p->tipe_input); echo $tipe ? $tipe->name : $p->tipe_input; @endphp {{ $p->source_data }}
Tidak ada parameter header
{{-- Section 2: Parameter Sebenarnya --}}
2. Parameter Sebenarnya (Measurement)
@php $measureCount = 0; @endphp @foreach ($parameter as $p) @if($p->is_header == 0) @php $measureCount++; @endphp @endif @endforeach @if($measureCount == 0) @endif
No Urutan Nama Parameter Unit Jenis Parameter Tipe Input Sub Header Source Data
{{ $measureCount }} {{ $p->urut }} {{ $p->nama_parameter }} {{ $p->unit }} @php $jenis = collect($jenis_param)->firstWhere('value', $p->jenis_parameter); echo $jenis ? $jenis->name : $p->jenis_parameter; @endphp @php $tipe = collect($tipe_input)->firstWhere('value', $p->tipe_input); echo $tipe ? $tipe->name : $p->tipe_input; @endphp {{ $p->sub_header }} {{ $p->source_data }}
Tidak ada parameter measurement
{{-- 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