@extends('layouts.master') @section('title'){{translate('add payroll')}} @endsection @section('content')
{{translate('add payroll')}}
{!! Form::open(array('url' => url('payroll/'.$payroll->id.'/update'), 'method' => 'post', 'name' => 'form',"enctype"=>"multipart/form-data")) !!}
{!! Form::label('user_id',translate('staff'),array('class'=>'')) !!} {!! Form::select('user_id',$user,$payroll->user_id, array('class' => 'form-control select2','id'=>'user_id','placeholder'=>'Select')) !!}
@foreach($top_left as $key) @endforeach
{{translate('employee name')}}
{!! Form::text('employee_name',$payroll->employee_name, array('class' => 'form-control', 'id'=>"employee_name",'required'=>"required")) !!}
{{$key->name}}
@foreach($top_right as $key) @endforeach
{{translate('payroll date')}}
{!! Form::text('date',$payroll->date, array('class' => 'form-control date-picker', 'required'=>"required")) !!}
{{translate('business name')}}
{!! Form::text('business_name',$payroll->business_name, array('class' => 'form-control', 'id'=>"business_name",'required'=>"required")) !!}
{{$key->name}}
{{translate('description')}} {{translate('amount')}}
{{translate('description')}} {{translate('amount')}}
{{translate('total pay')}}
{!! Form::text('total_pay',\App\Helpers\GeneralHelper::single_payroll_total_pay($payroll->id), array('class' => 'form-control', 'readonly'=>"",'id'=>'total_pay')) !!}
{{translate('total deduction')}}
{!! Form::text('total_deductions',\App\Helpers\GeneralHelper::single_payroll_total_deductions($payroll->id), array('class' => 'form-control', 'readonly'=>"",'id'=>'total_deductions')) !!}

{{translate('net pay')}}
{!! Form::text('net_pay',(\App\Helpers\GeneralHelper::single_payroll_total_pay($payroll->id)-\App\Helpers\GeneralHelper::single_payroll_total_deductions($payroll->id)), array('class' => 'form-control', 'readonly'=>"",'id'=>'net_pay')) !!}
{{translate('net_pay_distribution')}}
{{translate('payment method')}}
{{translate('bank name')}}
{{translate('account number')}}
{{translate('description')}}
{{translate('paid amount')}}
{!! Form::text('payment_method',$payroll->payment_method, array('class' => 'form-control', 'required'=>"")) !!}
{!! Form::text('bank_name',$payroll->bank_name, array('class' => 'form-control', ''=>"")) !!}
{!! Form::text('account_number',$payroll->account_number, array('class' => 'form-control', ''=>"")) !!}
{!! Form::text('description',$payroll->description, array('class' => 'form-control', ''=>"")) !!}
{!! Form::text('paid_amount',$payroll->paid_amount, array('class' => 'form-control', 'id'=>"paid_amount")) !!}
{{translate('comment')}}
{!! Form::textarea('comments',$payroll->comments, array('class' => 'form-control', ''=>"")) !!}
{!! Form::label('Recurring',null,array('class'=>'active')) !!} {!! Form::select('recurring', array('1'=>translate('yes'),'0'=>translate('no')),$payroll->recurring, array('class' => 'form-control','id'=>'recurring')) !!}
{!! Form::label(translate('recur_frequency'),null,array('class'=>'')) !!} {!! Form::number('recur_frequency',$payroll->recur_frequency, array('class' => 'form-control','id'=>'recurF')) !!}
{!! Form::label(translate('recur_type'),null,array('class'=>'active')) !!} {!! Form::select('recur_type', array('day'=>'Day(s)','week'=>'Week(s)','month'=>'Month(s)','year'=>'Year(s)'),$payroll->recur_type, array('class' => 'form-control','id'=>'recurT')) !!}
{!! Form::label(translate('recur_starts'),null,array('class'=>'')) !!} {!! Form::text('recur_start_date',$payroll->recur_start_date, array('class' => 'form-control date-picker','id'=>'recur_start_date')) !!}
{!! Form::label(translate('recur_ends'),null,array('class'=>'')) !!} {!! Form::text('recur_end_date',$payroll->recur_end_date, array('class' => 'form-control date-picker','id'=>'recur_end_date')) !!}
{!! Form::close() !!}
@endsection @section('footer-scripts') @endsection