update
This commit is contained in:
@@ -12,6 +12,7 @@ use Illuminate\Support\Facades\Session;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Twilio\Rest\Client;
|
||||
use App\Komoditi;
|
||||
|
||||
use Carbon\Carbon;
|
||||
|
||||
@@ -52,12 +53,15 @@ class CustomersController extends Controller
|
||||
// $customer_info = $customers_info;
|
||||
// }
|
||||
|
||||
$komoditi = Komoditi::first();
|
||||
$min_komoditi = $komoditi['min_komoditi'];
|
||||
|
||||
$bakilelong = Http::get(config('api.url') . '/api/bakilelong/cawangan/' . $auth_user['cawangan'] . '/' . Session::get('noic') . '/baki')->json();
|
||||
$rugilelong = Http::get(config('api.url') . '/api/bakilelong/cawangan/' . $auth_user['cawangan'] . '/' . Session::get('noic') . '/rugi')->json();
|
||||
|
||||
$request->session()->forget('page_reload');
|
||||
$request->session()->forget('norujukan');
|
||||
return view('customers.info',compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong'));
|
||||
return view('customers.info',compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong','min_komoditi'));
|
||||
}
|
||||
|
||||
public function search(Request $request){
|
||||
|
||||
Reference in New Issue
Block a user