@extends('layouts.master') @section('css') @endsection @section('content')

Posts ({{ $posts->total() }})

@if (count($posts) > 0) @php $i = $posts->perPage() * ($posts->currentPage() - 1) + 1; @endphp @foreach ($posts as $post) @endforeach @else @endif
Sr. No User Name Contact Name Description Action
{{ $i++ }} {{ $post->user->name ?? null }} {{ $post->user->contact ?? null }} {{ $post->title ?? null }} {{ $post->description ?? null }}
No Data Found
{{ $posts->appends(Request::all())->links() }}
@endsection @section('js') @endsection