@extends('admin.layout.master') @section('home')

Income Tax Report

{{--
--}}
@foreach ($allowances as $allowance) @endforeach @php $i = 1; @endphp @foreach ($employees as $employee ) @php $total_taxable_amount = 0; @endphp @foreach ($allowances as $list) @endforeach
SL NO Name Calculation Type Basic{{$allowance->name}}Taxable Amount Yearly Amount Yearly Deduct Due
{{$i++}} {{$employee['name']}} {{$employee['calculation_type']}} {{$employee['basic']}} @php $total_taxable_amount += $employee['basic']; @endphp @if(!empty($employee['employee_allowances']) && count($employee['employee_allowances'])>0) @foreach($employee['employee_allowances'] as $key=>$value) @if($list->id == $value->allowance_id) @php $allowance = $value->amount*12; @endphp @if($list->taxable ==1) @php $total_taxable_amount += $allowance; @endphp {{$allowance}} @else {{$allowance}} @endif @endif @endforeach @else {{0}} @endif @endforeach {{$employee['yearly_taxable_amount']}} {{$employee['yearly_tax_amount']}} {{$employee['yearly_paid']}} {{$employee['yearly_due']}}
@endsection