I have this in the backend
return view('changePrice')->with('list',$list);
And my page has
<!DOCTYPE html>
<html>
<head>
</head>
<body>
{!! json_encode($list) !!}
</body>
</html>
And I can see on my page something like
[{"id":"10e408ab-b768-6c84-9793-588a440e8b71","name":"Cambio Precio","lista":"OVG","oficina_ventas":"1300","lista_precios":"14","tipo_precio":"LISTA","nit":"","producto":"209","material":"LANGOSTINO 16-20","unidad_medida":"KG","precio_actual":"62900.000000","nuevo_precio":"67300.000000","fecha_inicio":"2017-01-16","procesado":"0"},,{"id":"111b95da-bde7-3c2f-0a92-588a44f6022f","name":"Cambio Precio","lista":"OVG","oficina_ventas":"1100","lista_precios":"17","tipo_precio":"LISTA","nit":"","producto":"274","material":"CAMARON GOLDEN CRUDO - RAW PD 51-60","unidad_medida":"KG","precio_actual":"36500.000000","nuevo_precio":"37500.000000","fecha_inicio":"2017-01-16","procesado":"0"}
I do not know much about blade, but,How to tap this json?To create a table
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire