<?php

namespace App\View\Components\Forms;

use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class CustomFieldShow extends Component
{

    public $fields;
    public $model;

    /**
     * Create a new component instance.
     *
     * @return void
     */
    public function __construct($fields, $model = false)
    {
        $this->fields = $fields;
        $this->model = $model;
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return View|string
     */
    public function render()
    {
        return view('components.forms.custom-field-show');
    }

}
