{{-- {{ start of collection policy section }} --}}
| {{ $firstHeader }} | {{ __('System Default') }} | {{ __('Customized Terms') }} |
|---|---|---|
| {{ str_to_upper($salesChannelName) }} | @php $order = 1 ; @endphp @foreach(['system_default','customize'] as $collectionPolicyType)
@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 %') }}
%
@endfor
{{ __('Due In Days') }}
%
@endfor
|
@endforeach
@php
$order = $order +1 ;
@endphp
{{-- @endforeach --}}
| {{ __('Item') }} | {{ __('System Default') }} | {{ __('Customized Terms') }} |
|---|---|---|
| {{ str_to_upper($salesChannelName) }} | @php $order = 1 ; @endphp @foreach(['system_default','customize'] as $collectionPolicyType)
@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 %') }}
%
@endfor
{{ __('Due In Days') }}
%
@endfor
|
@endforeach
@php
$order = $order +1 ;
@endphp
{{-- @endforeach --}}