One Hat Cyber Team
Your IP :
13.58.28.53
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
centos12
/
public_html
/
centosuit
/
app
/
Models
/
View File Name :
ProposalTemplateItem.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasOne; /** * App\Models\ProposalTemplateItem * * @property int $id * @property int|null $company_id * @property int $proposal_template_id * @property string $hsn_sac_code * @property string $item_name * @property string $type * @property int $quantity * @property float $unit_price * @property float $amount * @property string|null $item_summary * @property string|null $taxes * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read \App\Models\ProposalTemplateItemImage|null $proposalTemplateItemImage * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem newQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem query() * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereAmount($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereCompanyId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereHsnSacCode($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereItemName($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereItemSummary($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereProposalTemplateId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereQuantity($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereTaxes($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereType($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereUnitPrice($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereUpdatedAt($value) * @property int|null $product_id * @property int|null $unit_id * @property-read \App\Models\UnitType|null $unit * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereProductId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProposalTemplateItem whereUnitId($value) * @mixin \Eloquent */ class ProposalTemplateItem extends BaseModel { protected $guarded = ['id']; protected $with = ['proposalTemplateItemImage']; public function proposalTemplateItemImage(): HasOne { return $this->hasOne(ProposalTemplateItemImage::class, 'proposal_template_item_id'); } public static function taxbyid($id) { return Tax::where('id', $id)->withTrashed(); } public function unit(): BelongsTo { return $this->belongsTo(UnitType::class, 'unit_id'); } }