@extends($layout) @section('header_scripts') @stop @section('content')

{{getPhrase('add_payment_to')}} {{$role_name}} - {{ $title }}

{!! Form::open(array('url' => URL_ADD_SALARY_AND_EXPENSE, 'method' => 'POST', 'novalidate'=>'','name'=>'userPay ',)) !!}

{{ $record->name}}

{{$record->email}}

@if($template)
{{ Form::label('gross_salary', getphrase('gross_salary')) }} {{ Form::text('gross_salary', $value = $template->gross_salary , $attributes = array( 'class'=>'form-control', 'readonly' =>TRUE )) }}
{{ Form::label('total_deduction', getphrase('total_deduction')) }} {{ Form::text('total_deduction', $value = $template->total_deduction , $attributes = array( 'class'=>'form-control', 'readonly' =>TRUE )) }}
{{ Form::label('net_salary', getphrase('net_salary')) }} {{ Form::text('net_salary', $value = $template->net_salary , $attributes = array( 'class'=>'form-control', 'readonly' =>TRUE )) }}
@endif
{{ Form::label('month', getphrase('month')) }} * {{ Form::text('month', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'Jack', 'id' =>'dp', )) }}
{{ Form::label('paid_amount', getphrase('pay_amount')) }} * {{ Form::number('paid_amount', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'Jack', 'ng-model'=>'paid_amount', 'required'=> 'true', 'ng-class'=>'{"has-error": userPay.paid_amount.$touched && userPay.paid_amount.$invalid}', )) }}
{!! getValidationMessage()!!}
{{ Form::label('payment_method', getphrase('payment_method')) }} * {{Form::select('payment_method', $payment_methods,null, [ 'placeholder' => getPhrase('select_payment_method'), 'class'=>'form-control', 'ng-model'=>'payment_method', 'id'=>'payment_method', 'required'=> 'true', 'ng-class'=>'{"has-error": userPay.payment_method.$touched && userPay.payment_method.$invalid}' ])}}
{!! getValidationMessage()!!}
{{ Form::label('expense_category_id', getphrase('expense_category')) }} * {{Form::select('expense_category_id', $expense_categories, null, ['class'=>'form-control', 'id'=>'expense_category_id', 'placeholder'=>getPhrase('select'), 'ng-model'=>'expense_category_id', 'required'=> 'true', 'ng-class'=>'{"has-error": userPay.expense_category_id.$touched && userPay.expense_category_id.$invalid}' ])}}
{!! getValidationMessage()!!}
{{ Form::label('comments', getphrase('comments')) }} {{ Form::textarea('comments', $value = null , $attributes = array('class'=>'form-control','rows'=>3, 'cols'=>'15', 'placeholder' => getPhrase('please_enter_your_comments'), )) }}
{!! Form::close() !!}
{{getPhrase('date')}} {{getPhrase('net_salary')}} {{getPhrase('paid_amount')}} {{getPhrase('action')}}
@stop @section('footer_scripts') @include('common.datatables', array('route'=>URL_GET_STAFF_SALARY_HISTORY.$record->id, 'route_as_url' => TRUE)) @include('common.deletescript', array('route'=>URL_STAFF_SALARY_RECORD )) @include('common.validations') @stop