Skip to content

Commit

Permalink
load tables on menu page on business domains
Browse files Browse the repository at this point in the history
  • Loading branch information
alibaghernia committed May 21, 2024
1 parent 10b7c59 commit 82d9079
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use App\Models\ConditionalDiscount;
use App\Models\Event;
use App\Models\Item;
use App\Models\Table;
use App\Models\WorkingHour;
use App\Services\Business\BusinessServiceInterface;
use Illuminate\Http\Request;
Expand Down Expand Up @@ -51,11 +52,16 @@ public function menu()
$business = $this->business;
$menu = $this->business->visibleCategories->load('visibleItems');
$dayOffers = $this->businessService->getDayOffers($this->business);
// todo move to service
$tables = Table::select(['id', 'code'])
->where('cafe_restaurant_id', $business->id)
->get();

return view('main_domain.business.menu', compact([
'business',
'menu',
'dayOffers'
'dayOffers',
'tables',
]));
}

Expand Down

0 comments on commit 82d9079

Please sign in to comment.