$cek = DB::table('temp_obat')
->selectRaw('sum(total)')
->where('pasien', $id)
->get();
$total = $cek;
return view ('buy/bayar',compact('pasien'));
[enter image description here][1]
[1]: https://i.stack.imgur.com/UOwgL.pngstrong text
How to delete words sum(total) in my view blade
via Bony Joesadi