@extends('admin.master') @section('content') @section('title','Payment History')
All Payment History
{{ Form::open(array('route' => 'paymentHistory.paymentHistory','id'=>'paymentHistory','class'=>'paymentHistory')) }}
{!! Form::text('month',isset($month)?$month : '', $attributes = array('class'=>'form-control monthField required','id'=>'month','placeholder'=>'Enter Month','readonly'=>'readonly')) !!}
{{ Form::close() }}
@if(!empty($results) && isset($results))
@if(nCount($results) > 0) @php $sl = null; $totalNetSalary = 0; @endphp @foreach($results AS $value) @php $sl = null; $totalNetSalary += $value->gross_salary; @endphp @endforeach @else @endif
S/L Employee Name Pay Grade Net Salary To be paid
{!! ++$sl !!} {!! $value->fullName !!}
Department : {{$value->department_name}}
@if($value->pay_grade_name !='') {{$value->pay_grade_name}} (Monthly) @else {{$value->hourly_grade}} (Hourly) @endif {!! number_format($value->gross_salary) !!} {!! number_format($value->gross_salary) !!}
TOTAL {{number_format($totalNetSalary)}} {{number_format($totalNetSalary)}}
No data have found !
@endif
@endsection @section('page_scripts') @endsection