@extends('backend.layouts.master') @section('section-title', 'Product') @section('page-title', 'Product List') @if (check_permission('product.create')) @section('action-button') Add Product @endsection @endif @push('css') @endpush @section('content')
@php $categories = App\Models\Category::get(); $produc = App\Models\Product::get(); @endphp
Reset Print
@forelse($products as $data) @php $count_inv = App\Models\InvoiceItem::where('product_id', $data->id)->count(); $count_pur = App\Models\PurchaseItem::where('product_id', $data->id)->count(); @endphp {{-- delete modal --}} @csrf {{-- @method('DELETE') --}} @empty @endforelse
#SL Name Size-Color Barcode Category Brand Cost Price Action
{{ $loop->index + 1 }} {{ $data->name }} @if(count($data->product_variations) > 0 ) @endif {{-- --}} {{ $data->barcode }} {{ $data->category->name }} {{ ($data->brand_id==NULL)?"No Brand":$data->brand->name }} {{ $data->purchase_price }} {{ $data->selling_price }} {{-- @dd($data->product_variations->size_id) --}}
No Data Available
{{ $products->onEachSide(1)->links() }}
@endsection @push('js') @endpush