Creados un monton de componentes para reutilizar en las paginas, modificadas vistas, faltan agregar mas cosas

This commit is contained in:
BryamE
2025-12-06 19:52:33 -03:00
parent 7840cc79ae
commit 20e7da64de
22 changed files with 810 additions and 168 deletions
+15 -8
View File
@@ -8,14 +8,21 @@ use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
use HasFactory;
protected $fillable = [
'nombre',
'marca',
'modelo',
'rodado',
'color',
'tipo',
'descripcion',
'precio'
'name',
'sku',
'description',
'price',
'cost',
'stock_quantity',
'min_stock_alert',
'type',
'serial_number'
];
public function hasLowStock(): bool
{
return $this->stock_quantity <= $this->min_stock_alert;
}
}