@extends('layouts.app_main') @section('content')
Leave Form
Used   Left   Total
5 5 10


{{ csrf_field() }}
@if ($errors->has('type')) {{ $errors->first('type') }} @endif
@if ($errors->has('date_from')) {{ $errors->first('date_from') }} @endif
@if ($errors->has('date_to')) {{ $errors->first('date_to') }} @endif
@if ($errors->has('file')) {{ $errors->first('file') }} @endif
@if ($errors->has('reason')) {{ $errors->first('reason') }} @endif
@endsection @section('javascript') $('.date').datepicker({ format: 'yyyy-mm-dd', zIndexOffset: '1001', }); $('.input-group-addon-calendar').on('click',function(){ $(".date", $(this).closest(".input-group")).focus(); }); @endsection