@extends('admin.app_main') @section('content')
@if (session('success'))
{{ session('success') }}
@endif
Application Detail
Application Date Leave Type Date Start Date End Status
{{$application->created_at}} {{$application->type}} {{$application->date_from}} {{$application->date_to}} @if($application->status == 1) Accepted @elseif($application->status == 2) Approved @elseif($application->status == 3) Declined @else Canceled @endif

Reason:

{!! nl2br($application->reason) !!}


@if($application->url == "") NO DOCUMENT UPLOADED @else Uploaded Documents @endif
 
 
@if($application->status > 1) @if($application->status == 0) Accept Review @else Approve @endif    Decline @else Aplication @if($application->status == 2) Approved @elseif($application->status == 3) Declined @else Canceled @endif @endif
@endsection @section('javascript') $('.date').datepicker({ dateFormat: 'yy-mm-dd' }); $('.input-group-addon-calendar').on('click',function(){ $(".date", $(this).closest(".input-group")).focus(); }); @endsection