@extends('layouts.default') @section('header-links') @include('accounts.reports.management.selector') @endsection @section('title', isset($title)?$title:'') @section('content')
Vendor | Consultant | Previous Hours | @foreach($weekDates as $day){{ date('M-d', strtotime($day['start'])).'-'.date('M-d', strtotime($day['end'])) }} | @endforeachTotal | Payrate | Amount | Updated Payrates |
---|---|---|---|---|---|---|---|
{!! str_limit($li['parent'], 15) !!} | {!! str_limit($li['name'], 15) !!} | {{ number_format($li['prev_hours']) }} | @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{{ ($nt!=0)?$ny:'' }} | @endfor @php $pttotal = $li['prev_total'] + $total; @endphp{{ $total }} | {{ 0 }} | @php if($li['payrate']) { $stotal = 0; echo findPayrateAmount($pttotal, $li['payrate'], $wtotal=0); } @endphp | 0 |
Totals | 0 | @for ($i = 1; $i <= count($weekDates); $i++) @php $wname = 'week'.$i; @endphp{{ number_format(array_sum($$wname)) }} | @endfor{{ number_format(array_sum($ttotal)) }} | {{ number_format(array_sum($ptotal)) }} | {{ number_format(array_sum($gtotal)) }} | {{ number_format(0) }} |