@extends('frontend.include.layout') @section('content') @if($advertisements)
@endif
@php $asset_details=\App\Models\AssetDetails::query(); if(isset($_GET['assettag']) && $_GET['assettag'] != '') { $asset_details = $asset_details->where('tag_id', $_GET['assettag']); } if(isset($_GET['asset_category']) && $_GET['asset_category'] != '') { $asset_details = $asset_details->where('category_id', $_GET['asset_category']); } if(isset($_GET['asset_classid']) && $_GET['asset_classid'] != '') { $asset_details = $asset_details->where('class_id', $_GET['asset_classid']); } if(isset($_GET['asset_typeid']) && $_GET['asset_typeid'] != '') { $asset_details = $asset_details->where('type_id', $_GET['asset_typeid']); } if(isset($_GET['actor_id']) && $_GET['actor_id'] != '') { $asset_details = $asset_details->where('userid', $_GET['actor_id']); } $asset_details = $asset_details->get(); @endphp @foreach($asset_details as $key => $asset_detail)
@php $check_favourite_asset=''; if(auth()->user()) { $check_favourite_asset= \App\Models\FavouriteAsset::where('asset_id',$asset_detail->id)->where('customer_id',auth()->user()->id)->where('status','1')->count(); } @endphp @if($check_favourite_asset == 1) @elseif($check_favourite_asset == 0) @else @endif
@if($asset_detail->verified_id == 1)

  Verified

@else

 

@endif
@php $count_favourite_asset= \App\Models\FavouriteAsset::where('asset_id',$asset_detail->id)->where('status','1')->count(); @endphp

ID:{{ $asset_detail->asset_id }}

@for ($starcount=0 ; $starcount<5; $starcount++) @if($starcount<=$asset_detail->starrating) @else @endif @endfor (0) | ({{ $count_favourite_asset }})
@php $actordetails=\App\Models\ActorController::select('name','slug')->where('id', $asset_detail->userid)->first(); @endphp
{{ $actordetails->name }}
${{ $asset_detail->cost }} ({{ $asset_detail->offer_price }}) | Offer {{ $asset_detail->offer_discount }}%
@endforeach
@endsection