All Projects → sadekd → nova-opening-hours-field

sadekd / nova-opening-hours-field

Licence: MIT license
Laravel Nova custom field for https://github.com/spatie/opening-hours

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
PHP
23972 projects - #3 most used programming language
SCSS
7915 projects

Projects that are alternatives of or similar to nova-opening-hours-field

nova-froala-field
A Laravel Nova Froala WYSIWYG Editor Field.
Stars: ✭ 110 (+233.33%)
Mutual labels:  nova, field
nova-phone-number
A Laravel Nova field to format and validate phone numbers.
Stars: ✭ 60 (+81.82%)
Mutual labels:  nova, field
nova-relationship-selector
Laravel Nova - Relationship Selector
Stars: ✭ 26 (-21.21%)
Mutual labels:  nova
objection-authorize
isomorphic, "magical" authorization integration with Objection.js 🎉
Stars: ✭ 71 (+115.15%)
Mutual labels:  field
nova-file-upload-field
The easiest drag-and-drop file uploading field for Laravel Nova.
Stars: ✭ 53 (+60.61%)
Mutual labels:  nova
nova-permissions
Add Permissions based authorization for your Nova installation via User-based Roles and Permissions. Roles are defined in the database whereas Permissions are defined in the code base.
Stars: ✭ 115 (+248.48%)
Mutual labels:  nova
python-pyfields
Define fields in python classes. Easily.
Stars: ✭ 39 (+18.18%)
Mutual labels:  field
django-isbn-field
Django model field to store and validate ISBN numbers.
Stars: ✭ 21 (-36.36%)
Mutual labels:  field
react-streamfield
Powerful field for inserting multiple blocks with nesting. (NO LONGER MAINTAINED - See Wagtail 2.13 Release Notes)
Stars: ✭ 34 (+3.03%)
Mutual labels:  field
nova-select-plus
A Laravel Nova Select Field
Stars: ✭ 67 (+103.03%)
Mutual labels:  nova
nova-unlayer-field
🦜 Drag’n’drop email builder for Laravel Nova that uses Adds a Laravel Nova field for Unlayer service under the hood.
Stars: ✭ 27 (-18.18%)
Mutual labels:  nova
nova-chartjs
A Chart JS component for Laravel Nova
Stars: ✭ 47 (+42.42%)
Mutual labels:  nova
react-forms-processor
A forms processor for React
Stars: ✭ 63 (+90.91%)
Mutual labels:  field
nova-json-wrapper
Allows you to group Nova fields and merge their output into a single JSON column
Stars: ✭ 14 (-57.58%)
Mutual labels:  nova
nova-money-field
Money Field for Laravel Nova
Stars: ✭ 71 (+115.15%)
Mutual labels:  nova
custom-relationship-field
Emulate HasMany relationship without having a real relationship set between resources
Stars: ✭ 18 (-45.45%)
Mutual labels:  nova
checkout
Laravel Cart, Checkout, Orders and Coupons API with Nova Management
Stars: ✭ 36 (+9.09%)
Mutual labels:  nova
nova-json-schema-field
Laravel Nova field for displaying JSON schema data
Stars: ✭ 27 (-18.18%)
Mutual labels:  nova
nova-horizon
Horizon statistics in Nova
Stars: ✭ 70 (+112.12%)
Mutual labels:  nova
nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (-15.15%)
Mutual labels:  nova

Nova Opening Hours Field

Latest Stable Version Total Downloads License PHP Version Require

Laravel Nova custom field for Spatie Opening Hours

Index

Screenshot Index

Form

Screenshot Form

Detail

Screenshot Detail

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require sadekd/nova-opening-hours-field

Usage

Laravel Migration

$table->json('opening_hours');  // can be ->nullable()

Laravel Model

protected $casts = [
    'opening_hours' => 'array',
];

Nova Resource

NovaOpeningHoursField::make(__('Opening Hours'), 'opening_hours'),
// ->allowExceptions(FALSE)    // TRUE by default
// ->allowOverflowMidnight(TRUE)  // FALSE by default
// ->useTextInputs(TRUE)  // FALSE by default

Known issues

  • Lazy validation on time field - losing focus when live(help needed)
  • Editing date in exceptions causes row jumping - key from date(help needed)
  • Browser time input does not support 24:00
  • Browser date input does not support recurring format

TODO

  • Explode interval input => time fields
  • Validation
  • Localization
  • Exceptions
  • Tests

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].