{{-- Serial Number --}}
|
{{ $index + 1 }}
|
{{-- Product Name --}}
{{ $summary->reconcilation->type == 2 ? $summary->consumableitem->name : $summary->product->product_name }}
|
{{-- From Quantity --}}
{{ $summary->from }} {{ $symbol }}
|
{{-- To Quantity --}}
{{ $summary->to }} {{ $symbol }}
|
{{-- Variance --}}
{{ $variance }} {{ $symbol }}
|
{{-- Price --}}
{{ number_format($summary->buying_price) }}
|
{{-- Variance Amount --}}
{{ number_format($varianceAmount) }}
|
{{-- Date --}}
{{ auth()->user()->business->country_id == 235 ? \Carbon\Carbon::parse($summary->created_at)->format("Y-m-d H:i:s a") : app(\App\Http\Controllers\FunctionController::class)->formatDateTime($summary->created_at) }}
|
{{-- Batch Number --}}
@if($generalSettings->track_expiries)
{{ $summary->batch?->batch_number ?? '-' }}
|
@endif
{{-- Category --}}
{{ match ($summary->reconcilation->type){ 0 => 'Shop', 1 => 'Store', default => 'Consumables'} }}
|
@endforeach
{{-- Summary Row --}}