@extends('commons.layouts.admin') @section('content') @include('commons.layouts.partials._alert') @include('opencarts.products.partials.save_by_url') @include('opencarts.products.partials.search_bar')
@if(!$is_index)

{{App\Language::trans('Listing Information')}}

@foreach($cols as $col) @if($col == 'id') @elseif($col == 'product_url' || $col == 'status') @else @endif @endforeach @foreach($model as $index => $row) @foreach($row->toArray() as $key => $value) @if($key == 'date_started' || $key == 'date_started') @elseif($key == 'image') @elseif($key == 'cost' || $key == 'price' || $key == 'selling_price') @elseif($key != 'id' && $key != 'model' && $key != 'product_url' && $key != 'status') @endif @endforeach @endforeach
# {{App\Language::trans('Image')}}{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}{{App\Language::trans('Action')}}

{{$index+1}}

{{App\Language::trans($row->model)}}{{$value}} {!! Form::number($key, null, ['id'=>$key.'_'.$row->id, 'rows'=>'10' , 'cols'=>'80','class'=>'form-control','placeholder'=>App\Language::trans(ucwords(str_replace('_', ' ', $key))." : ".$row->setDouble($value))]) !!} {{$value}} {{App\Language::trans('Edit')}} | {{App\Language::trans('Update')}}
@endif @endsection @section('script') @endsection