@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')
Reset Print
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(); $userBranchId = auth()->user()->branch_id; $filterBranchId = session('branch_filter_id', null); if ($userBranchId == 1) { if($filterBranchId){ $branch_product = App\Models\BranchProduct::where('branch_id',$filterBranchId)->where( 'product_id', $data->id, )->get(); }else{ $branch_product = App\Models\BranchProduct::where( 'product_id', $data->id, )->get(); } } else { $branch_product = App\Models\BranchProduct::where('product_id', $data->id) ->where('branch_id', $userBranchId) ->get(); } @endphp {{-- --}} {{-- delete modal --}} @csrf @method('delete') @empty @endforelse
#SL Branch Name Barcode Price StatusAction
{{ $loop->index + 1 }} @foreach ($branch_product as $branch) {{ $branch->branch?->name }} @endforeach {{ $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