@php
    /** @var \App\Models\Order|\Closure|null $record */
    $record = isset($getRecord) && is_callable($getRecord) ? $getRecord() : ($record ?? null);

    if ($record instanceof \Closure) {
        $record = $record();
    }
@endphp

@include('filament.orders.partials.order-progress', ['record' => $record])
