<h2>All Listings</h2> <div class=""> <table class="table table-striped table-bordered table-hover" id="table_listings"> <thead> <tr> <th>ID</th> <th>Business Owner </th> <th>Heading </th> <th>Ask Price </th> <th>Date/Time </th> <th>Verification </th> </tr> </thead> <tbody> <?php $listings = App\Models\Listing::desc('created_at')->get(); ?> @foreach($listings as $i => $listing) <tr> <?php $ids[$i + 1] = $listing->id; ?> <td>{{ $i + 1 }}</td> <td>{{ $listing->user ? $listing->user->fullName : 'Broken Upload' }}</td> <td>{{ $listing->heading }}</td> <td> <label class="label label-info">{{ $listing->askingPrice }} </label> </td> <td>{{ Carbon::parse($listing->created_at)->diffForHumans() }}</td> <td> @if($listing->verified == 0)
<h2>All Listings</h2> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover" id="table_listings"> <thead> <tr> <th>ID</th> <th>Business Owner </th> <th>Heading </th> <th>Ask Price </th> <th>Date/Time </th> <th>Verification </th> </tr> </thead> <tbody> <?php $listings = App\Models\Listing::whereNotNull('broker_id')->desc('created_at')->get(); ?> @foreach($listings as $i => $listing) <tr> <?php $ids[$i + 1] = $listing->id; ?> <td>{{ $i + 1 }}</td> <td>{{ $listing->user ? $listing->user->fullName : 'Broken Upload' }}</td> <td>{{ $listing->heading }}</td> <td> <label class="label label-info">{{ $listing->askingPrice }} </label> </td> <td>{{ Carbon::parse($listing->created_at)->diffForHumans() }}</td> <td> @if($listing->verified == 0)