@extends('layouts.master') @section('content')

Dashboard

@if(auth()->user()->isAdmin==0)

Percentages of Salary

@foreach($stats as $key=>$stat)
{{$key}}
@if($loop->index==3) @break @endif @endforeach
Logs Payslip{{count($earnings)>1?"s":""}} for last {{ count($earnings) ==1?"month": count($earnings) ." months" }}
@foreach($earnings as $earning) @php $income_tax = $earning->income_tax; $numEx = explode("\n",$earning->earnings); $earningx = is_numeric($numEx[0])?number_format($numEx[0],2):0; @endphp @if($loop->index==2) @break @endif @endforeach View all
Months with Deduction
@foreach($items as $item) @endforeach
Months with Deduction
@foreach($items as $item) @endforeach
@else @endif @endsection