public function cekWBS($value)
 {
     $sap = Sap::select('wbs')->where('purchase_requisition', $value)->where('purchase_requisition', '!=', 'null')->groupBy('wbs');
     return true;
 }
 public function getDetailSap($type = '', $no_sap = '')
 {
     $var = $this->type_sap($type);
     $detail = Sap::select('id', 'purchase_order as po', 'purchase_requisition as pr', 'short_text', 'description', 'wbs_element as wbs')->where($var, $no_sap)->get();
     return view('sap.detail', compact('detail'));
 }