@push('title') Products @endpush @can('create_product_management')
@endcan
Products
Reset
@forelse($products as $product) @empty @endforelse
Name Code Warehouse Brand Price ( Retail ) Price ( Wholesale ) Product Unit In Stock Created At Action
{{ $product->name }} {{ $product->code }} @if($product->product_type == \App\Models\Product::VARIATION) @foreach ($product->variations as $variation) @foreach($variation->batches->where('status', 'active') as $batch) {{ $batch->warehouse->name ?? 'N/A' }}
@endforeach @endforeach @else @foreach($product->batches->where('status', 'active') as $batch) {{ $batch->warehouse->name ?? 'N/A' }}
@endforeach @endif
{{ $product->brand?->name ?? 'N/A' }} @if($product->product_type == \App\Models\Product::VARIATION) @foreach ($product->variations as $variation) @foreach($variation->batches->where('status', 'active') as $batch) {{ $batch->batch_no }} -{{ $variation?->variationType?->name ?? 'N/A' }} - {{ $batch->retail_price }} LKR
@endforeach @endforeach @else @foreach($product->batches->where('status', 'active') as $batch) {{ $batch->batch_no }} - {{ $batch->retail_price }} LKR
@endforeach @endif
@if($product->product_type == \App\Models\Product::VARIATION) @foreach ($product->variations as $variation) @foreach($variation->batches->where('status', 'active') as $batch) {{ $batch->batch_no }} -{{ $variation?->variationType?->name ?? 'N/A' }} - {{ $batch->wholesale_price }} LKR
@endforeach @endforeach @else @foreach($product->batches->where('status', 'active') as $batch) {{ $batch->batch_no }} - {{ $batch->wholesale_price }} LKR
@endforeach @endif
{{ $product->baseUnit?->name ?? 'N/A' }} @if($product->product_type == \App\Models\Product::VARIATION) @foreach ($product->variations as $variation) @foreach($variation->batches->where('status', 'active') as $batch) {{ $batch->batch_no }} -{{ $variation?->variationType?->name ?? 'N/A' }} - {{ $batch->current_stock }}
@endforeach @endforeach @else @foreach($product->batches->where('status', 'active') as $batch) {{ $batch->batch_no }} - {{ $batch->current_stock }}
@endforeach @endif
{{ $product->created_at->format('Y-m-d') }} @can('view_product_management') @endcan @can('update_product_management') @endcan @can('delete_product_management') @endcan
No products found
{{ $products->withQueryString()->links() }}