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

{{translate('net pay')}}
{!! Form::text('net_pay',null, 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',null, array('class' => 'form-control', 'required'=>"")) !!}
{!! Form::text('bank_name',null, array('class' => 'form-control', ''=>"")) !!}
{!! Form::text('account_number',null, array('class' => 'form-control', ''=>"")) !!}
{!! Form::text('description',null, array('class' => 'form-control', ''=>"")) !!}
{!! Form::text('paid_amount',null, array('class' => 'form-control', 'id'=>"paid_amount")) !!}
{{translate('comment')}}
{!! Form::textarea('comments',null, array('class' => 'form-control', ''=>"")) !!}
{!! Form::label('Recurring',null,array('class'=>'active')) !!} {!! Form::select('recurring', array('1'=>translate('yes'),'0'=>translate('no')),0, array('class' => 'form-control','id'=>'recurring')) !!}
{!! Form::label(translate('recur_frequency'),null,array('class'=>'')) !!} {!! Form::number('recur_frequency',1, 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)'),'month', array('class' => 'form-control','id'=>'recurT')) !!}
{!! Form::label(translate('recur_starts'),null,array('class'=>'')) !!} {!! Form::text('recur_start_date',date("Y-m-d"), array('class' => 'form-control date-picker','id'=>'recur_start_date')) !!}
{!! Form::label(translate('recur_ends'),null,array('class'=>'')) !!} {!! Form::text('recur_end_date',null, array('class' => 'form-control date-picker','id'=>'recur_end_date')) !!}
{!! Form::close() !!}
@endsection @section('footer-scripts') @endsection