@extends('_version_02.iot.layouts.admin') @section('content') @include('_version_02.iot.layouts.partials._alert')
@include('_version_02.iot.layouts.partials._index_header')
@foreach($cols as $col) @if($col != 'store_id') @if($col == 'id') @elseif(str_contains($col, '_id')) {{App\Language::trans(ucwords(str_replace('_id', '', $col)))}} @else @endif @endif @endforeach @foreach($model as $index => $row) @foreach($row->toArray() as $key => $value) @php if(!in_array($key,$cols)) { continue; } @endphp @if($key == 'photo') @elseif($key == 'status') @elseif($key != 'user_id' && $key != 'id') @endif @endforeach @endforeach
#{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}{{App\Language::trans('Action')}}
{{$index+1}}{{$row->display_status_string($key)}}{{$value}} {{App\Language::trans('Edit')}}
@endsection @section('script') @endsection