@extends('layouts.dashboard') @section('content') @php /** * Vendor → Branches: the owner's other venues, the groups they sit in, and the switcher. * * Its own page under Settings, between Device settings and Billing, rather than a tab inside * Settings: everything else on that screen configures THIS restaurant, while this list is about * the others — and switching branch from inside it meant leaving the page you were editing. * * The markup is the shared `branches-panel` partial, unchanged from when it was a tab, so both * this page and the five POST handlers on BranchesController describe the same thing. * * @var array $branches every restaurant this owner runs * @var array $stats 30-day paid orders + takings, keyed by restaurant id * @var array $groups the owner's groups, with branch counts * @var array $cuisines cuisine options for the add-branch form * @var int $activeRid the branch currently being operated */ @endphp @php /* .qm-d2: the dashboard density standard (app.css §35) */ @endphp
@partial('branches-panel', [ 'branches' => $branches ?? [], 'stats' => $stats ?? [], 'groups' => $groups ?? [], 'cuisines' => $cuisines ?? [], 'activeRid' => $activeRid ?? 0, 'plans' => $plans ?? [], 'payCards' => $payCards ?? [], ])
@php /* /.qm-d2 */ @endphp @endsection