@extends('_version_01.iot.layouts.admin') @section('content') @include('_version_01.iot.layouts.partials._alert') {!! Form::model($model, ['class'=>'form-horizontal']) !!}
@include('_version_01.iot.layouts.partials._index_header')
@foreach($cols as $col) @php if($col == 'device_profile_id'){ continue; } @endphp @if($col == 'id') @elseif($col == 'dev_eui') @elseif(str_contains($col, '_id')) @else @endif @endforeach @php $counter = 0; @endphp @foreach($model as $index => $row) @foreach($row->toArray() as $key => $value) @php if(!in_array($key,$cols)) { continue; } if($key == 'device_profile_id'){ continue; } @endphp @if($key == 'dev_eui') @php $dp = App\Iot\DeviceProfile::getById($row['device_profile_id']); @endphp @elseif($key == 'photo') @elseif($key == 'status') @elseif($key != 'user_id' && $key != 'id') @endif @endforeach @php $counter ++; @endphp @endforeach
## Device Eui Name{{App\Language::trans(ucwords(str_replace('_id', '', $col)))}}{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}{{App\Language::trans('Action')}}
{{$counter+1}} {{ substr($value,1,strlen($value))}} {{ $dp['name'] }}{{$row->display_status_string($key)}}{{$value}} {{App\Language::trans('Edit')}}
@endsection @section('script') @endsection