@extends('layouts.master') @section('title'){{trans_choice('general.add',1)}} {{trans_choice('general.payroll',1)}} @endsection @section('content')

{{trans_choice('general.add',1)}} {{trans_choice('general.payroll',1)}}

{!! Form::open(array('url' => url('payroll/'.$payroll->id.'/update'), 'method' => 'post', 'name' => 'form',"enctype"=>"multipart/form-data")) !!}
{!! Form::label('branch_id',trans_choice('general.branch',1),array('class'=>' control-label')) !!} {!! Form::select('branch_id',$branches,$payroll->branch_id, array('class' => 'form-control select2','placeholder'=>'','required'=>'required','id'=>'contribution_batch_id')) !!}
{!! Form::label('user_id',trans_choice('general.staff',1),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
{{trans_choice('general.employee',1)}} {{trans_choice('general.name',1)}}
{!! Form::text('employee_name',$payroll->employee_name, array('class' => 'form-control', 'id'=>"employee_name",'required'=>"required")) !!}
{{$key->name}}
@foreach($top_right as $key) @endforeach
{{trans_choice('general.payroll',1)}} {{trans_choice('general.date',1)}}
{!! Form::text('date',$payroll->date, array('class' => 'form-control date-picker', 'required'=>"required")) !!}
{{trans_choice('general.business',1)}} {{trans_choice('general.name',1)}}
{!! Form::text('business_name',$payroll->business_name, array('class' => 'form-control', 'id'=>"business_name",'required'=>"required")) !!}
{{$key->name}}
{{trans_choice('general.description',1)}} {{trans_choice('general.amount',1)}}
{{trans_choice('general.description',1)}} {{trans_choice('general.amount',1)}}
{{trans_choice('general.total',1)}} {{trans_choice('general.pay',1)}}
{!! Form::text('total_pay',\App\Helpers\GeneralHelper::single_payroll_total_pay($payroll->id), array('class' => 'form-control', 'readonly'=>"",'id'=>'total_pay')) !!}
{{trans_choice('general.total',1)}} {{trans_choice('general.deduction',2)}}
{!! Form::text('total_deductions',\App\Helpers\GeneralHelper::single_payroll_total_deductions($payroll->id), array('class' => 'form-control', 'readonly'=>"",'id'=>'total_deductions')) !!}

{{trans_choice('general.net',1)}} {{trans_choice('general.pay',1)}}
{!! 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')) !!}
{{trans_choice('general.net_pay_distribution',1)}}
{{trans_choice('general.payment',1)}} {{trans_choice('general.method',1)}}
{{trans_choice('general.bank',1)}} {{trans_choice('general.name',1)}}
{{trans_choice('general.account',1)}} {{trans_choice('general.number',1)}}
{{trans_choice('general.description',1)}}
{{trans_choice('general.paid',1)}} {{trans_choice('general.amount',1)}}
{!! 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")) !!}
{{trans_choice('general.comment',2)}}
{!! Form::textarea('comments',$payroll->comments, array('class' => 'form-control', ''=>"")) !!}
{!! Form::label('Recurring',null,array('class'=>'active')) !!} {!! Form::select('recurring', array('1'=>trans_choice('general.yes',1),'0'=>trans_choice('general.no',1)),$payroll->recurring, array('class' => 'form-control','id'=>'recurring')) !!}
{!! Form::label(trans_choice('general.recur_frequency',1),null,array('class'=>'')) !!} {!! Form::number('recur_frequency',$payroll->recur_frequency, array('class' => 'form-control','id'=>'recurF')) !!}
{!! Form::label(trans_choice('general.recur_type',1),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(trans_choice('general.recur_starts',1),null,array('class'=>'')) !!} {!! Form::text('recur_start_date',$payroll->recur_start_date, array('class' => 'form-control date-picker','id'=>'recur_start_date')) !!}
{!! Form::label(trans_choice('general.recur_ends',1),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