@extends('commons.layouts.admin') @section('content') @include('commons.layouts.partials._alert')

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

@foreach($cols as $col) @if($col == 'id') @elseif(str_contains($col, '_id')) @else @endif @endforeach @foreach($model as $index => $row) @foreach($row->toArray() as $key => $value) @if($key == 'status') @if($value==true) @else @endif @elseif($key == 'is_obsolete') @elseif($key == 'cover_photo_path') @elseif(str_contains($key, '_id')) @elseif($key != 'id') @endif @endforeach @endforeach
#{{App\Language::trans(ucwords(str_replace('_', ' ', str_replace('_id', '', $col))))}}{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}{{App\Language::trans('Action')}}
{{$index+1}} {{App\Language::trans('Active')}} {{App\Language::trans('Inactive')}} {{$row->display_answer_string($key)}}{{$row->display_relationed($key, 'name')}}{{$value}} {{App\Language::trans('Edit')}} | {{App\Language::trans('View')}} | {{-- {{App\Language::trans('Del')}} --}}

{{App\Language::trans('Product Status')}}
{{App\Language::trans("Only the product with 'Active' status will be available on operation")}}, {{App\Language::trans('in order to make product available.')}}
{{App\Language::trans('Please ensure the following fields are completed :')}}
{{App\Language::trans('Product Code')}} , {{App\Language::trans('Sales Tax')}} , {{App\Language::trans('Purchase Tax')}} , {{App\Language::trans('UOM')}} , {{App\Language::trans('Payment Term')}}

@endsection @section('script') @endsection