@extends('hr_main') @section('title', '| '. $data['pageTitle'] ) @section('stylesheets') @endsection @section('content')
{!! $data['pageTitle'] !!}
{!! Form::open([ 'url' => route( 'salaryDeduction.update',['id' => $data['salaryDeductionInformation']->id] ), 'method'=>'POST']) !!} {{ csrf_field() }}
{!! Form::label('company_id', 'Company', ['class' => '']) !!} {!! Form::text('company_id', $data['salaryDeductionInformation']->employee->organization->company->name ?? '', ['class' => 'form-control','disabled']) !!}
{!! Form::label('project_id', 'Project', ['class' => '']) !!} {!! Form::text('project_id', $data['salaryDeductionInformation']->employee->organization->project->name ?? '', ['class' => 'form-control', 'disabled']) !!}
{!! Form::label('branch_id', 'Branch', ['class' => '']) !!} {!! Form::text('branch_id', $data['salaryDeductionInformation']->employee->organization->branch->name ?? '', ['class' => 'form-control', 'disabled']) !!}
{!! Form::label('employee_id', 'Employee', ['class' => '']) !!} {!! Form::text('employee_id', $data['salaryDeductionInformation']->employee->emp_id.' - '. $data['salaryDeductionInformation']->employee->emp_name_english ?? '', ['class' => 'form-control','autocomplete'=>'off','disabled']) !!}

{!! Form::label('total_amount', 'Amount', ['class' => '']) !!} {!! Form::text('total_amount', $data['salaryDeductionInformation']->total_amount ?? '', ['class' => 'form-control','autocomplete'=>'off']) !!} @if ($errors->has('total_amount')) {{ $errors->first('total_amount') }} @endif
{!! Form::label('installment_no', 'Installment No', ['class' => '']) !!} {!! Form::text('installment_no', $data['salaryDeductionInformation']->installment_no ?? '', ['class' => 'form-control','autocomplete'=>'off']) !!} @if ($errors->has('installment_no')) {{ $errors->first('installment_no') }} @endif
{!! Form::label('installment_amount', 'Installment Amount', ['class' => '']) !!} {!! Form::text('installment_amount', round( ($data['salaryDeductionInformation']->total_amount / $data['salaryDeductionInformation']->installment_no), 2), ['class' => 'form-control','autocomplete'=>'off','disabled']) !!}
{!! Form::label('reference_no', 'Reference No', ['class' => '']) !!} {!! Form::text('reference_no', $data['salaryDeductionInformation']->reference_no, ['class' => 'form-control','autocomplete'=>'off']) !!} @if ($errors->has('reference_no')) {{ $errors->first('reference_no') }} @endif
{!! Form::label('reference_issue_date', 'Refference Issue Date', ['class' => '']) !!} {!! Form::text('reference_issue_date', date('d-m-Y',strtotime($data['salaryDeductionInformation']->reference_issue_date)), ['class' => 'form-control datepicker','autocomplete'=>'off']) !!} @if ($errors->has('reference_issue_date')) {{ $errors->first('reference_issue_date') }} @endif
{!! Form::label('generate_date', 'Generate Date', ['class' => '']) !!} {!! Form::text('generate_date', date('d-m-Y',strtotime($data['salaryDeductionInformation']->generate_date)) ?? '', ['class' => 'form-control datepicker','autocomplete'=>'off']) !!} @if ($errors->has('generate_date')) {{ $errors->first('generate_date') }} @endif
{!! Form::label('effect_month_date', 'Effect Month', ['class' => '']) !!} {!! Form::text('effect_month_date', date('m-Y',strtotime($data['salaryDeductionInformation']->effect_month_date)) ?? '', ['class' => 'form-control datepicker','autocomplete'=>'off']) !!} @if ($errors->has('effect_month_date')) {{ $errors->first('effect_month_date') }} @endif
{!! Form::label('Reason', 'Reason', ['class' => '']) !!} {!! Form::textarea('reason', $data['salaryDeductionInformation']->reason ?? '', ['class' => 'form-control','autocomplete'=>'off','rows'=>'1']) !!} @if ($errors->has('reason')) {{ $errors->first('reason') }} @endif
{!! Form::button(" Save", ['type'=>'submit','name'=>'filter_form','class' => 'form-control btn btn-info','autocomplete'=>'off']) !!}
{!! Form::close() !!}
@endsection @section('footerAssets') @endsection