@extends('hr_main') @section('title', '| ' . $data['pageTitle']) @section('stylesheets') @endsection @section('content')
{!! $data['pageTitle'] !!}
@php $searchElements = [ ['element' => 'project', 'col' => 2, 'attributes' => ['print_order' => '1']], ['element' => 'branchId', 'col' => 2, 'name' => 'branchId', 'attributes' => ['print_order' => '1']], ['element' => 'custom', 'type' => 'text', 'name' => 'employeeId', 'label' => 'Employee ID', 'id' => 'employeeId'] ]; @endphp @include('partials.searchPanel.main', [ 'searchElements' => $searchElements, 'buttonLevel' => 'Search', ]) {{-- @foreach ($data['salaryDeductionInformations'] as $salaryDeductionInfo) @endforeach --}}
SL# Employee Company Project Branch Total Amount Effect Month Status Action
{{ ++$loop->index }} {{ $salaryDeductionInfo->employee->emp_id ?? '' }} - {{ $salaryDeductionInfo->employee->emp_name_english ?? '' }} {{ $salaryDeductionInfo->employee->organization->company->name ?? '' }} {{ $salaryDeductionInfo->employee->organization->project->name ?? '' }} {{ $salaryDeductionInfo->employee->organization->branch->name ?? '' }} {{ $salaryDeductionInfo->total_amount ?? '' }} {{ date('M Y',strtotime($salaryDeductionInfo->effect_month_date))}} @if ($salaryDeductionInfo->totalCollection() > 0 && $salaryDeductionInfo->totalCollection() < $salaryDeductionInfo->total_amount) Running @elseif($salaryDeductionInfo->totalCollection() >= $salaryDeductionInfo->total_amount ) Paid @else Unpaid @endif isSalaryApprovedForThisDeductionInfo()) disabled @endif class="btn btn-xs btn-info "> {!! Form::open(['method' => 'post', 'url' => route('salaryDeduction.destroy',[ 'id' => $salaryDeductionInfo->id]), "onsubmit" => "return confirmDelete()",'style'=>'display: inline-block;']) !!} {!! Form::close() !!}
@endsection @section('footerAssets') @endsection