<?php

namespace Modules\PrintSuppliers\Models;

use Illuminate\Database\Eloquent\Model;

class Template extends Model
{
    public $table = 'template';

    protected $fillable = [
        'category_id', 'color', 'size', 'type', 'style', 'enable',
        'printing_service', 'blueprint_id', 'print_provider_id',
        'variant_id', 'resolution'
    ];

    public function editUrl () {
        $id = $this->id;
        return "/print-suppliers/template/$id";
    }
    public function toggleUrl () {
        $id = $this->id;
        return "/print-suppliers/template/$id/toggle";
    }
}
