@extends('hr_main') @section('title', '| '.$d__a->pageTitle ) @section('content')

{!! $d__a->pageTitle !!}

@foreach ($d__a->leaveSettings as $leaveSetting) @endforeach
SL# Group Company Project Earn Leave Details Lpr Leave Details Created Action
{{ ++$loop->index }} {{ $d__a->gnrGroup->where('id', $leaveSetting->group_id_fk)->first()->name ?? '' }} {{ $d__a->gnrCompany->where('id', $leaveSetting->company_id_fk)->first()->name ?? '' }} {{ $d__a->gnrProject->where('id', $leaveSetting->project_id_fk)->first()->name ?? '' }} @if($leaveSetting->earnLeave) Day Count : {{ $leaveSetting->earnLeave->day_count_per_month }} days
Highest Limit : {{ $leaveSetting->earnLeave->highest_limit_in_days }} days
After Active : {{ $leaveSetting->earnLeave->after_active_in_month }} months
Cash Set : {{ $leaveSetting->earnLeave->cash_set_in_month }} months
Effect Month : {{ $leaveSetting->earnLeave->effect_month_option }} @endif
Active Job Age : {{ $leaveSetting->lprLeave->active_job_age_in_year }} Years
Duration : {{ $leaveSetting->lprLeave->duration_in_month }} month
Facilities : @php $beniftsIdContainer = json_decode($leaveSetting->lprLeave->settings_benefit_type_id_fk); $benifits = $d__a->benefiType->whereIn('id',$beniftsIdContainer)->get(); // dd($benifts); $counter = 0; foreach($benifits as $benifit){ $counter++; echo $benifit->name; if($benifits->count() == $counter){ continue; } echo ", "; } @endphp
Adjustments : {{ $leaveSetting->lprLeave->adjustment_in_percent }} %
{{ date('d-m-Y',strtotime($leaveSetting->created_at)) }} {!! Form::open([ 'method' => 'DELETE', 'url' => url('hr/leaveSettings/delete/'.$leaveSetting->id), 'style'=>'display: inline-block;', 'onsubmit' => 'return confirmDelete()']) !!} {!! Form::close() !!}
@endsection @section('footerAssets') {{-- For Time Picker --}} @endsection