@extends('hr_main') @section('title', '| '. $data['pageTitle'] ) @section('stylesheets') @endsection @section('content')
{!! $data['pageTitle'] !!}
{{-- Applicant Info --}}
@include('hr.hrLeaveApplication_v2._leaveApplicantInfo', [ 'applicantInfo' => $data['applicantInfo'] ])
{{-- ./col-md-12 --}}
{{-- ./row --}}
{{-- Leave Status --}}
@include('hr.hrLeaveApplication_v2._leaveStatusInfo', [ 'leaveStatusList' => $data['leaveStatusList'], 'fiscalYear'=> $fiscalYear ])
{{-- ./col-md-12 --}}
{{-- ./row --}}
{{-- Responsible Employee Info --}}
@include('hr.hrLeaveApplication_v2._responsibleEmployeeInfo', [ 'info' => $data['responsibleEmployeeInfo'] ])
{{-- ./col-md-12 --}}
{{-- ./row --}}
{{-- Leave Range --}}
@if($leaveApplication->status!= 'Approved' && $leaveApplication->status != 'Rejected') @endif @if($leaveApplication->applicationDetails->count() > 0 ) @foreach ($leaveApplication->applicationDetails as $applicationDetails) @if($leaveApplication->status!= 'Approved' && $leaveApplication->status != 'Rejected') {!! Form::open(array('role' => 'form', 'files'=>'false', 'class'=>'form-horizontal form-groups')) !!} {!! Form::close() !!} @else @endif @endforeach @else @endif
{!! $data['attributesDetails']['leave_type_id'] !!} {!! $data['attributesDetails']['from_date'] !!} {!! $data['attributesDetails']['to_date'] !!} Total Day(s)Action
{{ $applicationDetails->leaveType->name }} {!! Form::hidden('leave_type_id', $applicationDetails->leave_type_id, ['class' => 'form-control leaveType', 'id' => 'leave_type_id']) !!} {!! Form::hidden('leave_details_id', $applicationDetails->id, ['class' => 'form-control leaveDetails', 'id' => 'leave_details_id']) !!} {!! Form::text('from_date', date('d-m-Y',strtotime($applicationDetails->from_date)), ['class' => 'form-control datepicker fromDate', 'id' => 'from_date']) !!} {!! Form::text('to_date[]', date('d-m-Y',strtotime($applicationDetails->to_date)), ['class' => 'form-control datepicker toDate', 'id' => 'to_date']) !!} @php $datetime1 = new DateTime($applicationDetails->from_date); $datetime2 = new DateTime($applicationDetails->to_date); $interval = $datetime1->diff($datetime2); $totalDays = $interval->format('%a'); $totalDays = $totalDays + 1; @endphp {{ $totalDays}}
{{ $applicationDetails->leaveType->name }} {{ date('d-m-Y',strtotime($applicationDetails->from_date)) }} {{ date('d-m-Y',strtotime($applicationDetails->to_date)) }} @php $datetime1 = new DateTime($applicationDetails->from_date); $datetime2 = new DateTime($applicationDetails->to_date); $interval = $datetime1->diff($datetime2); $totalDays = $interval->format('%a'); $totalDays = $totalDays + 1; @endphp {{ $totalDays}}
No data found
{{-- Leave Details --}} @if(!empty($leaveApplication->details))

{{ $leaveApplication->details }}

@endif
{{-- Reported Boss info histories --}} @include('hr.partials._reportedBossInfoHistories', [ 'model' => $leaveApplication, 'reportingBossHistories' => $reportingBossHistories, ]) {{-- Reporting Boss action comment box and action button --}} @include('hr.partials._reportingBossCommentAndActionBtn', [ 'model' => $leaveApplication, 'reportingBossSettings' => $reportingBossSettings, 'authUser' => $authUser, 'function' => $function, 'employeeDepartment' => $employeeDepartment, 'employeeBranch' => $employeeBranch, 'rejectUrl' => 'hr/hrLeaveApplication/reject', 'proceedUrl' => 'hr/hrLeaveApplication/processing', 'approveUrl' => 'hr/hrLeaveApplication/approve', 'approveButtonClass' => 'btn btn-sm btn-secondary js-append-comment', ])
{{-- ./panel-body --}}
{{-- ./col-md-12 --}}
{{-- ./row --}}
{{-- ./panel-body --}}
{{-- ./panel --}}
{{-- ./fullBody --}}
{{-- ./row --}} @endsection @section('footerAssets')