Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S sistempos_finaltask
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mujahid Rofiq
  • sistempos_finaltask
  • Merge requests
  • !113

Merged
Created 1 year ago by Mujahid Rofiq@MujahidRMaintainer

Dev ropiq

  • Overview 1
  • Commits 2
  • Changes 10

Created by: MujahidRopiq

  • Mujahid Rofiq
    Mujahid Rofiq @MujahidR · 1 year ago
    Author Maintainer

    Merged by: MujahidRopiq at 2024-04-06 14:54:07 UTC

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • main (base)

and
  • latest version
    adb7fa7f
    2 commits, 8 months ago

10 files
+ 297
- 142

    Preferences

    File browser
    Compare changes
app/M‎odels‎
Attenda‎nce.php‎ +69 -0
ClientT‎ier.php‎ +49 -0
Clien‎ts.php‎ +0 -22
ClientsT‎iers.php‎ +0 -22
Leav‎e.php‎ +69 -0
LeaveT‎ype.php‎ +40 -0
OfficeS‎hift.php‎ +70 -0
database‎/seeders‎
ClientSe‎eder.php‎ +0 -23
ClientTier‎Seeder.php‎ +0 -73
DatabaseS‎eeder.php‎ +0 -2
app/Models/Attendance.php 0 → 100644
+ 69
- 0
  • View file @ adb7fa7f

  • Edit in single-file editor

  • Edit in Web IDE

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class Attendance
*
* @property int $id
* @property int $user_id
* @property Carbon $date
* @property string $clock_in
* @property string $clock_in_ip
* @property string $clock_out
* @property string $clock_out_ip
* @property bool $clock_in_out
* @property string $depart_early
* @property string $late_time
* @property string $overtime
* @property string $total_work
* @property string $total_rest
* @property string $status
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property string|null $deleted_at
*
* @property User $user
*
* @package App\Models
*/
class Attendance extends Model
{
use SoftDeletes;
protected $table = 'attendances';
protected $casts = [
'user_id' => 'int',
'date' => 'datetime',
'clock_in_out' => 'bool'
];
protected $fillable = [
'user_id',
'date',
'clock_in',
'clock_in_ip',
'clock_out',
'clock_out_ip',
'clock_in_out',
'depart_early',
'late_time',
'overtime',
'total_work',
'total_rest',
'status'
];
public function user()
{
return $this->belongsTo(User::class);
}
}
app/Models/ClientTier.php 0 → 100644
+ 49
- 0
  • View file @ adb7fa7f

  • Edit in single-file editor

  • Edit in Web IDE

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class ClientTier
*
* @property int $id
* @property string $tier
* @property float $discount
* @property float $score
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property string|null $deleted_at
*
* @property Collection|Client[] $clients
*
* @package App\Models
*/
class ClientTier extends Model
{
use SoftDeletes;
protected $table = 'client_tiers';
protected $casts = [
'discount' => 'float',
'score' => 'float'
];
protected $fillable = [
'tier',
'discount',
'score'
];
public function clients()
{
return $this->hasMany(Client::class);
}
}
app/Models/Clients.php deleted 100644 → 0
+ 0
- 22
  • View file @ a2cb6b45

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Clients extends Model
{
use HasFactory, SoftDeletes;
protected $table = 'clients';
protected $fillable = [
'id',
'name',
'code',
'email',
'phone',
];
}
app/Models/ClientsTiers.php deleted 100644 → 0
+ 0
- 22
  • View file @ a2cb6b45

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class ClientsTiers extends Model
{
use HasFactory, SoftDeletes;
protected $table = 'client_tiers';
protected $fillable = [
'id',
'tier',
'total_sales',
'total_amount',
'last_sale',
];
}
app/Models/Leave.php 0 → 100644
+ 69
- 0
  • View file @ adb7fa7f

  • Edit in single-file editor

  • Edit in Web IDE

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class Leave
*
* @property int $id
* @property int $leave_type_id
* @property Carbon $start_date
* @property Carbon $end_date
* @property string $days
* @property string|null $reason
* @property string|null $attachment
* @property bool|null $half_day
* @property string $status
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property string|null $deleted_at
* @property int $user_id
*
* @property LeaveType $leave_type
* @property User $user
*
* @package App\Models
*/
class Leave extends Model
{
use SoftDeletes;
protected $table = 'leaves';
protected $casts = [
'leave_type_id' => 'int',
'start_date' => 'datetime',
'end_date' => 'datetime',
'half_day' => 'bool',
'user_id' => 'int'
];
protected $fillable = [
'leave_type_id',
'start_date',
'end_date',
'days',
'reason',
'attachment',
'half_day',
'status',
'user_id'
];
public function leave_type()
{
return $this->belongsTo(LeaveType::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
}
0 Assignees
Assign to
0 Reviewers
Request review from
Milestone
No milestone
None
None
Time tracking
0
Labels
None
Lock merge request
Unlocked
participants
Reference:
Source branch: dev-ropiq

Menu

Projects Groups Snippets
Help