@extends('admin.layout.master') @section('content')
| {{__('obs.sl_number')}} | {{__('obs.name')}} | {{__('obs.calculation_type')}} | {{__('obs.basic')}} | @foreach ($allowances as $allowance){{$allowance->name}} | @endforeach{{__('obs.taxable_amount')}} | {{__('obs.yearly_amount')}} | {{__('obs.yearly_deduct')}} | {{__('obs.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']}} |