solitweb/laravel-dashboard-date-time-tile

A date & time tile for the Laravel Dashboard

1.0.3 2022-04-05 06:34 UTC

This package is auto-updated.

Last update: 2024-12-05 13:06:50 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

This tile displays date & time for a specified timezone.

This tile can be used on the Laravel Dashboard.

Installation

You can install the package via composer:

composer require solitweb/laravel-dashboard-date-time-tile

Usage

In your dashboard view you use the livewire:date-time-tile component.

<x-dashboard>
    <livewire:date-time-tile position="a1" timezone="Europe/Brussels" />
</x-dashboard>

By default, the title of the tile will display the timezone string, i.e. Europe/Brussels. This can be overidden using the optional title parameter, e.g.

<livewire:date-time-tile position="a1" timezone="Europe/London" title="Greenwich Mean Time" />

Customizing the view

If you want to customize the view used to render this tile, run this command:

php artisan vendor:publish --provider="Solitweb\DateTimeTile\DateTimeTileServiceProvider" --tag="dashboard-date-time-tile-views"

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email stijn@solitweb.be instead of using the issue tracker.

Credits

License

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