@extends('layouts.app') @section('title', 'Company profile') @section('content') @php $tab = request('tab', 'identity'); $tabs = [ 'identity' => 'Company details', 'contact' => 'Contact & location', 'branding' => 'Logo & branding', 'financial' => 'Financial defaults', 'documents' => 'Invoices & numbering', 'integrations' => 'SMS & maps', ]; $input = 'w-full rounded-lg border-slate-300 text-sm shadow-sm focus:border-slate-400 focus:ring-2 focus:ring-slate-200'; $label = 'mb-1 block text-sm font-medium text-slate-700'; $help = 'mt-1 text-xs text-slate-500'; @endphp
@if ($missing)

Finish setting up your company

Still to fill: {{ implode(', ', $missing) }}. Invoices, SMS and delivery routes use these details.

@endif {{-- Tabs --}}
@foreach ($tabs as $key => $name) @endforeach
@csrf @method('PUT') {{-- ============ Company details ============ --}}

Company details

Shown on invoices, receipts and every printed document.

{{-- ============ Contact & location ============ --}}

Contact & location

Nursery GPS location

Delivery routes are calculated from this point, so set it while standing at the nursery gate.

{{-- ============ Branding ============ --}}

Logo & branding

@foreach ([['logo', 'Logo', 'Square PNG works best. Shown in the app and on invoices.'], ['letterhead', 'Letterhead', 'Full-width image printed at the top of documents.'], ['favicon', 'Browser icon', 'Small square icon for the browser tab.']] as [$field, $name, $hint])
@if ($profile->{$field . '_path'}) @endif

{{ $hint }}

@endforeach
{{-- ============ Financial defaults ============ --}}

Financial & operating defaults

Used for new shops unless changed on the shop.

How often a shop should be visited.

No order for this long → shows on the inactive list.

{{-- ============ Documents ============ --}}

Invoices & numbering

@foreach ([ ['invoice_prefix', 'Invoice prefix', 'invoice_next_no', 'Next invoice no.'], ['order_prefix', 'Order prefix', 'order_next_no', 'Next order no.'], ['receipt_prefix', 'Receipt prefix', 'receipt_next_no', 'Next receipt no.'], ] as [$pf, $pfLabel, $nf, $nfLabel])
@endforeach
{{-- ============ Integrations ============ --}}

SMS & maps

Used for delivery routes and live tracking.

48 hours = the 2-day expiry agreed in the proposal.

{{-- Save bar --}}

Changes apply everywhere immediately.

Cancel
@endsection