rtmatt / rtclientdashboard
A dashboard to show monthly service usage for a client.
Installs: 108
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:CSS
Requires
- guzzlehttp/guzzle: ~6.0
This package is not auto-updated.
Last update: 2024-11-09 20:12:21 UTC
README
- Laravel App
- jQuery
Installation
Via Composer
composer require rtmatt/rtclientdashboard:^0.0.2 //:dev-master
Add Service Provider
in config/app.php providers array:
\RTMatt\MonthlyServiceClientDashboard\Providers\MonthlyServiceClientDashboardServiceProvider::class
Usage
Add includes
Within whatever file you want to show the dashboard, include the following:
@include('rtclientdashboard::components.dashboard-component')
and in the layout file before the closing body tag, include the following:
@include('rtclientdashboard::partials.dashboard-scripts')
as well as the following within the head section:
@include('rtclientdashboard::partials.dashboard-styles')
###Add credentials in your site's .env file:
DASHBOARD_API_NAME=xxx
DASHBOARD_API_KEY=xxx
publish assets
php artisan vendor:publish --provider="RTMatt\MonthlyServiceClientDashboard\Providers\MonthlyServiceClientDashboardServiceProvider" --tag="public" --force
If you would like to make sure your public assets are always up-to-date, you can add this command to the post-update-cmd list in your composer.json file.
Configuration
DASHBOARD_API_URL //the base url for the API with which the dashboard talks
DASHBOARD_SUMMARY_API_ENDPOINT //the api endpoint where client service summaries live