Field Date based on https://vcalendar.io/
abdullahfaqeir/nova-field-date-picker is a Laravel package for field date based on https://vcalendar.io/.
It currently has 0 GitHub stars and 188 downloads on Packagist (latest version v1.0.2).
Install it with composer require abdullahfaqeir/nova-field-date-picker.
Discover more Laravel packages by abdullahfaqeir
or browse all Laravel packages to compare alternatives.
Last updated
This repo is an updated fork from Laravel Nova Field Super DatePicker
An elegant calendar and datepicker Field for laravel nova based on https://vcalendar.io/.

This package can be installed through Composer.
composer require abdullahfaqeir/nova-field-date-picker
use AbdullahFaqeir\VCalendar\SuperDatePicker;
SuperDatePicker::make(__("Birthdate"), 'birthdate')
->required(true)
->rules('required', 'date'),

->isDark()

->color("red") //gray, red, orange, yellow, green, teal, blue, indigo, purple, pink.

->isInline()

->disabledDates("2020-03-23")
->disabledDates("2020-03-25","2020-03-24")
->disabledDates(["2020-03-25","2020-03-26"])

->format("YYYY/MM/DD")

->locale("en")

->minDate("2020-03-01")
->maxDate("2020-03-31")
Arguments: DotAttributeVCalendar, HighlightAttributeVCalendar, BarAttributeVCalendar
Arguments: null, true, gray, red, orange, yellow, green, teal, blue, indigo, purple, pink
use AbdullahFaqeir\VCalendar\Attributes\DotAttributeVCalendar;
->selectAttribute(
(new DotAttributeVCalendar("orange"))
)

Arguments: null, true, gray, red, orange, yellow, green, teal, blue, indigo, purple, pink
use AbdullahFaqeir\VCalendar\Attributes\HighlightAttributeVCalendar;
->selectAttribute(
(new HighlightAttributeVCalendar("orange"))
)

Arguments: null, true, gray, red, orange, yellow, green, teal, blue, indigo, purple, pink
use AbdullahFaqeir\VCalendar\Attributes\BarAttributeVCalendar;
->selectAttribute(
(new BarAttributeVCalendar("orange"))
)

Arguments: ClickPopoverVCalendar, FocusPopoverVCalendar, HoverPopoverVCalendar
use AbdullahFaqeir\VCalendar\Popover\HoverPopoverVCalendar;
->selectAttribute(
(new BarAttributeVCalendar("orange"))
->popover(new HoverPopoverVCalendar("Fecha de nacimiento"))
)

Arguments: DotAttributeVCalendar, HighlightAttributeVCalendar, BarAttributeVCalendar
->attributeCalendar(
(new HighlightAttributeVCalendar('red'))
->dates($this->created_at)
->popover(new HoverPopoverVCalendar("Creation Record Contact."))
)
->attributeCalendar(
(new BarAttributeVCalendar('red'))
->dates($this->update_at)
->popover(new HoverPopoverVCalendar("Update Record Contact."))
)

| Object | Description | Range | | ------------ | ------------ | ------------ | | AbdullahFaqeir\VCalendar\Disabled\DaysDisabledDatesVCalendar | Day number from the start or end of the month. |1 to 31, -1 to -31 | | AbdullahFaqeir\VCalendar\Disabled\WeekdaysDisabledDatesVCalendar | Day of the week. |1: Sun to 7: Sat | | AbdullahFaqeir\VCalendar\Disabled\WeeksDisabledDatesVCalendar | Week number from the start or end of the month. |1 to 6, -1 to -6 | | AbdullahFaqeir\VCalendar\Disabled\MonthsDisabledDatesVCalendar | Months of the year. |1 to 12 | | AbdullahFaqeir\VCalendar\Disabled\YearsDisabledDatesVCalendar | Year numbers. |4-digit integer |
->disabled(new DaysDisabledDatesVCalendar(9, 16))
| Object | Description
| ------------ | ------------
| AbdullahFaqeir\VCalendar\Interval\DayliIntervalDatesVCalendar | Interval number of days from the start date (or today when no start date provided).
| AbdullahFaqeir\VCalendar\Interval\WeeklyIntervalDatesVCalendar | Interval number of weeks from the start date (or today).
| AbdullahFaqeir\VCalendar\Interval\MonthlyIntervalDatesVCalendar | Interval number of months from the start date (or today).
| AbdullahFaqeir\VCalendar\Interval\YearlyIntervalDatesVCalendar | Interval number of years from the start date (or today).
->disabled(new WeekdaysDisabledDatesVCalendar(1, 7),new WeeklyIntervalDatesVCalendar(2))
