@extends('Common::admin.layout.page') @section('page')
@foreach($list as $key =>$col_title) @endforeach @if(isset($links)) @foreach($links as $link) @endforeach @endif @if(isset($switches)) @foreach($switches as $stitle => $route) @endforeach @endif @if($can_edit) @endif @if($can_show) @endif @if($can_delete) @endif @foreach($rows as $row) @foreach($list as $key => $col_title) @php $value = $key != 'created_at' && is_object($row->$key) ? $row->$key->{app()->getLocale()} : $row->$key; @endphp @if(method_exists($row , explode('_' , $key)[0])) @elseif(in_array($key , ['image' , 'path'])) @else @endif @endforeach @if(isset($links)) @foreach($links as $link) @endforeach @endif @if(isset($switches)) @foreach($switches as $stitle => $route) @endforeach @endif @if($can_edit) @endif @if($can_show) @endif @if($can_delete) @endif @endforeach
#{{ app()->getLocale() == 'ar' ? $col_title : ucfirst($key) }}{{ __($link['title']) }}{{ __($stitle) }}{{ __("Edit") }}{{ __("Show") }}{{ __("Delete") }}
{{ $loop->iteration }}{{ $row->{explode('_' , $key)[0]}->{explode('_' , $key)[1]}->{app()->getLocale()} ?? $row->{explode('_' , $key)[0]}->{explode('_' , $key)[1]} }}{{ $value }} id] , request()->query())) }}"> id] , request()->query())) }}">
id) }}" method="post" class="action_form remove"> @csrf {{ method_field('delete') }}
@if($paginate)
    {{ $rows->links() }}
@endif
@stop