@extends('layouts.master') @section('title', 'Products') @section('page-header') Product List @stop @push('style') @endpush @section('content')
@include('partials._alert_message')

@yield('page-header')

@if ((hasPermission("account-products.create", $slugs))) @endif
@foreach($products as $item) @endforeach
S/L Name Category Unit Opening Qty Purchase Price Selling Price Actions
{{ $loop->iteration }}

{{ $item->name }}

{{ Str::words($item->description, 100, '...') }}

{{ optional($item->category)->name }} {{ optional($item->unit)->name }} {{ $item->opening_quantity }} {{ $item->purchase_price }} {{ $item->selling_price }}
@include('partials._user-log', ['data' => $item]) @if ((hasPermission("account-products.edit", $slugs))) @endif @if ((hasPermission("account-products.delete", $slugs))) @endif
@csrf @method("DELETE")
@endsection @section('js') @endsection