feat: Add change orders system with client approval/rejection and integrate with client portal

This commit is contained in:
2026-05-25 19:08:06 +02:00
parent 07ffce437f
commit 4ab7935c17
6 changed files with 166 additions and 323 deletions
+8 -2
View File
@@ -8,16 +8,22 @@ use Illuminate\Database\Eloquent\Model;
class Project extends Model
{
use HasFactory;
use HasFactory;
protected $fillable = [
'name', 'address', 'lat', 'lng', 'start_date', 'end_date_estimated', 'status', 'created_by'
];
protected $casts = [
'start_date' => 'date',
'end_date_estimated' => 'date',
"start_date" => "date",
"end_date_estimated" => "date",
];
public function changeOrders()
{
return $this->hasMany(ChangeOrder::class);
}
// Relationships
public function phases()
{