@extends('layouts.app_main') @section('content')
@if (session('success'))
{{ session('success') }}
@endif
Leave Applications
Used   Left   Total
5 5 10





Pending Applications

@foreach($pending as $application) @endforeach
Application Date Leave Type Date Start Date End Cancel Application
{{$application->created_at}} {{$application->type}} {{$application->date_from}} {{$application->date_to}} Cancel


Application Status

@foreach($current as $application) @endforeach
Application Date Leave Type Date Start Date End Cancel Application Status
{{$application->created_at}} {{$application->type}} {{$application->date_from}} {{$application->date_to}} Cancel @if($application->status == 1) Review @elseif($application->status == 2) Approved @elseif($application->status == 3) Declined @else Canceled @endif
@endsection @section('javascript') $('.date').datepicker({ dateFormat: 'yy-mm-dd' }); $('.input-group-addon-calendar').on('click',function(){ $(".date", $(this).closest(".input-group")).focus(); }); @endsection