This file contains hidden or 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
<div class="max-w-7xl mx-auto mt-10 py-6 px-4 sm:px-6 lg:px-8"> | |
@foreach($contents->groupBy('type') as $type => $contentArr) | |
<div class="w-full border-b border-white mb-10 pb-2"><strong class="text-white text-xl"> {{$type == 1 ? 'Filmes' : 'Series' }}</strong></div> | |
<div class="w-full md:grid md:grid-cols-2 lg:grid-cols-3 md:gap-0.5 mb-10"> | |
@foreach($contentArr as $content) | |
<div class="lg:w-88 xl:w-96 mb-8 bg-gray-900 rounded shadow-lg hover:p-4"> |
This file contains hidden or 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
<?php | |
namespace App\Http\Livewire\Content\Video; | |
use App\Models\Video; | |
use Livewire\Component; | |
class SingleVideoProcessedProgress extends Component | |
{ | |
public $video; |
This file contains hidden or 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
<?php | |
//Model Content | |
protected $fillable = ['user_id']; | |
public function favoriteable() | |
{ | |
return $this->morphTo(); | |
} |
This file contains hidden or 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
<?php | |
protected $listeners = ['charge']; | |
public function charge($paymentMethodId) | |
{ | |
//dd($paymentMethodId); | |
$user = User::find(1); |
This file contains hidden or 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
<div class="p-10 w-full mt-20 pt-10 border-t border-gray-600"> | |
<div class="w-2/3"> | |
<h3 class="text-white font-extrabold text-2xl mb-10">Deixar um comentário ou questão.</h3> | |
<form action=""> | |
<div class="w-full mb-10"> | |
<textarea name="" id="" cols="30" rows="10" class="w-full rounded"></textarea> | |
</div> | |
<button class="px-4 py-2 text-white font-bold bg-green-800 rounded">Criar</button> | |
</form> | |
</div> |
This file contains hidden or 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
<?php | |
namespace App\Http\Livewire; | |
use Livewire\Component; | |
use App\Models\Content; | |
class Contents extends Component | |
{ | |
public Content $content; |
This file contains hidden or 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
<?php | |
namespace App\Http\Livewire; | |
use Livewire\Component; | |
use App\Models\Content; | |
class Player extends Component | |
{ | |
public $videos; |
This file contains hidden or 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
<?php | |
namespace App\Http\Controllers\Front; | |
use App\Http\Controllers\Controller; | |
use App\Models\Store; | |
use App\Models\User; | |
use App\Services\AuthenticateService; | |
use App\Services\RegisterService; | |
use Illuminate\Http\Request; |
This file contains hidden or 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
<?php | |
namespace App\Http\Controllers\Front; | |
use App\Http\Controllers\Controller; | |
use App\Services\CartService; | |
use Illuminate\Http\Request; | |
class CheckoutController extends Controller | |
{ |
This file contains hidden or 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
<?php | |
namespace App\Http\Controllers\Front; | |
use App\Http\Controllers\Controller; | |
use App\Models\Store; | |
use App\Services\CartService; | |
use Illuminate\Http\Request; | |
class CartController extends Controller |