lara-zeus/progress
This is a fork from filaprogress, fully maintained and up to date.
Versions
| Plugin Version | Filament Version |
|---|---|
v1.x |
v2.x |
v2.x |
v3.x |
v3.x |
v3.x |
Support Filament
Installation
You can install the package via composer:
composer require lara-zeus/progress
Optionally, you can publish the views using
php artisan vendor:publish --tag="progress-views"
Usage
// For infolist
use LaraZeus\Progress\Infolists\Components\CircleProgressEntry;
use LaraZeus\Progress\Infolists\Components\ProgressBarEntry;
return $infolist
->schema([
CircleProgressEntry::make('circle')
->getStateUsing(function ($record) {
$total = $record->items()->count();
$progress = $record->countPaidItems();
return [
'total' => $total,
'progress' => $progress,
];
})
->hideProgressValue(),
ProgressBarEntry::make('bar')
->getStateUsing(function ($record) {
$total = $record->items()->count();
$progress = $record->countPaidItems();
return [
'total' => $total,
'progress' => $progress,
];
})
->hideProgressValue(),
// For table
use LaraZeus\Progress\Tables\Columns\CircleProgress;
use LaraZeus\Progress\Tables\Columns\ProgressBar;
return $table
->columns([
CircleProgress::make('circle')
->getStateUsing(function ($record) {
$total = $record->items()->count();
$progress = $record->countPaidItems();
return [
'total' => $total,
'progress' => $progress,
];
})
->hideProgressValue(),
ProgressBar::make('bar')
->getStateUsing(function ($record) {
$total = $record->items()->count();
$progress = $record->countPaidItems();
return [
'total' => $total,
'progress' => $progress,
];
})
->hideProgressValue(),
Demo
Visit our demo site: https://translatable.larazeus.com/admin/books
Full Documentation
Visit our website to get the complete documentation: https://larazeus.com/docs/progress
Testing
composer test
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
lacodix/laravel-metric-cards
Get insights in your laravel applications key business values with metrics visua...
1,257
1
rocketcodehq/progress
Drop-in solution for exposing an ajax endpoint for status checks of long running...
0
2
sazzadbinashique/laravel-excel-importer
A Laravel package for importing Excel files with preview, validation, progress t...
5
4