<template #default="scope">
<el-tag
:type="scope.row.workflow === 'Ожидание' ? 'warning' : 'success' "
disable-transitions
>{{ scope.row.workflow }}
</el-tag>
</template>
public function user(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(User::class, 'user_id_record', 'id');
}
public function up(): void
{
Schema::create('journal_organizations', function (Blueprint $table) {
$table->id();
$table->string('organizations')->nullable();
$table->string('number_dogovor')->nullable();
$table->string('title')->nullable();
$table->string('predmet')->nullable();
$table->string('address_actual')->nullable();
$table->string('branch')->nullable();
$table->string('executor')->nullable();
$table->text('note')->nullable();
$table->timestamps();
$table->softDeletes();
$table->unsignedBigInteger('journal_date_id')->nullable();
$table->index('journal_date_id','journal_date_idx');
$table->foreign('journal_date_id', 'journal_date_fk')->references('id')->on('journal_dates')->onDelete('cascade');
});
}