Created
April 23, 2020 11:53
-
-
Save jongravois/086cb05aec87f81e1a7d335aed88740f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Livewire\Operations; | |
use App\Models\Warehouse; | |
use Livewire\Component; | |
class InventorySearch extends Component | |
{ | |
public $search = ''; | |
public $email = ''; | |
public $warehouse = ''; | |
public function render() | |
{ | |
return view('livewire.operations.inventory-search', [ | |
'warehouses' => Warehouse::search($this->search)->get(), | |
]); | |
} | |
public function generateWhseRpt() | |
{ | |
//TODO: dispatch job | |
} // end function | |
public function removeWarehouse() | |
{ | |
$this->warehouse = null; | |
} // end function | |
public function updateSeeker($whse) | |
{ | |
$this->warehouse = $whse->warehouse_code . '--' . $whse->description; | |
$this->search = null; | |
} // end function | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment