@php // An array of terms and conditions [1] and an index page [2] //to prevent the administrator from deleting either one $ids = [1,2]; @endphp @foreach($pages as $key=> $row) @if(!in_array($row->id, $ids))
@endif {{ $row->title }} {{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }} @if($row->deleted_at) {{ __('dashboard.restore') }} {{ __('dashboard.delete') }} @else {{ __('dashboard.edit') }} @if(!in_array($row->id, $ids)) {{ __('dashboard.trash') }} @endif @endif @endforeach @if( count( $pages ) && $pages->hasPages() ) {{ $pages->links() }} @endif