@extends('layout.app') @section('content')

Month Wise Salary Summary

{{ $employee->employee_id }}
{{ $employee->name }}
{{ $employee->current_designation ?: 'N/A' }}
{{ $employee->current_salary }}
@foreach ($months as $month) @endforeach
Month Total Salary Total Paid Due
{{ $month['name'] }} {{ number_format($month['salary'], 2) }} {{ number_format($month['paid'], 2) }} {{ number_format($month['due'], 2) }}
Total {{ number_format(collect($months)->sum('salary'), 2) }} {{ number_format(collect($months)->sum('paid'), 2) }} {{ number_format(collect($months)->sum('due'), 2) }}
@endsection