@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/payroll-summary', 'class' => 'form-horizontal', 'id'=>'form1']) !!}
Select Consultant {!! Form::select('customer_id', $employees, null, ['class' => 'selectpicker', 'required' => 'required', 'onchange'=>'formSubmit();','data-live-search'=>'true' , 'style'=>'width: 100%;']) !!} {{ $errors->first('year') }}
Select Year {!! Form::selectYear('year', date('Y') - 6, date('Y')+2, date('Y'), ['class' => 'selectpicker', 'required' =>'required', 'data-live-search'=>'true', 'onchange'=>'formSubmit();', 'style'=>'width: 100%;']) !!} {{ $errors->first('year') }}
{!! Form::close() !!}
@php $months = config('custom_config.months_names'); @endphp @php $gregtotal = 0; $extotal = 0; $actpaytotal = 0; $extpaytotal = 0; $gndtotal = 0; $paidtotal = 0; @endphp @foreach ($list as $li) @endforeach @if(count($list) > 0) @else @endif
Month Regular Hrs Extra Hrs Pay Rate Actual Pay Extra Pay Total Pay Paid Remarks
{{ config('custom_config.months_names')[$li->month] }} @php $gregtotal = $gregtotal + $li->regular; @endphp {{ $li->regular }} @php $extotal = $extotal + $li->ot; @endphp {{ $li->ot }} 50, 40 @php $stotal = 0; echo $totalreg = findPayrateAmount($li->regular, $li['payrates'], $wtotal=0); $actpaytotal = $actpaytotal + $totalreg; @endphp @php $stotal = 0; echo $totalot = findPayrateAmount($li->ot, $li['payrates'], $wtotal=0); $extpaytotal = $extpaytotal + $totalot; @endphp @php $gtotal = $totalreg + $totalot; $gndtotal = $gndtotal + $gtotal; @endphp {{ $gtotal }} @php $paidtotal = $paidtotal + 1000; @endphp @money(1000, 'USD', true)
Totals {{ $gregtotal }} {{ $extotal }} NULL @money($actpaytotal, 'USD', true) @money($extpaytotal, 'USD', true) @money($gndtotal, 'USD', true) @money($paidtotal, 'USD', true)
No Data
@endsection