@extends('layouts.app') @section('style') @stop @section('content')
@if (count($errors) > 0)

Whoops! There were some problems with your input

@endif
  @lang('layout.CreateNewContractBasedPayroll')
{{Form::open(['route' => ['payroll.form.update','id'=>$payroll->id],'method' => 'PATCH'])}}
@{{ errors.first('employee') }}
@{{ errors.first('from_date') }} @lang('layout.To') @{{ errors.first('to_date') }}
{{Form::text('date',$payroll->date,['class' => 'form-control date','id'=>'date','autocomplete'=>'off'])}}
@{{homeCurrency.symbol}}
{{--@if(getCompanyTag() != 1)
@{{homeCurrency.hq_rate}}
@endif--}}
@if(getContractSalary()=="true") @else @endif
@if(systemConfig()[5] != 0 )
@endif @if(systemConfig()[21] != 0 )
@endif
@if(getContractSalary()=="true")
@endif @if(systemConfig()[20] == 1)
@endif
{!! Form::textarea('description', $payroll->description, array('placeholder' => __('layout.Description'),'class' => 'form-control','rows' => 1, 'cols' => 30)) !!}
@if(getContractSalary()=="true")
@lang('layout.Total')
@lang('layout.BasicSalary'):
@{{(selectedEmployee) ? format_number(Number(selectedEmployee.salary)) : null}} @{{(selectedEmployee)? selectedEmployee.currency: null }}
@lang('layout.PerDay'):
@{{(selectedEmployee) ? format_number(Number((handy_salary)?handy_salary/30:selectedEmployee.salary/30)) : null}} @{{(selectedEmployee)? selectedEmployee.currency: null }}
@lang('layout.Ratio'):
@{{myRound(getFinalAmountWithSalary().subTotal)}}
@lang('layout.AccordingToTheAmount'):
@{{myRound(getFinalAmountWithSalary().sum_amount)}}
@lang('menu.Overtime'):
@{{myRound(getFinalAmountWithSalary().overtime)}}
@lang('layout.NetPayable'):
@{{myRound(getFinalAmountWithSalary().total+overtime)}}
@endif
tax) v-model="tax"> @lang('layout.Tax')
{{--employee other charge--}}
@if(getContractSalary()=="true") @else @endif @if(systemConfig()[21] == 1) @endif @if(getCompanyTag() != 1) @endif @if(systemConfig()[21] == 1) @endif @if(getCompanyTag() != 1) @endif @if(systemConfig()[21] == 1) @endif
@lang('layout.EmployeeOtherCharge')
@lang('layout.EmployeeOtherCharge')
# @lang('layout.Item') @lang('layout.EmployeeTask') @lang('layout.Measure') @lang('layout.Currency') @lang('layout.Rate') @lang('layout.ExchangeRateHQ') @lang('layout.Times') @lang('layout.Amount') @lang('layout.AmountOfWork') @lang('layout.Total') @lang('layout.InventoryPart') @lang('layout.ItemType')
@{{index+1}} @{{ charge.itemTypePrice.measure }} @{{calculateTotal(charge.itemTypePrice.amount,charge.times,charge.currency.rate).total}}
{{--end of employee other charge--}} {{--company other charge--}}
@if(getCompanyTag() != 1) @endif @if(getCompanyTag() != 1) @endif
@lang('layout.CompanyOtherCharge')
# @lang('layout.PayrollType') @lang('layout.Measure') @lang('layout.Currency') @lang('layout.Rate') @lang('layout.ExchangeRateHQ') @lang('layout.Times') @lang('layout.Amount') @lang('layout.Total')
@{{index+1}} @{{ charge.itemTypePrice.measure }} @{{calculateTotal(charge.itemTypePrice.amount,charge.times,charge.currency.rate).total }}
{{--end of company other charge--}}
@lang('layout.Cancel')
{{Form::close()}}
@endsection @push('scripts') @endpush