@extends('layouts.public') @section('content') @php /** * Customer "Leave a review" — a focused form for one delivered order, shown inside * the account area (not the public restaurant page). Reviews are per order; the * controller (AccountController::reviewForm) redirects to My reviews if this specific * order was already reviewed. * @var array $order delivered order joined with its restaurant (restaurant_name, restaurant_slug, restaurant_logo, order_number) */ @endphp

{{ t_raw('account.leave_review_btn') }}

@php /* The page's messages belong UNDER its title band, inside the page the reader is looking at — not floating above it. getFlashes() consumes, so the layout's own call further out finds nothing and does not draw it twice. */ @endphp
@partial('flash')
@partial('account-nav')
{!! restaurant_logo_html(['logo' => $order['restaurant_logo'] ?? '', 'name' => $order['restaurant_name']], 'sm') !!} {{ $order['restaurant_name'] }} {{ $order['order_number'] }}

{!! t_raw('account.review_intro', [':name' => '' . e($order['restaurant_name']) . '']) !!}

@csrf
{{ t_raw('common.rating') }}
@php for ($s = 5; $s >= 1; $s--): $starLbl = $s > 1 ? t('account.star_label_many', [':n' => $s]) : t('account.star_label_one', [':n' => $s]); @endphp@endfor
{{ t_raw('common.cancel') }}
@endsection