@extends('layouts.default') @section('header-links') @include('accounts.reports.management.selector') @endsection @section('title', isset($title)?$title:'') @section('content')
{!! Form::open(['method' => 'POST', 'url' => '/reports/management/consultant-monthly-hours', '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() !!}
@php $months = config('custom_config.months_names'); @endphp @foreach($weekDates as $day) @endforeach @php $week1 = []; $week2 = []; $week3 = []; $week4 = []; $week5 = []; $week6 = []; $gtotal = []; $ttotal = []; $ptotal = []; @endphp @foreach ($list as $li) @php $total = 0; @endphp @for ($j = 1; $j <= count($weekDates); $j++) @php if($li['week'.$j]) { $nt = $li[$j]; $total = $total + $li[$j]; } else { $nt = 0; } $week = 'week'.$j; array_push($$week, $total); @endphp @endfor @php $pttotal = $li['prev_total'] + $total; @endphp @php array_push($ptotal, 0); array_push($ttotal, $total); array_push($gtotal, $total * 10); $total = 0; @endphp @endforeach @for ($i = 1; $i <= count($weekDates); $i++) @php $wname = 'week'.$i; @endphp @endfor
Vendor Consultant Previous Hours{{ date('M-d', strtotime($day['start'])).'-'.date('M-d', strtotime($day['end'])) }}Total Payrate Amount Updated Payrates
{!! str_limit($li['parent'], 15) !!} {!! str_limit($li['name'], 15) !!} {{ number_format($li['prev_hours']) }}{{ ($nt!=0)?$ny:'' }}{{ $total }} {{ 0 }} @php if($li['payrate']) { $stotal = 0; echo findPayrateAmount($pttotal, $li['payrate'], $wtotal=0); } @endphp 0
Totals 0{{ number_format(array_sum($$wname)) }}{{ number_format(array_sum($ttotal)) }} {{ number_format(array_sum($ptotal)) }} {{ number_format(array_sum($gtotal)) }} {{ number_format(0) }}
@endsection