@extends('layouts.dashboard') @section('css') @endsection @section('sub-header') {{ $pageTitle }} @endsection @section('content')
@csrf
@php $index = 0 ; @endphp
@foreach(getTypesForValues() as $typeElement) @php $index++; @endphp @endforeach
{{-- start of fixed monthly repeating amount --}} @php $tableId = 'fixed_monthly_repeating_amount'; $repeaterId = 'fixed_monthly_repeating_amount_repeater'; @endphp @php $rows = isset($model) ? $model->generateRelationDynamically($tableId)->get() : [-1] ; @endphp @foreach( count($rows) ? $rows : [-1] as $subModel) @php if( !($subModel instanceof \App\Models\Expense) ){ unset($subModel); } @endphp
@include('ul-to-trigger-popup')
%
isDeductible() : false) checked @endif type="checkbox">
{{-- {{ dd($subModel->getWithholdTaxRate()) }} --}}
%
%
@endforeach
{{-- end of fixed monthly repeating amount --}} {{-- start of varying amount --}} @php $tableId = 'varying_amount'; $repeaterId = 'varying_amount_repeater'; @endphp {{-- --}} @foreach($dates as $fullDate => $dateFormatted) @endforeach @php $rows = isset($model) ? $model->generateRelationDynamically($tableId)->get() : [-1] ; @endphp @foreach( count($rows) ? $rows : [-1] as $subModel) @php if( !($subModel instanceof \App\Models\Expense) ){ unset($subModel); } @endphp
@include('ul-to-trigger-popup')
%
isDeductible() : false) checked @endif type="checkbox">
%
@php $payloadIndex = 0 ; @endphp @foreach($dates as $fullDate => $dateFormatted)
@php $payloadIndex++ ; @endphp @endforeach @endforeach
{{-- end of varying amount --}} {{-- start of fixed monthly repeating amount --}} @php $tableId = 'fixed_percentage_of_sales'; $repeaterId = 'fixed_percentage_of_sales_repeater'; @endphp {{-- --}} {{-- --}} @php $rows = isset($model) ? $model->generateRelationDynamically($tableId)->get() : [-1] ; @endphp @foreach( count($rows) ? $rows : [-1] as $subModel) @php if( !($subModel instanceof \App\Models\Expense) ){ unset($subModel); } @endphp
@include('ul-to-trigger-popup')
%
isDeductible() : false) checked @endif type="checkbox">
{{-- {{ dd($subModel->getWithholdTaxRate()) }} --}}
%
{{--
%
--}} @endforeach
{{-- end of fixed monthly repeating amount --}} {{-- start of varying percentage --}} @php $tableId = 'varying_percentage_of_sales'; $repeaterId = 'varying_percentage_of_sales_repeater'; @endphp {{-- --}} @foreach($dates as $fullDate => $dateFormatted) @endforeach {{-- --}} {{-- --}} @php $rows = isset($model) ? $model->generateRelationDynamically($tableId)->get() : [-1] ; @endphp @foreach( count($rows) ? $rows : [-1] as $subModel) @php if( !($subModel instanceof \App\Models\Expense) ){ unset($subModel); } @endphp
@include('ul-to-trigger-popup')
{{-- --}}
%
isDeductible() : false) checked @endif type="checkbox">
{{-- {{ dd($subModel->getWithholdTaxRate()) }} --}}
%
@php $payloadIndex = 0 ; @endphp @foreach($dates as $fullDate => $dateFormatted)
@php $payloadIndex++ ; @endphp @endforeach {{--
%
--}} @endforeach
{{-- end of varying percentage --}} {{-- start of fixed cost per unit --}} @php $tableId = 'fixed_cost_per_unit'; $repeaterId = 'fixed_cost_per_unit_repeater'; @endphp @php $rows = isset($model) ? $model->generateRelationDynamically($tableId)->get() : [-1] ; @endphp @foreach( count($rows) ? $rows : [-1] as $subModel) @php if( !($subModel instanceof \App\Models\Expense) ){ unset($subModel); } @endphp
@include('ul-to-trigger-popup')
%
isDeductible() : false) checked @endif type="checkbox">
%
%
@endforeach
{{-- end of fixed cost per unit --}} {{-- start of varying cost per unit --}} @php $tableId = 'varying_cost_per_unit'; $repeaterId = 'varying_cost_per_unit_repeater'; @endphp {{-- --}} @foreach($dates as $fullDate => $dateFormatted) @endforeach {{-- --}} {{-- --}} @php $rows = isset($model) ? $model->generateRelationDynamically($tableId)->get() : [-1] ; @endphp @foreach( count($rows) ? $rows : [-1] as $subModel) @php if( !($subModel instanceof \App\Models\Expense) ){ unset($subModel); } @endphp
@include('ul-to-trigger-popup')
{{-- --}}
%
isDeductible() : false) checked @endif type="checkbox">
{{-- {{ dd($subModel->getWithholdTaxRate()) }} --}}
%
@php $payloadIndex = 0 ; @endphp @foreach($dates as $fullDate => $dateFormatted)
@php $payloadIndex++ ; @endphp @endforeach {{--
%
--}} @endforeach
{{-- end of varying cost Per unit --}} {{-- start of fixed cost per unit --}} @php $tableId = 'expense_per_employee'; $repeaterId = 'expense_per_employee_repeater'; @endphp @php $rows = isset($model) ? $model->generateRelationDynamically($tableId)->get() : [-1] ; @endphp @foreach( count($rows) ? $rows : [-1] as $subModel) @php if( !($subModel instanceof \App\Models\Expense) ){ unset($subModel); } @endphp
@include('ul-to-trigger-popup')
{{-- this must be multiselect --}} {{-- this must be multiselect --}}
%
isDeductible() : false) checked @endif type="checkbox">
%
%
@endforeach
{{-- end of expense per employee --}} {{-- start of intervally repeating amount --}} @php $tableId = 'intervally_repeating_amount'; $repeaterId = 'intervally_repeating_amount_repeater'; @endphp @php $rows = isset($model) ? $model->generateRelationDynamically($tableId)->get() : [-1] ; @endphp @foreach( count($rows) ? $rows : [-1] as $subModel) @php if( !($subModel instanceof \App\Models\Expense) ){ unset($subModel); } @endphp
@include('ul-to-trigger-popup')
%
isDeductible() : false) checked @endif type="checkbox">
{{-- {{ dd($subModel->getWithholdTaxRate()) }} --}}
%
%
@endforeach
{{-- end of intervally repeating amount --}} {{-- start of one time expense --}} @php $tableId = 'one_time_expense'; $repeaterId = 'one_time_expense_repeater'; @endphp {{-- --}} {{-- --}} @php $rows = isset($model) ? $model->generateRelationDynamically($tableId)->get() : [-1] ; @endphp @foreach( count($rows) ? $rows : [-1] as $subModel) @php if( !($subModel instanceof \App\Models\Expense) ){ unset($subModel); } @endphp
@include('ul-to-trigger-popup')
%
isDeductible() : false) checked @endif type="checkbox">
{{-- {{ dd($subModel->getWithholdTaxRate()) }} --}}
%
{{--
%
--}} @endforeach
{{-- end of one time expense --}}
@endsection @section('js') @endsection @push('js_end') @endpush