DateRangePickerHelper

DateRangePicker (current version: 3.1.0) is a great Javascript library to build a calendar and select a date or date range. Package DateRangePickerHelper (current version: 2.5.1) provides helpers to facilitate calendar settings and date retrieval. Project on GitHub. Project on Packagist. This demosite sources available here.

In your controller create an instance of DateRangePickerHelper and pass the variable to the view.


// refer to other examples to get code
  

Then print your paginator by inserting {!! cal !!} in your template.

Demo

 11/21/2024

Here dates are copied into visible fields defined in `apply.daterangepicker` function.

 11/15/2024 11:05 AM - 11/21/2024 11:05 AM

Here dates are copied into visible fields defined in `apply.daterangepicker` function.