@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 ($canEdit){{ __('Edit') }} | @endif @if ($canShow){{ __('Show') }} | @endif @if ($canDelete){{ __('Delete') }} | @endif||
---|---|---|---|---|---|---|---|---|
{{ $loop->iteration }} | @foreach ($list as $key => $col_title) @php $value = $row->$key->{$locale} ?? $row->$key[$locale] ?? $row->$key; @endphp @if ($key != 'created_at' && !in_array($key , $row->getFillable()) && method_exists($row, explode('_', $key)[0])){{ $row->getValOfKey($row, $key) }} | @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 ($canEdit) | id], request()->query())) }}"> | @endif @if ($canShow)id], request()->query())) }}"> | @endif @if ($canDelete)@endif |