@extends('layouts.dashboard') @section('content') @php /** * Shared personal account edit page for EVERY signed-in role — super_admin, * vendor, the vendor staff sub-roles (manager / kitchen / host / waiter) and the * driver. Rendered inside the dashboard layout, so no header/sidebar here - just * the body. Expects: $user (the signed-in user row), $backUrl (post target for * this area). Optional: $driver (rider row) renders the extra vehicle section. * * Split into sections the same way the Settings pages are: the .qm-settings grid * (sticky nav column + panel column) with .qm-settings-panel sections driven by * qm-tabs.js, so personal details and notification preferences are two * destinations rather than one long scroll. Each section uses the shared card * anatomy (.qm-card-head over .qm-card-body, a .qm-tip on the title for its note) * so this page reads identically to the admin/vendor Settings pages. The two panels * hold independent forms posting to different endpoints, so switching section never * discards anything the other form is holding. */ $backUrl = $backUrl ?? '/'; $user = $user ?? []; $driver = $driver ?? []; /* A number waiting on a texted code, when the host controller requires one. Only the vendor dashboard passes it, so admin and driver render exactly as before. */ $phonePend = is_array($pendingPhone ?? null) ? $pendingPhone : null; @endphp
{{ t_raw('account.phone_verify_sub', [':phone' => (string) $phonePend['phone']]) }}