@extends('backend.layouts.master') @section('section-title', 'Used Product') @section('page-title', 'Product List') @if (check_permission('usedProduct.create')) @section('action-button') Add Product @endsection @endif @push('css') @endpush @section('content')
@php $categories = App\Models\Category::get(); $produc = App\Models\UsedProduct::get(); @endphp
Reset Print
@php $total_product = App\Models\UsedProduct::count(); @endphp
Total Used Product : {{$total_product}}
@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 Barcode Category Brand Cost Status Action
{{ $loop->index + 1 }} {{ $data->name }} {{ $data->barcode }} {{ $data->category->name }} {{ ($data->brand_id==NULL)?"No Brand":$data->brand->name }} {{ $data->purchase_price }} @if($data->status == 1 ) Active @endif @if($data->status == 0) Deactive @endif
No Data Available
{{ $products->onEachSide(1)->links() }}
@endsection @push('js') @endpush