@extends('home') @section('content')

List

@foreach ($posts as $key=> $item) @endforeach
User Caption Content Total Likes Total Comments Action
{{ $item->postId }} {{ $item->userId }} {{ $item->caption }} {{ $item->postContentText }} {{ $item->totalLike }} {{ $item->totalComment }} {!! Form::open(['method' => 'DELETE','url' => ['posts/'.$item->id.'/destroy', $item->id],'style'=>'display:inline']) !!} {!! Form::button('', ['type' => 'submit','class'=>'btn btn-danger btn-sm']) !!} {!! Form::close() !!}
User Caption Content Total Likes Total Comments Action
@endsection