@php $currentSectionName = rooms_manpower_expense; @endphp {{-- start of Rooms Manpower Expenses--}}

{{ __('Do you want to add Manpower Expense?') }}

hasRoomsManpower()) checked @elseif(!isset($model)) checked @endif >
{{ __('Show/Hide') }}

{{-- we need for loop instead of foreach and it must be 6 loops --}} {{-- @for($instance=0 ; $instance<5 ; $instance++) --}} @for($instance=0 ; $instance<12 ; $instance++) @php $directExpense=$model->getDirectExpenseForSection($modelName,$currentSectionName , $instance); @endphp {{-- Foods Types --}} @php $order = 1 ; @endphp @php $order = 2 ; @endphp {{-- Cover Value --}} @php $order = 3 ; @endphp {{-- Choose Currency Td --}} @php $order =4 ; @endphp {{-- Estimation Date --}} @php $order = 5 ; @endphp {{-- Cover Value Escalation Rate % --}} @php $order = 6 ; @endphp {{-- Cover Value At Operation Date --}} @php $order = 7 ; @endphp {{-- Annual Escalation % --}} {{-- Salary Taxes % --}} @php $order = 8 ; @endphp @php $order =9 ; @endphp {{-- Social Insurance % --}} @php $order = $order +1 ; @endphp @endfor
{{ __('Position Name') }} {{ __('Current Net Salary') }} {{ __('Choose Currency') }} {{ __('Estimation Date') }} {{ __('Escalation Rate %') }} {{ __('Net Salary At Operation Date') }} {{ __('Annual Escalation Rate %') }} {{ __('Salary Taxes %') }} {{ __('Social Insurance %') }}
{{-- --}}
%
{{-- --}}
{{-- % --}}
{{-- --}}
{{-- % --}}
{{-- --}}
@php $canViewAddManpowerBtn = !count($model->getDirectExpensesForSection($modelName , $currentSectionName)) && (!$directExpense || ($directExpense && !$directExpense->has_rooms_manpower)) @endphp
@if(count($model->getDirectExpensesForSection($modelName , $currentSectionName)))
@foreach($dates= getMaxNumberFromFirstArray($dates,48) as $dateString=>$date) @endforeach @php $currentTotal = []; @endphp @for($instance=0 ; $instance<12 ; $instance++) @php $directExpense=$model->getDirectExpenseForSection($modelName,$currentSectionName , $instance); @endphp @if($directExpense) @php $order = 1 ; @endphp @foreach($dates as $date) @php $order = $order +1 ; @endphp @endforeach @endif @endfor
{{ __('Position Name') }} {{ formatDateForView($dateString) }}
@php $currentVal = $directExpense ? $directExpense->getManpowerPayloadAtDate($date) : 0; $currentTotal[$date]=isset($currentTotal[$date]) ? $currentTotal[$date] + $currentVal : $currentVal; @endphp
#
@endif
{{-- end of Rooms Manpower Expenses --}} @if(!$canViewAddManpowerBtn) @else @endif @push('js') @if(!$canViewAddManpowerBtn) @else @endif @endpush