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

Payroll {{$payroll->payrollno}}

  • Leave (L)

    {{$payroll->leave}}

  • 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)}}

{{ucfirst($payroll->user->getTeacherDetails()['sub_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

Salary

  • Gross salary

    ₹ {{$payroll->salary->gross_salary}}

  • Leave Deduction(LOP)

    ₹ {{$payroll->leave_deduction}}

  • Total Salary

    ₹ {{$payroll->salary->gross_salary-$payroll->leave_deduction}}

  • Salary Percentage ({{$payroll->percentage}}%)

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

  • @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}}

    ₹ {{round($payslip->amount)}}

  • @endif @endforeach

Earning Salary

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

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