@extends('admin.layout.master') @section('home')
| SL NO | Name | Calculation Type | Basic | @foreach ($allowances as $allowance){{$allowance->name}} | @endforeachTaxable Amount | Yearly Amount | Yearly Deduct | Due |
|---|---|---|---|---|---|---|---|---|
| {{$i++}} | {{$employee['name']}} | {{$employee['calculation_type']}} | {{$employee['basic']}} @php $total_taxable_amount += $employee['basic']; @endphp | @foreach ($allowances as $list)@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']}} |