<?php

namespace App\Modules\Models\Ota\Traits\Attribute;

/**
 * Class OtaVersionAttribute
 * @package App\Modules\Models\Ota\Traits\Attribute
 */
trait OtaVersionAttribute
{
    /**
     * @return string
     */
//    public function getEditButtonAttribute()
//    {
//        return '<a href="' . route('admin.ota.edit', $this) . '" class="btn btn-xs btn-primary"><i class="fa fa-pencil" data-toggle="tooltip" data-placement="top" title="' . trans('buttons.general.crud.edit') . '"></i></a> ';
//    }

    /**
     * @return string
     */
    public function getDeleteButtonAttribute()
    {
        return '<a href="' . route('admin.ota.destroy', $this) . '" class="btn btn-xs btn-danger" data-method="delete"><i class="fa fa-times" data-toggle="tooltip" data-placement="top" title="' . trans('buttons.general.crud.delete') . '"></i></a>';
    }

    /**
     * @return string
     */
    public function getActionButtonsAttribute()
    {
        return
//            $this->getEditButtonAttribute() .
            $this->getDeleteButtonAttribute();
    }
}
