{{-- {{ start of collection policy section }} --}}

{{ __('Collection Terms') }}

{{ __('Show/Hide') }}

@php $currentTotal = []; $subItemIndex=0; @endphp @foreach($collectionPolicyItems as $index=>$salesChannel) @php $salesChannelName = $salesChannel->getName(); @endphp @php $order = 1 ; @endphp @foreach(['system_default','customize'] as $collectionPolicyType) @endforeach @php $order = $order +1 ; @endphp {{-- @endforeach --}} @php $subItemIndex = $subItemIndex +1 ; @endphp @endforeach
{{ $firstHeader }} {{ __('System Default') }} {{ __('Customized Terms') }}
{{ str_to_upper($salesChannelName) }} @php $currentVal = 0 ; $currentTotal[$year]=isset($currentTotal[$year]) ? $currentTotal[$year] + $currentVal : $currentVal; @endphp
{{-- {{ dd($collectionPolicyType) }} --}} {{-- {{ dd($salesChannel->collectionPolicyInterval() ) }} --}} {{-- {{ dd($salesChannel,$salesChannel->isSystemDefaultCollectionPolicy()) }} --}} @if($collectionPolicyType == 'system_default')
isSystemDefaultCollectionPolicy()) checked @endif type="radio" style="height:18px !important;width:18px!important;margin-right:20px;" value="1" data-order="{{ $order }}" data-index="{{ $index }}" name="is_system_default[{{ $salesChannelName }}]" class="form-control ">
@elseif($collectionPolicyType =='customize')
isCustomizeCollectionPolicy()) checked @endif data-order="{{ $order }}" data-index="{{ $index }}" name="is_system_default[{{ $salesChannelName }}]" class="form-control ">
{{ __('Collection Rate %') }}
@for($i = 0 ; $i<4 ; $i++)
%
@endfor
%
{{ __('Due In Days') }}
@for($i=0;$i<4;$i++)
%
@endfor
@endif
@php $currentTotal = []; $subItemIndex=0; @endphp @php $salesChannelName = __('General Collection Policy'); @endphp @php $order = 1 ; @endphp @foreach(['system_default','customize'] as $collectionPolicyType) @endforeach @php $order = $order +1 ; @endphp {{-- @endforeach --}} @php $subItemIndex = $subItemIndex +1 ; @endphp
{{ __('Item') }} {{ __('System Default') }} {{ __('Customized Terms') }}
{{ str_to_upper($salesChannelName) }} @php $currentVal = 0 ; $currentTotal[$year]=isset($currentTotal[$year]) ? $currentTotal[$year] + $currentVal : $currentVal; @endphp
{{-- {{ dd($model->isGeneralSystemDefaultCollectionPolicyForType($modelName),$collectionPolicyType) }} --}} @if($collectionPolicyType == 'system_default')
isGeneralSystemDefaultCollectionPolicyForType($modelName) --}} !$model->isGeneralCustomizeCollectionPolicyForType($modelName) ) checked @endif type="radio" style="height:18px !important;width:18px!important;margin-right:20px;" value="1" data-order="{{ $order }}" data-index="{{ $index }}" name="is_general_system_default" class="form-control ">
@elseif($collectionPolicyType =='customize')
isGeneralCustomizeCollectionPolicyForType($modelName)) checked @endif data-order="{{ $order }}" data-index="{{ $index }}" name="is_general_system_default" class="form-control ">
{{ __('Collection Rate %') }}
@for($i = 0 ; $i<4 ; $i++)
%
@endfor
%
{{ __('Due In Days') }}
@for($i=0;$i<4;$i++)
%
@endfor
@endif
@push('js') @endpush {{-- end of room collection policy --}}