@extends('layouts.master') @section('title') {{ __('Salary Structure') }} @endsection @section('content')
{{--
Basic Salary {{ number_format($salary ?? 0, 2) }}
Total Allowances (+) @foreach ($allowances as $allowance) {{ $allowance ?? '' }}

@endforeach
@foreach ($allowanceAmount as $amount) {{ number_format($amount ?? 0, 2) }}

@endforeach
Total Deductions (-) @foreach ($deductions as $deduction) {{ $deduction ?? '' }}

@endforeach
@foreach ($deductionAmount as $amount) {{ number_format($amount ?? 0, 2) }}

@endforeach
Net Salary {{ number_format($netSalary ?? 0, 2) }}
--}}
@csrf

{{ __('allowances') }}

@foreach ($user->staff->staffSalary as $row) @if ($row->payrollSetting->type == 'allowance')
@if ($row->amount)
@else
@endif
@endif @endforeach
{{-- deductions --}}

{{ __('deductions') }}

@foreach ($user->staff->staffSalary as $row) @if ($row->payrollSetting->type == 'deduction')
@if ($row->amount)
@else
@endif
@endif @endforeach

{{-- Summary --}}
@endsection @section('script') @endsection