Add employee presence with kiosk sign-in, QR badges, and mobile step-out.
Deploy Ladill Frontdesk / deploy (push) Failing after 26s
Deploy Ladill Frontdesk / deploy (push) Failing after 26s
Enables staff roster, PIN/code kiosk flow, attendance reports, evacuation staff roll call, webhooks, branch mismatch warnings, and a linked-user My presence portal. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Concerns\BelongsToOwner;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class EmployeePresenceEvent extends Model
|
||||
{
|
||||
use BelongsToOwner;
|
||||
public const EVENT_SIGN_IN = 'sign_in';
|
||||
|
||||
public const EVENT_SIGN_OUT = 'sign_out';
|
||||
|
||||
public const EVENT_STEP_OUT = 'step_out';
|
||||
|
||||
public const EVENT_STEP_IN = 'step_in';
|
||||
|
||||
protected $table = 'frontdesk_employee_presence_events';
|
||||
|
||||
protected $fillable = [
|
||||
'owner_ref', 'organization_id', 'employee_id', 'event', 'status_after',
|
||||
'branch_id', 'device_id', 'destination', 'step_out_reason', 'notes',
|
||||
];
|
||||
|
||||
public function employee(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Employee::class, 'employee_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user