@extends('Common::admin.layout.page') @section('page')
| # | @foreach($list as $key =>$col_title){{ app()->getLocale() == 'ar' ? $col_title : ucfirst($key) }} | @endforeach @if(isset($links)) @foreach($links as $link){{ __($link['title']) }} | @endforeach @endif @if(isset($switches)) @foreach($switches as $stitle => $route){{ __($stitle) }} | @endforeach @endif @if($can_edit){{ __("Edit") }} | @endif @if($can_show){{ __("Show") }} | @endif @if($can_delete){{ __("Delete") }} | @endif||
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | @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])){{ $row->{explode('_' , $key)[0]}->{explode('_' , $key)[1]}->{app()->getLocale()} ?? $row->{explode('_' , $key)[0]}->{explode('_' , $key)[1]} }} | @elseif(in_array($key , ['image' , 'path'])){{ $value }} | @endif @endforeach @if(isset($links)) @foreach($links as $link)@endforeach @endif @if(isset($switches)) @foreach($switches as $stitle => $route) | @endforeach @endif @if($can_edit) | id] , request()->query())) }}"> | @endif @if($can_show)id] , request()->query())) }}"> | @endif @if($can_delete)@endif |