Skip to content

Instantly share code, notes, and snippets.

@jongravois
Created January 5, 2021 21:09
Show Gist options
  • Save jongravois/58df7795f5f5e63767ca490d1947ac26 to your computer and use it in GitHub Desktop.
Save jongravois/58df7795f5f5e63767ca490d1947ac26 to your computer and use it in GitHub Desktop.
<?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