@extends('public.layout') @php $money = fn ($v) => $shop->currency.' '.number_format((float) $v, 2); $desc = \Illuminate\Support\Str::limit(strip_tags($product->description ?: $product->name.' — cash on delivery from '.$shop->name), 200); $withTax = bcadd((string) $product->sale_price, bcmul((string) $product->sale_price, bcdiv((string) $product->tax_rate, '100', 6), 2), 2); @endphp @section('title', $product->name.' · '.$shop->name) @section('meta') @if ($image) @else @endif @endsection @section('content')
@if ($image) {{ $product->name }} @endif

{{ $product->name }}

{{ $money($withTax) }} per {{ $product->unit }}@if ((float) $product->tax_rate > 0) · incl. {{ rtrim(rtrim((string) $product->tax_rate, '0'), '.') }}% tax @endif
{{ $inStock ? 'In stock' : 'Out of stock' }}
@if ($product->description)

{{ $product->description }}

@endif
@if ($inStock)
@csrf

Order now · pay cash on delivery

Fill in your details. The shop will call you to confirm.

@if ($errors->any())
@endif @php $field = 'mt-1 block w-full rounded-md border-gray-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500'; @endphp
{{-- Honeypot: hidden from people, irresistible to bots. --}}

No online payment. You pay the delivery person.

@endif @endsection