Skip to main content

Posts

Showing posts from September, 2021

Date Range picker with disable old dates

 CND Links <!--   <script src="https://unpkg.com/gijgo@1.9.13/js/gijgo.min.js" type="text/javascript"></script>  <link href="https://unpkg.com/gijgo@1.9.13/css/gijgo.min.css" rel="stylesheet" type="text/css" /> --> HTML <div class="row">                                   <div class="col-lg-6">                                     <div class="form-group">                                         <label for="">Date From</label>                                         <input id="startDate" />               ...

Manage multiple Holidayes in sheet

  Code:  $Govt_Holidays = Holiday::whereMonth('start_date',$request->month)->get();          foreach ($current_month_dates as $index => $date) {             $ThatDaydate = $date;           $set_attendance_for_day=false;           $attendance_for_day = 'NH';         foreach ($Govt_Holidays as $key => $govt_holiday) {                               if($govt_holiday->end_date!=null||$govt_holiday->end_date!=''){                     $begin = $govt_holiday->start_date;                     $end   = $govt_holiday->end_date;                     for($i = $begin; $i <= $end; $i->modify('+1 day')){ ...

Restrict Input feilds

 Code 1 <label for = "salary" > Enter your salary: </label> <input type = "text" id = "salary" name = "salary"      oninput = "this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" />  Code 2 < input onkeypress = "return /[a-z]/i.test(event.key)" >