@extends('theme.master') @section('title', 'Watchlist') @section('content') @include('admin.message')

@php if(count($coursewatch)>0){ echo count($coursewatch); } else{ echo "0"; } @endphp Courses in Watchlist

@foreach($coursewatch as $wish) @if($wish->user_id == Auth::User()->id)
@if($wish->courses['preview_image'] !== NULL && $wish->courses['preview_image'] !== '') course @else course @endif