@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/store'), '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,null, 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,null, 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',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
{{trans_choice('general.payroll',1)}} {{trans_choice('general.date',1)}}
{!! Form::text('date',date("Y-m-d"), array('class' => 'form-control date-picker', 'required'=>"required")) !!}
{{trans_choice('general.business',1)}} {{trans_choice('general.name',1)}}
{!! 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'=>"")) !!}
{{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',null, array('class' => 'form-control', 'readonly'=>"",'id'=>'total_pay')) !!}
{{trans_choice('general.total',1)}} {{trans_choice('general.deduction',2)}}
{!! Form::text('total_deductions',null, array('class' => 'form-control', 'readonly'=>"",'id'=>'total_deductions')) !!}

{{trans_choice('general.net',1)}} {{trans_choice('general.pay',1)}}
{!! Form::text('net_pay',null, 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',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")) !!}
{{trans_choice('general.comment',2)}}
{!! Form::textarea('comments',null, 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)),0, array('class' => 'form-control','id'=>'recurring')) !!}
{!! Form::label(trans_choice('general.recur_frequency',1),null,array('class'=>'')) !!} {!! Form::number('recur_frequency',1, 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)'),'month', array('class' => 'form-control','id'=>'recurT')) !!}
{!! Form::label(trans_choice('general.recur_starts',1),null,array('class'=>'')) !!} {!! Form::text('recur_start_date',date("Y-m-d"), 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',null, array('class' => 'form-control date-picker','id'=>'recur_end_date')) !!}
{!! Form::close() !!}
@endsection @section('footer-scripts') @endsection