wah.moe/app/View/Components/LastFMTrack.php

27 lines
556 B
PHP
Raw Normal View History

<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
2025-01-16 13:57:12 +00:00
class LastFMTrack extends Component {
public $track;
public $count;
/**
* Create a new component instance.
*/
2025-01-16 13:57:12 +00:00
public function __construct($track, $count) {
$this->track = $track;
$this->count = $count;
}
/**
* Get the view / contents that represent the component.
*/
2025-01-16 13:57:12 +00:00
public function render(): View|Closure|string {
2025-01-16 13:42:14 +00:00
return view('components.lastfm-track');
}
}