@extends('layouts.app') @section('content')
← Back to Batches

Batch Details: {{ $batch->batch_number }}

Batch Information

Batch Number: {{ $batch->batch_number }}
Barcode: {{ $batch->barcode ?? 'Not assigned' }}
GRN Number: {{ $batch->goodReceiveNote->grn_number }}
Supplier: {{ $batch->goodReceiveNote->supplier->company_name }}
Manufacture Date: {{ $batch->manufacture_date?->format('Y-m-d') ?? 'N/A' }}
Expiry Date: {{ $batch->expiry_date?->format('Y-m-d') ?? 'N/A' }}
Notes: {{ $batch->notes ?? 'N/A' }}

Stock Summary

Total Quantity: {{ $totalQuantity }}
Available Quantity: {{ $availableQuantity }}
Batch Value: ${{ number_format($batchValue, 2) }}

Stock Items

@foreach($batch->stocks as $stock) @endforeach
Product SKU Cost Price Selling Price Tax % Quantity Available
{{ $stock->product->product_name }} {{ $stock->product->sku }} ${{ number_format($stock->cost_price, 2) }} ${{ number_format($stock->selling_price, 2) }} {{ $stock->tax }}% {{ $stock->quantity }} {{ $stock->available_quantity }}
@endsection