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

{{trans_choice('general.edit',1)}} {{trans_choice('general.payroll',1)}} {{trans_choice('general.template',1)}}

{!! Form::open(array('url' => url('payroll/template/'.$id.'/update'), 'method' => 'post', 'class' => 'form-horizontal')) !!}

You can edit the template by changing the fields and adding or deleting rows.

@foreach($top_left as $key)
{!! Form::text($key->id,$key->name, array('class' => 'form-control', 'placeholder'=>"",'required'=>'required')) !!}
@if($key->is_default==0) @endif
@endforeach
@foreach($top_right as $key)
{!! Form::text($key->id,$key->name, array('class' => 'form-control', 'placeholder'=>"",'required'=>'required')) !!}
@if($key->is_default==0) @endif
@endforeach

{{trans_choice('general.addition',2)}}

@foreach($bottom_left as $key)
{!! Form::text($key->id,$key->name, array('class' => 'form-control', 'placeholder'=>"",'required'=>'required')) !!}
@if($key->is_default==0) @endif
@endforeach

{{trans_choice('general.deduction',2)}}

@foreach($bottom_right as $key)
{!! Form::text($key->id,$key->name, array('class' => 'form-control', 'placeholder'=>"",'required'=>'required')) !!}
@if($key->is_default==0) @endif
@endforeach
{!! Form::close() !!}
@endsection @section('footer-scripts') @endsection