@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($loops as $key=> $row) {{ \Carbon\Carbon::parse($row->loop_date)->format('M Y') }} {{ $row->user_name }} {{ $row->period }} Months {{ $row->share }} SAR {{ $row->status }} {{ \Carbon\Carbon::parse($row->encashment_month)->format('M Y') }} @endforeach @if( count( $loops ) && $loops->hasPages() ) {{ $loops->links() }} @endif