@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) @if (!isset($link['role']) || auth()->user()->hasRole($link['role'], 'list')){{ __($link['title']) }} | @endif @endforeach @endif @if (isset($switches)) @foreach ($switches as $inpTitle => $route){{ __($inpTitle) }} | @endforeach @endif @if ($can_edit){{ __('Edit') }} | @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 (in_array($key, ['image', 'path'])){{ $value }} | @endif @endforeach @if (isset($links)) @foreach ($links as $link) @if (!isset($link['role']) || auth()->user()->hasRole($link['role'], 'list'))@endif @endforeach @endif @if (isset($switches)) @foreach ($switches as $inpTitle => $route) | @endforeach @endif @if ($can_edit) | id], request()->query())) }}"> | @endif @if ($can_delete)@endif |