PATH:
home
/
lab2454c
/
.trash
/
core
/
resources
/
views
/
templates
/
basic
/
user
/
community
@extends($activeTemplate.'layouts.frontend') @section('content') <div class="body__containt__main body__containt__main__inner"> <div class="product__wrapp"> <div class="container"> <div class="d-flex justify-content-between"> <h2 class="mb-4"> latest <span>{{ $pageTitle }}</span> listing </h2> <div class="d-flex"> @if(isset(auth()->user()->favouriteTeam)) <form method="POST" action="{{ route('user.unmarkFavouriteTeam', $team) }}" class="inline__block mr__right__15"> @csrf <button class="btn btn-primary btn__global" type="submit"> <i class="las la-star"></i> {{ auth()->user()->favouriteTeam->name }} is Favourited </button> </form> @else <form method="POST" action="{{ route('user.markFavouriteTeam', $team) }}" class="inline__block mr__right__15"> @csrf <button class="btn btn-secondary btn__global" type="submit"> <i class="lar la-star"></i> Favourite Team </button> </form> @endif @if(isset($team->social_link)) <a class="btn btn-secondary btn__global w-auto" href="{{ $team->social_link }}" target="_blank"> <i class="las la-paper-plane"></i> Follow </a> @endif </div> </div> <div class="product__wrapp__inner"> <div class="row"> @forelse($products as $product) @php $productImage = $product->productImages->first(); //dd($productImage); if (isset($productImage)) { $imageName = explode('.', $productImage->file); $ext = $imageName[count($imageName) - 1]; } @endphp <div class="col-xl-4 col-lg-4 col-md-4 mr__top"> <div class="product__card"> <div class="image__box"> <a href="{{route('product.detail', $product->id)}}"> @if(isset($productImage)) @if($ext == 'mp4' || $ext == 'mov') <video width="300" height="250" controls> <source src="{{ asset('assets/images/product/'.$productImage->file) }}" type="video/mp4"> Your browser does not support the video tag. </video> @else <a href="{{route('product.detail', $product->id)}}"> <img src="{{ getImage(imagePath()['product']['path'].'/'.$productImage->file,imagePath()['product']['size'])}}" alt="@lang('product')" /> </a> @endif @endif </a> </div> <div class="product__content"> <div class="product__title"> <h3><a href="{{route('product.detail', $product->id)}}"> {{__(isset($product->title) ? str_limit($product->title, 30) : 'Sothebry FAME – Baseball Moments')}} </a></h3> </div> <div class="product__category"> <p><a href="#">{{ isset($product->category->name) ? $product->category->name : '' }}</a></p> </div> <div class="product__card__bottom"> <div class="product__price">{{$general->cur_sym}}{{showAmount($product->amount)}} <br> <div><i class="lab la-ethereum"></i>{{btcRate($product->amount)}}</div></div> <div class="add__to__cart"><a href="{{route('product.detail', $product->id)}}">Purchase</a></div> </div> </div> </div> </div> @empty <div class="mt-5"> <h4>No Moments Listed for {{ $pageTitle }}</h4> </div> @endforelse </div> </div> </div> </div> </div> </div> </div> </div> @endsection
[+]
..
[-] momentList.blade.php
[edit]
[-] teamList.blade.php
[edit]