@extends('backend.layouts.master') @section('section-title', 'Service') @section('page-title', 'Service List') @if (check_permission('service.create')) @section('action-button') Add Service @endsection @endif @push('css') @endpush @section('content')
@php // $categories = App\Models\Category::get(); $produc = App\Models\Product::where('is_service',1)->get(); @endphp
Reset Print
@php $total_product = App\Models\Product::where('is_service','1')->count(); @endphp
Total Service : {{$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 Price StatusAction
{{ $loop->index + 1 }} {{ $data->name }} {{ $data->barcode }} {{ $data->selling_price }} @if($data->status == 1 ) Active @endif @if($data->status == 0) Deactive @endif
No Data Available
{{ $products->onEachSide(1)->links() }}
{{-- --}} @endsection @push('js') {{-- --}} @endpush