update
This commit is contained in:
@@ -129,4 +129,13 @@ class KomuditiController extends Controller
|
||||
|
||||
return response()->json($produk);
|
||||
}
|
||||
|
||||
public function rekodTransaksiHarian(){
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
|
||||
$komuditi_transaksi = KomuditiTransaksi::on('mysql7')->where('tarikh','=',$current->toDateString())->get();
|
||||
|
||||
return response()->json($komuditi_transaksi);
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,8 @@ class TebusController extends Controller
|
||||
|
||||
$upahsemasa = $gadai_data['jbg'] * (($gadai_data['kadarupah']/100 )* $gadai_data['bakipjm']);
|
||||
|
||||
dd($upahsemasa);
|
||||
|
||||
$transaction = Transaction::on('mysql7')
|
||||
->where('norujukan','=',$norujukan)
|
||||
->get();
|
||||
|
||||
Reference in New Issue
Block a user