added messages list, new client form, logic for client Apps plus others

This commit is contained in:
Kwesi Banson Jnr
2026-03-22 22:29:28 +00:00
parent c68c007945
commit 4ab0fda326
858 changed files with 242393 additions and 337 deletions

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ClientApplication extends Model
{
protected $guarded = [
'id'
];
}

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ClientSession extends Model
{
protected $guarded = [
'id'
];
}

View File

@@ -1,23 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Comment extends Model
{
protected $guarded = [
'id'
];
public function userInfo(): HasOne
{
return $this->hasOne(User::class);
}
public function projectStatus(): BelongsTo
{
return $this->belongsTo(ProjectStatus::class);
}
}

View File

@@ -1,31 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Project extends Model
{
protected $guarded = [
'id'
];
// public function userInfo()
// {
// return $this->hasMany('App\Models\User', 'org_id', 'id');
// }
// public function phone(): HasOne
// {
// return $this->hasOne(Phone::class);
// }
public function userInfo(): HasMany
{
return $this->hasMany(User::class);
}
public function statusInfo(): HasMany
{
return $this->hasMany(ProjectStatus::class);
}
}

View File

@@ -1,23 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
class ProjectStatus extends Model
{
protected $guarded = [
'id'
];
public function project(): BelongsTo
{
return $this->belongsTo(Project::class);
}
public function comments(): HasMany
{
return $this->hasMany(Comment::class);
}
}