@extends('_version_02.commons.layouts.admin') @section('content') @include('_version_02.commons.layouts.partials._alert') {!! Form::model($model, ['class'=>'form-horizontal']) !!}
@php $priority_counter = 1 ; @endphp @foreach($cols as $col) @if($col != 'store_id') @if($col == 'id') @elseif(str_contains($col, 'leaf_')) @elseif(str_contains($col, '_id')) @else @endif @if($col == 'ip_address') @endif @endif @php $priority_counter ++ ; @endphp @endforeach @php $priority_counter = 1 ; @endphp @foreach($house_room_listing as $index => $row) @php $row = (object) $row; //dd($row); $key = ''; $value=''; // dd($row->house); @endphp {!!Form::hidden('bulk_upload['.$row->id_house_room.'][leaf_room_id]' , $row->id_house_room ,['id'=> 'bulk_upload['.$row->id_house_room.'][leaf_room_id]' , 'value'=> $row->id_house_room ]) !!} @endforeach
#{{App\Language::trans(ucwords(str_replace('leaf_', ' ', str_replace('_id', '', $col))))}}{{App\Language::trans(ucwords(str_replace('_', ' ', str_replace('_id', '', $col))))}}{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}{{App\Language::trans('Unit No.')}}{{App\Language::trans('Meter ID')}}

{{$index+1}}

{{ $row->house_unit }} {{ $row->house_room_name }} {{ ucfirst($row->house_room_type) }} {!! Form::text('bulk_upload['.$row->id_house_room.'][device_name]', (isset($row->device_name) ? $row->device_name : ''), ['id'=>'bulk_upload['.$row->id_house_room.'][device_name]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control','placeholder'=>App\Language::trans(ucwords('Device Name'))]) !!} {!! Form::text('bulk_upload['.$row->id_house_room.'][ip_address]', (isset($row->ip_address) ? $row->ip_address : '') , ['id'=>'bulk_upload['.$row->id_house_room.'][ip_address]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control','placeholder'=>App\Language::trans(ucwords('IP Address'))]) !!} {!! Form::text('bulk_upload['.$row->id_house_room.'][rf_id]', (isset($row->rf_id) ? $row->rf_id : ''), ['id'=>'bulk_upload['.$row->id_house_room.'][rd_id]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control','placeholder'=>App\Language::trans(ucwords('RF ID'))]) !!} {!! Form::text('bulk_upload['.$row->id_house_room.'][modbus_address]' , (isset($row->modbus_address) ? $row->modbus_address : ''), ['id'=>'bulk_upload['.$row->id_house_room.'][modbus_address]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control','placeholder'=>App\Language::trans(ucwords('Modbus Address'))]) !!} {!! Form::text('bulk_upload['.$row->id_house_room.'][meter_id]' , (isset($row->meter_id) ? $row->meter_id : ''), ['id'=>'bulk_upload['.$row->id_house_room.'][meter_id]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control','placeholder'=>App\Language::trans(ucwords('Modbus Address'))]) !!}
@include('_version_02.commons.layouts.partials._form_floaring_footer_standard') {!! Form::close() !!} @endsection @section('script') @endsection