Created
January 5, 2021 21:09
-
-
Save jongravois/58df7795f5f5e63767ca490d1947ac26 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\Sales; | |
use App\Models\Consignment; | |
use App\Models\Project; | |
use Livewire\Component; | |
class ProfitReport extends Component | |
{ | |
public $search = ''; | |
public function render() | |
{ | |
return view('livewire.sales.profit-report', [ | |
'projects' => Project::lookFor($this->search) | |
->with('fins') | |
->whereReportGp(true) | |
->get() | |
->sortByDesc('fins.current_rate') | |
]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment