Leave Rules

@if(count($leaveRules) > 0) @foreach($leaveRules as $key => $leaveRule) @endforeach @endif
{{trans('common/common.id')}} Rule Name Allocation Type Allocation Value Allocation Leave Max Leave Joining Peroid status Created By Created Date and Time
{{ $loop->iteration }} {{ $leaveRule->rule_name ? $leaveRule->rule_name : '' }} {{ $leaveRule->allocation_type ? ucfirst($leaveRule->allocation_type) : '' }} {{ $leaveRule->allocation_value ? $leaveRule->allocation_value : '' }} {{ $leaveRule->allocation_leave ? $leaveRule->allocation_leave : '' }} {{ $leaveRule->max_leave_in_month ? $leaveRule->max_leave_in_month : '' }} {{ $leaveRule->joining_period_days ? $leaveRule->joining_period_days : '' }} {{ $leaveRule->status ? ucfirst($leaveRule->status) : '' }} @if($leaveRule->created_by_type == 'employee') {{ isset($leaveRule->createdByEmployee->name) ? $leaveRule->createdByEmployee->name : '' }} @else {{ isset($leaveRule->createdBy->name) ? $leaveRule->createdBy->name : '' }} @endif {{ $leaveRule->created_at ? date('d/m/Y H:i:s', strtotime($leaveRule->created_at)) : '' }}