Add customer contact inquiry system, automated receipt emails, admin communication inbox, and customer profile management

This commit is contained in:
2026-11-02 09:56:24 +01:00
parent 387241f971
commit 9fd39bd7d6
28 changed files with 2426 additions and 8 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class CommunicationReply extends Model
{
use HasFactory;
protected $fillable = [
'communication_id',
'user_id',
'is_admin_reply',
'message',
];
protected $casts = [
'is_admin_reply' => 'boolean',
];
public function communication(): BelongsTo
{
return $this->belongsTo(Communication::class);
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}