update notis, slipserahan bu user_id
This commit is contained in:
@@ -138,9 +138,9 @@ class NotisController extends Controller
|
||||
foreach($marhuns as $index1=>$cal){
|
||||
$customer = Customer::where('kpbaru','=',$cal['nokp'])
|
||||
->orWhere('kplama','=',$cal['nokp'])
|
||||
->join('daerah','customer.koddaerah','=','daerah.koddaerah')
|
||||
->join('negeri','customer.kodnegeri','=','negeri.kodnegeri')
|
||||
->join('poskod','customer.poskod','=','poskod.poskod')
|
||||
->join('daerah','poskod.koddaerah','=','daerah.koddaerah')
|
||||
->join('negeri','poskod.kodnegeri','=','negeri.kodnegeri')
|
||||
->first();
|
||||
|
||||
$listsag = Gadai::on($datalelong[0]['kodcaw'])->whereIn('norujukan', $arraynorujukan)
|
||||
@@ -152,11 +152,14 @@ class NotisController extends Controller
|
||||
$bayaran = $listing['hargajualan'] - $listing['bakihargajualan'];
|
||||
|
||||
}
|
||||
$marhuns[$index1]['nama'] = $customer;
|
||||
$marhuns[$index1]['nama'] = ($customer) ? $customer : dd($cal['nokp']);
|
||||
$marhuns[$index1]['listsag'] = $listsag;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// dd($marhuns->toArray());
|
||||
// $arraycustomer = $gadaicaw2->pluck('nokp')->toArray();
|
||||
// $datacustomer = $gadaicaw2->get();
|
||||
// $customer = Customer::query()
|
||||
|
||||
Reference in New Issue
Block a user