@extends('adminlte::layouts.app') @section('htmlheader_title') Supplier - @if ($oo && $oo->exists)Edit @else New @endif Product @endsection @section('page_title') @if ($oo && $oo->exists)Edit @else New @endif Product @endsection @section('contentheader_title') Supplier - @if ($oo && $oo->exists)Edit @else New @endif Product @endsection @section('contentheader_description') @endsection @section('main-content')

Supplier Product

@if(session()->has('success')) {{ session()->get('success') }} @endif
@csrf
@error('supplier_detail_id') {{ $message }} @else Date is required. @enderror Suppliers Name
@error('offering_type') {{ $message }} @else Offering Type is Required @enderror Offering Type
Cancel @can('wholesaler') @endcan
@if($oo && $oo->exists)

Offering Products

@foreach ($oo->products as $pto) @endforeach
ID Name Services Sold
{{ $pto->id }} {{ $pto->product->name }} {{ $pto->product->services->where('active',true)->count() }} {{ $pto->product->services->count() }}

Services Using this Supplier Product

@foreach ($oo->products as $pto) @foreach ($pto->product->services as $so) @endforeach @endforeach
ID Product Name Status
{{ $so->lid }} {{ $so->product->type->id }} {{ $so->name }} {{ $so->active ? 'Active' : 'Not Active' }}
@endif
@endsection @section('page-scripts') @css(datatables,bootstrap4|rowgroup) @js(datatables,bootstrap4|responsive|rowgroup) @endsection