@extends('admin.master') @section('content') @section('title','Generate Salary Sheet')
@yield('title')
@if($errors->any()) @endif @if(session()->has('success'))
 {{ session()->get('success') }}
@endif @if(session()->has('error'))
 {{ session()->get('error') }}
@endif {{ Form::open(array('route' => 'generateSalarySheet.calculateEmployeeSalary','method'=>'GET','id'=>'calculateEmployeeSalaryForm')) }}
{{ Form::select('employee_id',$employeeList, (isset($employee_id)) ? $employee_id : '', array('class' => 'form-control employee_id select2 required')) }}
{!! Form::text('month', (isset($month)) ? $month : '', $attributes = array('class'=>'form-control required monthField','id'=>'month','placeholder'=>'Enter month')) !!}
{{ Form::close() }}
Employee Salary Details
{{ Form::open(array('route' => 'saveEmployeeSalaryDetails.store')) }}

Salary sheet/ Final Balance

Month : {{convartMonthAndYearToWord($month)}}
Pay Grade : @if(isset($employeeDetails->hourlySalaries->hourly_grade)) {{$employeeDetails->hourlySalaries->hourly_grade}} @endif(Hourly)
Name : {{$employeeDetails->first_name}} {{$employeeDetails->last_name}}
Department : @if(isset($employeeDetails->department->department_name)) {{$employeeDetails->department->department_name}} @endif
Designation : @if(isset($employeeDetails->designation->designation_name)) {{$employeeDetails->designation->designation_name}} @endif
Joining Date : {{date(" d-M-Y", strtotime($employeeDetails->date_of_joining))}}
Working Hour {{$totalWorkingHour}}
Hourly Rate {{number_format($hourly_rate)}}
Total Salary {{number_format($totalSalary)}}
Gross Salary {{number_format($totalSalary)}}

{{ Form::close() }}
@endsection @section('page_scripts') @endsection