Read photoMarhun in CartController

This commit is contained in:
Amir
2022-12-01 09:49:50 +08:00
parent 9050816d6f
commit 92d2460a95
5 changed files with 52 additions and 0 deletions
+5
View File
@@ -19,6 +19,8 @@ use App\Models\LelongBidMarhun;
use App\Models\LelKarat;
use App\Models\Cart;
use Carbon\Carbon;
use App\Models\FileMarhun;
class CartController extends Controller
{
@@ -78,6 +80,9 @@ class CartController extends Controller
$total_surat = 0;
foreach ($cart as $index1 => $data) {
$fileMarhun = FileMarhun::where('lelongbid_id', $data['id'])->get();
$cart[$index1]['filemarhun'] = $fileMarhun;
$total_hargabida += $data['hargabida'];
$total_berat += $data['berat'];
$total_surat += 1;