{{ __('MOH Filter') }}

@error('from_date') {{ $message }} @enderror
@error('to_date') {{ $message }} @enderror
@error('id_pricelist') {{ $message }} @enderror
@if ($id_pricelist != "")
@if ($flagWhs) @else Warehouse is required. @endif
@if ($flagWhsCentral) @else Warehouse is required. @endif
@endif
@error('resume_group') {{ $message }} @enderror
@if ($issearch) @else @endif
@if ($level == 1)

{{ __('MOH Report') }}

Period

:

@if ($from_date == $to_date) {{ date('j F Y', strtotime($from_date)) }} @else {{ date('j F Y', strtotime($from_date)) }} - {{ date('j F Y', strtotime($to_date)) }} @endif

Group by

:

@php $total_qty = 0; $total_value = 0; $total_onhand1 = 0; $total_onhand2 = 0; @endphp @foreach($data as $item) @php $total_qty += $item['qty']; $total_value += $item['value']; $total_onhand1 += $item['onhand1']; $total_onhand2 += $item['onhand2']; @endphp @endforeach
# @if ($groupname == '') Group @else {{ $groupname }} @endif {{ __('AvgPrice') }} {{ __('SellPrice') }} {{ __('Stock') }} {{ __('QtySales') }} {{ __('ValSales') }} {{ __('MOH') }} {{ __('Stock Central') }} {{ __('MOH Central') }} {{ __('Action') }}
{{ $loop->iteration }} {{ $item['group'] }} {{ number_format($item['avgprice']) }} {{ number_format($item['sellprice']) }} {{ number_format($item['onhand1']) }} {{ number_format($item['qty']) }} {{ number_format($item['value']) }} {{ number_format($item['moh1']) }} {{ number_format($item['onhand2']) }} {{ number_format($item['moh2']) }}
Total {{ number_format($total_qty) }} {{ number_format($total_value) }} {{ number_format($total_onhand1) }} {{ number_format($total_onhand2) }}
@endif @if ($level == 2)

{{ __('Report MOH - Level II') }}

@if ($issearchgroup2)
@endif

Period

:

@if ($from_date == $to_date) {{ date('j F Y', strtotime($from_date)) }} @else {{ date('j F Y', strtotime($from_date)) }} - {{ date('j F Y', strtotime($to_date)) }} @endif

Group by

:

@php $total_qty = 0; $total_value = 0; $total_onhand1 = 0; $total_onhand2 = 0; @endphp @foreach($data_group2 as $item) @php $total_qty += $item['qty']; $total_value += $item['value']; $total_onhand1 += $item['onhand1']; $total_onhand2 += $item['onhand2']; @endphp @endforeach
# @if ($groupname == '') Group @else {{ $groupname }} @endif @if ($groupname2 == '') Group2 @else {{ $groupname2 }} @endif {{ __('AvgPrice') }} {{ __('SellPrice') }} {{ __('Stock') }} {{ __('QtySales') }} {{ __('ValSales') }} {{ __('MOH') }} {{ __('Stock Central') }} {{ __('MOH Central') }} {{ __('Action') }}
{{ $loop->iteration }} {{ $item['group'] }} {{ $item['group2'] }} {{ number_format($item['avgprice']) }} {{ number_format($item['sellprice']) }} {{ number_format($item['onhand1']) }} {{ number_format($item['qty']) }} {{ number_format($item['value']) }} {{ number_format($item['moh1']) }} {{ number_format($item['onhand2']) }} {{ number_format($item['moh2']) }}
Total {{ number_format($total_qty) }} {{ number_format($total_value) }} {{ number_format($total_onhand1) }} {{ number_format($total_onhand2) }}
@endif @if ($level == 3)

{{ __('Report MOH - Level III') }}

@if ($issearchgroup3)
@endif

Period

:

@if ($from_date == $to_date) {{ date('j F Y', strtotime($from_date)) }} @else {{ date('j F Y', strtotime($from_date)) }} - {{ date('j F Y', strtotime($to_date)) }} @endif

Group by

:

@php $total_qty = 0; $total_value = 0; $total_onhand1 = 0; $total_onhand2 = 0; @endphp @foreach($data_group3 as $item) @php $total_qty += $item['qty']; $total_value += $item['value']; $total_onhand1 += $item['onhand1']; $total_onhand2 += $item['onhand2']; @endphp @endforeach
# @if ($groupname == '') Group @else {{ $groupname }} @endif @if ($groupname2 == '') Group2 @else {{ $groupname2 }} @endif @if ($groupname3 == '') Group3 @else {{ $groupname3 }} @endif {{ __('AvgPrice') }} {{ __('SellPrice') }} {{ __('Stock') }} {{ __('QtySales') }} {{ __('ValSales') }} {{ __('MOH') }} {{ __('Stock Central') }} {{ __('MOH Central') }} {{ __('Action') }}
{{ $loop->iteration }} {{ $item['group'] }} {{ $item['group2'] }} {{ $item['group3'] }} {{ number_format($item['avgprice']) }} {{ number_format($item['sellprice']) }} {{ number_format($item['onhand1']) }} {{ number_format($item['qty']) }} {{ number_format($item['value']) }} {{ number_format($item['moh1']) }} {{ number_format($item['onhand2']) }} {{ number_format($item['moh2']) }}
Total {{ number_format($total_qty) }} {{ number_format($total_value) }} {{ number_format($total_onhand1) }} {{ number_format($total_onhand2) }}
@endif
@foreach($data as $item) @endforeach @foreach($data_group2 as $item) @endforeach @foreach($data_group3 as $item) @endforeach
@livewireScripts @push('scripts') @endpush