@extends('layouts.default') @section('title', isset($title)?$title:'') @section('content')
{!! Form::open(['method' => 'POST', 'url' => '/payrole/runpayrole/run_payrole', 'class' => 'form-horizontal', 'id'=>'form1']) !!}
Select Month {!! Form::selectMonth('month', date('m'), ['class' => 'selectpicker', 'required' => 'required', 'onchange'=>'formSubmit();', 'style'=>'width: 100%;']) !!} {{ $errors->first('year') }}
Select Year {!! Form::selectYear('year', date('Y') - 6, date('Y')+2, date('Y'), ['class' => 'selectpicker', 'required' => 'required', 'onchange'=>'formSubmit();', 'style'=>'width: 100%;']) !!} {{ $errors->first('year') }}
{!! Form::close() !!}
{{Form::open(['url'=>'payrole/runpayrole','role'=>'form', 'autocomplete'=>'off', 'style'=>'width: 100%;'])}} {{ Form::hidden('month', null, ['id'=>'monthValue']) }} {{ Form::hidden('year', null, ['id'=>'yearValue']) }} @foreach($weekDates as $day) @endforeach @foreach ($list as $li) @php $gtotal = []; $ttotal = []; $ptotal = []; $total = 0; @endphp @for ($j = 1; $j <= count($weekDates); $j++) @php $name='week' .$j.'[]'; @endphp @if($li['week'.$j]) @php $total = $total + $li[$j]; @endphp @else @php $total = $total; @endphp @endif @endfor @endforeach
Vendor Consultant Previous Hours{{ date('M-d', strtotime($day['start'])).'-'.date('M-d', strtotime($day['end'])) }}Total Payrate Amount Updated Payrates Remarks
{!! str_limit($li['parent'], 15) !!} {!! str_limit($li['name'], 15) !!} {{ Form::textGroup1('prev_hrs[]', ' ') }}{{ Form::textGroup1($name, ' ', null, [], $li[$j]) }}{{ Form::textGroup1($name, ' ') }}{{ Form::textGroup1('total[]', ' ', null, [], $total) }} {{ Form::textGroup1('payrate[]', ' ') }} {{ Form::textGroup1('amount[]', ' ') }} {{ Form::textGroup1('updated[]', ' ') }} {{ Form::textGroup1('notes[]', ' ') }}
Cancel
{{ Form::close() }}
@endsection