Parsing json data and show in loop in a table Using Laravel
First you would have to convert the JSON to an array with $array_data = json_decode($array, true), then you can pass the data to your view with return view('page', ["array_data"=>$array_data]);, next you would have to parse it in blade like:
<table><tr><td>id</td><td>User id</td><td>Patient name</td><td>Age</td><td>Sex</td></tr>
@foreach($array_data as $key=>$value){
<tr><td>{{$value["id"]}}</td><td>{{$value["user_id"]}}</td><td>{{$value["patient_name"]}}</td><td>{{$value["age"]}}</td><td>{{$value["sex"]}}</td></tr>
@endforeach
EmoticonEmoticon