<?php

namespace Edwin404\Admin\Cms\Field;

use Illuminate\Support\Facades\View;

class FieldDatetime extends BaseField
{
    public function addHtml()
    {
        return View::make('admin::cms.field.datetime.add', [
            'key' => &$this->key,
            'field' => &$this->field,
            'default' => $this->default,
        ])->render();
    }

    public function editHtml(&$data)
    {
        return View::make('admin::cms.field.datetime.edit', [
            'key' => &$this->key,
            'field' => &$this->field,
            'data' => &$data
        ])->render();
    }

    public function searchHtml()
    {
        return View::make('admin::cms.field.datetime.search', [
            'key' => &$this->key,
            'field' => &$this->field,
        ])->render();
    }
}