<?php

namespace Edwin404\Admin\Cms\Field;

use Illuminate\Support\Facades\View;

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

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