@extends('admin.layouts.form') @section('custom_page_style') @endsection @section('content')
Designation: {!! Auth::user()->employee->designation !!}
Department: {!! Auth::user()->employee->department !!}
Employee | Department | Leave type | Reason | From date | To date | Duration | Status | Submitted At | Option |
---|---|---|---|---|---|---|---|---|---|
{!! $result->user->name !!} | {!! $result->user->employee->department !!} | {!! $result->leave_type !!} | {!! $result->reason !!} | {!! $result->from_date !!} | {!! $result->to_date !!} | {!! $result->duration !!} | @if($result->status == 'Approved') {!! $result->status !!} @elseif($result->status == 'Rejected') {!! $result->status !!} @elseif($result->status == 'Pending') {!! $result->status !!} @endif | {!! $result->created_at->toDateString() !!} | {!! Form::select('leave_type', ['Approved'=>'Approved', 'Rejected'=>'Rejected'], $result->status, ['class'=>'form-control selectpicker', 'required'=>'true', 'v-model'=>'selectedStatus', '@change'=>'on_update_status('.$result->id.')','placeholder'=>'--Please Select--']) !!} |
Employee | Department | Leave type | Reason | From date | To date | Duration | Status | Submitted At | Option |
---|---|---|---|---|---|---|---|---|---|
{!! $result->user->name !!} | {!! $result->user->employee->department !!} | {!! $result->leave_type !!} | {!! $result->reason !!} | {!! $result->from_date !!} | {!! $result->to_date !!} | {!! $result->duration !!} | @if($result->status == 'Approved') {!! $result->status !!} @elseif($result->status == 'Rejected') {!! $result->status !!} @elseif($result->status == 'Pending') {!! $result->status !!} @endif | {!! $result->created_at->toDateString() !!} | {!! Form::select('leave_type', ['Approved'=>'Approved', 'Rejected'=>'Rejected'], $result->status, ['class'=>'form-control selectpicker', 'required'=>'true', 'v-model'=>'selectedStatus', '@change'=>'on_update_status('.$result->id.')','placeholder'=>'--Please Select--']) !!} |
Name | Designation | Department |
---|
Type | Opening | Avail | Balance |
---|---|---|---|
Casual Leave | {!! $leave_details['casual_leave']['opening'] !!} | {!! $leave_details['casual_leave']['applied'] !!} | {!! $leave_details['casual_leave']['balance'] !!} |
Sick Leave | {!! $leave_details['sick_leave']['opening'] !!} | {!! $leave_details['sick_leave']['applied'] !!} | {!! $leave_details['sick_leave']['balance'] !!} |
Earned Leave | {!! $leave_details['earned_leave']['opening'] !!} | {!! $leave_details['earned_leave']['applied'] !!} | {!! $leave_details['earned_leave']['balance'] !!} |
Paternal Leave for 1st Child | {!! $leave_details['paternal_leave_for_first_child']['opening'] !!} | {!! $leave_details['paternal_leave_for_first_child']['applied'] !!} | {!! $leave_details['paternal_leave_for_first_child']['balance'] !!} |
Paternal Leave for 2nd Child | {!! $leave_details['paternal_leave_for_second_child']['opening'] !!} | {!! $leave_details['paternal_leave_for_second_child']['applied'] !!} | {!! $leave_details['paternal_leave_for_second_child']['balance'] !!} |
Maternity Leave for 1st Child | {!! $leave_details['maternity_leave_for_first_child']['opening'] !!} | {!! $leave_details['maternity_leave_for_first_child']['applied'] !!} | {!! $leave_details['maternity_leave_for_first_child']['balance'] !!} |
Maternity Leave for 2nd Child | {!! $leave_details['maternity_leave_for_second_child']['opening'] !!} | {!! $leave_details['maternity_leave_for_second_child']['applied'] !!} | {!! $leave_details['maternity_leave_for_second_child']['balance'] !!} |
Work From Home | {!! $leave_details['applied_work_from_home']['opening'] !!} | {!! $leave_details['applied_work_from_home']['applied'] !!} | {!! $leave_details['applied_work_from_home']['balance'] !!} |
Non Paid Leave | {!! $leave_details['applied_non_paid_leave']['opening'] !!} | {!! $leave_details['applied_non_paid_leave']['applied'] !!} | {!! $leave_details['applied_non_paid_leave']['balance'] !!} |