Posts

Showing posts from December, 2019

laravel in set data useing datatable with ajax call

Image
Blade File < div class= "table-responsive" style= " font-size : 12 px ; " > < table id= "subCategoriesTable" class= "table table-striped" > < thead > < tr > < th > Sl. No </ th > < th width= "50" > Image </ th > < th > Category Name </ th > < th > Name </ th > < th > Description </ th > < th > Is Active </ th > < th > Action </ th > </ tr > </ thead > < tbody > </ tbody > </ table > </ div > < script type= "text/javascript" > var route_product_sub_categories = " {{ route( 'getSubCategory' ) }} " ; jQuery ( document ). ready ( function ($) { $( '...

laravel in sapped data with image using ajax

1.blade < div class= "col-sm-6" > < h3 class= "text-dark" id= "pname- {{ $product_id }} " > < strong id= "product_name" ></ strong > </ h3 > < h3 class= "text-warning p-t-30" > < strong id= "product_price" >< i class= "fa fa-inr" ></ i ></ strong > </ h3 > < h5 class= "text-dark p-t-15" > < strong id= "product_description" ></ strong > </ h5 > </ div > < script > jQuery ( document ). ready ( function () { $ . ajax ({ url : " {{ route( 'getCatalogueProduct' ) }} " , method : 'GET' , data : { product_id : ' {{ $product_id }} ' }, dataType : 'json' , success : function (data) { var img_id = 'img- {{ $p...