@extends('admin.layouts.form') @section('content')
@if(session('success'))
{{ session('success') }}
@endif

list   Update leave application

My all leave
{!! Form::model($leave, ['url'=>URL::to('module/leave',$leave->id),'class'=>'form','files'=>'true','method'=>'patch']) !!}

Leave Application Form

time_to_leave {!! Form::select('leave_type',$leave_types,null,['class'=>'form-control selectpicker', 'required'=>'true']) !!}
calendar_month
{!! Form::text('from_date',null,['class'=>'form-control datepicker', 'id'=>'from_date', 'placeholder'=>'From date..', 'required'=>'required']) !!}
calendar_month
{!! Form::text('to_date',null,['class'=>'form-control datepicker', 'id'=>'to_date', 'placeholder'=>'To date..', 'required'=>'required']) !!}
short_text
{!! Form::textarea('reason',null,['class'=>'form-control', 'rows'=>'2', 'required'=>'required']) !!}

My Leave balance

@if(auth()->user()->employee->gender == 'Male') @else @endif
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'] !!}
{!! Form::close() !!}
@endsection @section('custom_page_script') @endsection