@extends('layout.app') @section('title') Payslips @endsection @section('pagetitle') {{ucwords($payrol->employee_name)}} Payslips @endsection @section('content')
@include('includes.errors') @include('includes.success')
@if (!empty($_GET['filter']) && $_GET['filter'] == true)
@foreach ($payslips as $item)
Sn Name Basic Gross Pay Total Deduction Net Pay Period
{{$i+1}} {{$item->payroll->employee_name}} {{number_format($item->paymentstructure->basic,2)}} {{number_format($item->paymentstructure->gross_pay,2)}} {{number_format($item->paymentstructure->deduction,2)}} {{number_format($item->paymentstructure->net_pay,2)}}