@extends('layouts.app') @section('title', 'Edit Sale ' . $sale->invoice_no) @php $shiftClosed = (bool) optional($sale->register)->closed_at; $soldBy = $sale->user?->name ?? $sale->register?->user?->name ?? 'Unknown'; @endphp @section('content')