@extends('backend.template.layouts.template-base') @section('title', 'Settings - Invoice Setting') @section('content') @php $scheduledDeliveryEnabled = old( 'scheduled_delivery_enabled', ($settings['scheduled_delivery_enabled'] ?? '1') === '1' ); // No old() here: slots aren't posted by this form any more, they come // straight from the Delivery Slots master as models. $scheduledSlots = $scheduledSlots ?? collect(); // Defaults to ON — every store behaved this way before the master switch // existed, so an unset key must not silently withdraw the option. $vkDeliverNowAvailable = old( 'vital_kitchen_deliver_now_available', ($settings['vital_kitchen_deliver_now_available'] ?? '1') === '1' ); $vkDeliverNowEnabled = old( 'vital_kitchen_deliver_now_enabled', ($settings['vital_kitchen_deliver_now_enabled'] ?? '0') === '1' ); $vkDeliverNowFrom = old('vital_kitchen_deliver_now_from', $settings['vital_kitchen_deliver_now_from'] ?? '09:00'); $vkDeliverNowTo = old('vital_kitchen_deliver_now_to', $settings['vital_kitchen_deliver_now_to'] ?? '21:00'); @endphp

Invoice Settings

{{-- ordersettings --}}
@csrf

Order Identity

Manage Controls

Order Auto-confirm

Turn On auto-confirm to make users to wait for confirmation

Allow Cancellation

If turned On, Customer get provision to cancel their orders

ⓘ Within the define cancellation time limit customers can cancel their Orders.
Scheduled Delivery

If turned off users will not able to schedule their delivery

{{-- Slot times, grouping, cutoff and per-date availability now live entirely on the Delivery Calendar screen — no longer duplicated here, so there's only ever one place to manage them. --}} Manage Delivery Slots & Calendar @error('scheduled_delivery_enabled')
{{ $message }}
@enderror
{{-- "Offer Deliver Now" (and its time-window sub-setting) moved to the Delivery Calendar screen, per-date — an admin now sets Instant/ Deliver Now availability the same place as scheduled delivery and time slots, instead of one blanket global switch here. --}}

Invoice Identity

{{-- Company contact block printed on every invoice page header ("Bill From" + top-right company identity). These were read by the invoice generator but had no form fields — leaving them permanently empty/'-' on the PDF. --}}

Manage Controls

Auto Generate Invoice

If turned Off, Customers will not receive invoice until admin generate it

Show Logo

If turned Off, logo will not appear in Invoice

Show Signature

Turn On to show the signature in the Invoice

Click to Upload or drag and drop

Upload image format should be only PNG, JPG or JPEG.
Also, max file size should be 2MB
@endsection