mercredi 11 mars 2020

How to build dynamic table with headings and rows (values) in blade view laravel php?

  1. Here is my controller function this is my function to paas the data to view
  2. Here is dd() out of object dd() output
  3. Here is my blade code blade view table code

  4. it return just make headings and with one row..

  5. correct me if i am wrong,i want ot make table dynamically with values..thanks in advance

  6. here is my code..

    public function getDashboardData(){ $this->data['sales'] = ExcelData::all()->toArray(); //dd($this->data['sales']); return view('sales.sales_dashboard',$this->data); } @foreach($sales as $key => $values) @foreach($values as $headings=> $heading) @endforeach @endforeach @foreach($sales as $key => $values) @foreach($values as $key=> $value) @endforeach @endforeach



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2W7N1ky
via IFTTT

Aucun commentaire:

Enregistrer un commentaire