@foreach ($products as $product) @endforeach
Product Id Name Category Brand Purchase Price Sales Price Wholesale Price Is Service Unit Action
{{ $product->product_id }} {{ $product->product_name }} {{ $product->category_name?$product->category_name->name:'' }} {{ $product->brand }} {{ $product->purchase_rate }} {{ $product->sales_rate }} {{ $product->wholesale_rate }} @if ($product->isService == 1) True @else False @endif {{ $product->unit }}
@php // config $link_limit = 11; // maximum number of links (a little bit inaccurate, but will be ok for now) @endphp @if ($products->lastPage() > 1)

Total Page: {{ $products->lastPage() }}

@endif
{{-- @foreach ($products as $product) @endforeach
Product Id Name Category Brand Purchase Price Sales Price Wholesale Price Is Service Unit Action
{{ $product->product_id }} {{ $product->product_name }} {{ $product->category }} {{ $product->brand }} {{ $product->purchase_rate }} {{ $product->sales_rate }} {{ $product->wholesale_rate }} @if ($product->isService == 1) True @else False @endif {{ $product->unit }}
--}}