- Add RestockIndex component for displaying and managing restocks. - Create RestockCardRow component for rendering individual restock items. - Implement RestockItemSubRow component for displaying detailed item information. - Define routes for restock management in web.php. - Create RestockTest to cover various scenarios for restock creation, updating, and deletion. - Ensure proper handling of permissions for restock actions. - Add validation for restock data and ensure correct relationships are maintained.
22 lines
337 B
PHP
22 lines
337 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use App\Enums\Concerns\HasValues;
|
|
|
|
enum ProductStockQuality: string
|
|
{
|
|
use HasValues;
|
|
|
|
case GOOD = 'good';
|
|
case REJECT = 'reject';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::GOOD => 'Bagus',
|
|
self::REJECT => 'Reject',
|
|
};
|
|
}
|
|
}
|