Search
 
SCRIPT & CODE EXAMPLE
 

PHP

if no data show msg and chang style laravel

@if($products->count())
     @foreach ($products as $item)
         <tr @if($loop->first) class="bg-info" @endif>
             <th>{{ $item->id }}</th>
             <td>{{ $item->title }}</td>
             <td>${{ number_format($item->price,2) }}</td>
             <td>{{ $item->cat->title }}</td>
         </tr>
     @endforeach
 @else
     <div class="alert alert-danger">No Products Added</div>
 @endif
Comment

PREVIOUS NEXT
Code Example
Php :: To fetch the soft deleted user, you should use withTrashed 
Php :: woocommerce show percentage in sales badge 
Php :: Search Multiple columns using one input 
Php :: null coalesce operator in php (laravel) 
Php :: laravel handle image validation 
Php :: PHP Number Shortener 
Php :: Define Events in Model 
Php :: add object to http request php behamin proxy bproxy 
Php :: how to cooncet dabase eith laraavel 
Php :: php default argument 
Php :: jquery ui sortable tables php mysql 
Php :: app/View/Errors/missing_controller.ctp 
Php :: php crash course could not find driver 
Php :: orocrm switch dev mode 
Php :: laravel pagination bootstrap sorting column 
Php :: define table name in model laravel 
Php :: to create html document you require a 
Php :: prosedur dan fungsi dengan php 
Php :: convert php to curl 
Php :: To show inline category 
Php :: return false inside loop of function php 
Php :: codeigniter input required function in php 
Php :: how to add posts to php 
Php :: adding n days to a DATETIME format value 
Php :: dequeue recaptcha wordpress 
Php :: install php 5.5 ubuntu 20.05 
Php :: wordpress deny user to access wp-admin programmatically 
Php :: TypeError IlluminateAuthSessionGuard::login(): Argument #1 ($user) must be of type IlluminateContractsAuthAuthenticatable 
Php :: verify that a valid login cookie was sent in order to do special things for that logged-in 
Php :: wordpresss loop through object 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =