{{ __('New worksheet') }}
@if ($worksheets->isEmpty())
@else
@foreach ($worksheets as $ws) @endforeach
{{ __('Title') }} {{ __('Customer') }} {{ __('Cost') }} {{ __('Price') }} {{ __('Margin') }} {{ __('Updated') }} {{ __('Actions') }}
{{ $ws->title }} @if ($ws->is_template){{ __('Template') }}@endif @if ($ws->quote_id){{ __('Quoted') }}@endif @if ($ws->product_id){{ __('Product') }}@endif {{ $ws->customer?->name ?: '—' }} {{ number_format((float) $ws->computed_cost, 2) }} {{ number_format((float) $ws->computed_price, 2) }} {{ $ws->computed_margin !== null ? number_format((float) $ws->computed_margin, 1).'%' : '—' }} {{ $ws->updated_at?->format('Y-m-d') }}
{{ __('Open') }}
@endif
{{ $worksheets->links() }}