@php($no = 1) @if($pengaturan instanceof \Illuminate\Pagination\LengthAwarePaginator) @php($no = (($pengaturan->currentPage()-1) * $pengaturan->perPage()) + 1) @endif @foreach($pengaturan as $value) @endforeach
No Nama Jenis Konten Action
{{ $no++ }} {{ $value->nama }} {{ $value->jenis }} @if($value->jenis == 'Image') @endif @if($value->jenis == 'Video') @endif @if($value->jenis == 'Text') {!! $value->konten !!} @endif
@if($pengaturan instanceof \Illuminate\Pagination\LengthAwarePaginator) {{ $pengaturan->links('vendor.pagination.custom', ['function' => 'search_pengaturan']) }} @endif