@extends('layouts.teacher.layout') @section('content')

Payroll {{$payroll->payrollno}}

  • Leave (L)

    {{$payroll->getLeaveDays($payroll->staff_id,$payroll->start_date,$payroll->end_date)}}

  • Created at

    {{date('d-m-Y H:s',strtotime($payroll->created_at))}}

  • Last Updated at

    {{date('d-m-Y H:s',strtotime($payroll->updated_at))}}

{{$payroll->user->userprofile->firstname}} {{$payroll->user->userprofile->lastname}}

{{ucfirst($payroll->user->teacherprofile[0][designation])}}

{{date('d-m-Y',strtotime($payroll->start_date))}} to {{date('d-m-Y',strtotime($payroll->end_date))}}

@if($payroll->status=='paid')

Paid

@else

Unpaid

@endif

Earning

    @foreach($payroll->payslipitems as $payslip) @if($payslip->salaryitem->templateitem->payrollitem->type=='earning')
  • {{$payslip->salaryitem->templateitem->payrollitem->name}}

    ₹ {{$payslip->amount}}

  • @endif @endforeach

Deduction

    @foreach($payroll->payslipitems as $payslip) @if($payslip->salaryitem->templateitem->payrollitem->type=='deduction')
  • {{$payslip->salaryitem->templateitem->payrollitem->name}}

    ₹ {{$payslip->amount}}

  • @endif @endforeach

Earning Salary

₹ {{$payroll->totalearnings()}}

Deduction Salary

₹ {{$payroll->totaldeductions()}}

Net Salary

₹ {{$payroll->totalsalary()}}

@if($payroll->status=='paid')
Payroll Transaction
Voucher Number Amount Account Payment Method Date of Transaction
{{$payroll->transaction->transaction_no}} ₹ {{$payroll->transaction->amount}} {{$payroll->transaction->account->name}} {{$payroll->transaction->payment_method}} {{date('d-m-Y',strtotime($payroll->transaction->transaction_date))}}
@endif
@endsection