@extends('layouts.app') @section('content') @php $input_type = [ 0 => "Text Box", 1 => "Radio", 2 => "Info Box", 3 => "One Line Text", ]; $input_type_color = [ 0 => "blue", 1 => "red", 2 => "green", 3 => "orange", ]; $documented = [ 1 => "page 1", 2 => "page 2", 0 => "None", ]; @endphp

{{$equipment_name}} CheckList: (MAX Width: {{ $max_chklist_width }})


    @php foreach ($divs as $div){ $div_id = $div['id']; $div_name = $div['name']; echo'
  • '.$div_name.'
  • '; } @endphp
@foreach ($divs as $div) @php $div_id = $div->id; $div_name = $div->name; $count =0; @endphp
@foreach ($used_fields as $value) @if($value->chklistdiv_id != $div->id) @continue @endif @php $count +=1; $input_type_name = $input_type[$value['type']]; //0=>text, 1=>radio, 2=>info, 3 => one line text @endphp @endforeach
ID Field Name Field Value Documented Field Type Size Action
{{ $count }} {{ $value["description"] }} {{ $value["value"] }} {{ $documented[$value["documented"]] }} {{ $input_type_name }} {{ $value["th_span"] }} x {{ $value["td_span"] }} @if($div_id != 1) Edit @endif
@endforeach
@endsection