@foreach($codes as $key=> $row) @if ($row->role != 'super_admin')
@endif {{ systemcategory($row->category_id) }} {{ categoryfood($row->category_id) }} {{ $row->name }} {{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }} @if($row->role == 'super_admin') {{ __('dashboard.edit') }} @else @if($row->deleted_at) {{ __('dashboard.restore') }} {{ __('dashboard.delete') }} @else {{ __('dashboard.edit') }} {{ __('dashboard.trash') }} @endif @endif @endforeach @if( count( $codes ) && $codes->hasPages() ) {{ $codes->links() }} @endif