@extends('layouts.app') @section('content')

Products

@can('product-create') Create New Product @endcan
@if ($message = Session::get('success'))

{{ $message }}

@endif @foreach ($products as $product) @endforeach
No Name Details Action
{{ ++$i }} {{ $product->name }} {{ $product->detail }}
Show @can('product-edit') Edit @endcan @csrf @method('DELETE') @can('product-delete') @endcan
{!! $products->links() !!}

Tutorial by ItSolutionStuff.com

@endsection