-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
263958a
commit 44e086a
Showing
3 changed files
with
44 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace App\View\Components; | ||
|
||
use Illuminate\View\Component; | ||
|
||
class VideoTable extends Component | ||
{ | ||
public $videos; | ||
|
||
public function __construct($videos) | ||
{ | ||
$this->videos = $videos; | ||
} | ||
|
||
public function render() | ||
{ | ||
return view('components.video-table'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div class="mt-4 flex items-center justify-center mb-16"> | ||
<div class="w-full max-w-screen-md p-4 bg-white rounded-lg shadow-lg"> | ||
<table class="w-full border-collapse border border-gray-300"> | ||
<thead> | ||
<tr> | ||
<th class="border border-gray-300 px-4 py-2">N°</th> | ||
<th class="border border-gray-300 px-4 py-2">Contenido</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
|
||
@foreach ($videos as $video) | ||
<tr> | ||
<td class="border border-gray-300 px-4 py-2">{{$video->orden}}</td> | ||
<td class="border border-gray-300 px-4 py-2">{{$video->nombre}}</td> | ||
</tr> | ||
@endforeach | ||
|
||
</tbody> | ||
</table> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters