@foreach($logs as $key=> $row)
{{ $row->user->name }} {{ $row->type }} {{ $row->action }} @if($row->type == 'الاخبار') @if($row->action == 'اضافة' || $row->action == 'تعديل') {{productnamecheck($row->product_id)}} @endif @elseif($row->type == 'الاقسام الرئيسية') @if($row->action == 'اضافة' || $row->action == 'تعديل') {{categorynamecheck($row->product_id)}} @endif @elseif($row->type == 'الاقسام الفرعية') @if($row->action == 'اضافة' || $row->action == 'تعديل') {{modelnamecheck($row->product_id)}} @endif @endif {{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }} @if($row->deleted_at) {{ __('dashboard.restore') }} {{ __('dashboard.delete') }} @else @endif @endforeach @if( count( $logs ) && $logs->hasPages() ) {{ $logs->links() }} @endif