@extends('layouts.admin') @section('title', 'Business Settings') @php // Decide which tab is active: an errored section wins, then the ?tab= query, else Basic. $tabFields = [ 'basic' => ['business_name', 'site_title', 'business_phone', 'business_email', 'business_address', 'primary_color', 'secondary_color', 'business_logo', 'favicon'], 'payment' => ['payment_bkash_app_key', 'payment_bkash_app_secret', 'payment_bkash_username', 'payment_bkash_password', 'payment_bkash_mode', 'payment_nagad_merchant_id', 'payment_nagad_merchant_number', 'payment_nagad_public_key', 'payment_nagad_private_key', 'payment_nagad_mode', 'payment_sslcommerz_store_id', 'payment_sslcommerz_store_password', 'payment_sslcommerz_mode', 'payment_shurjopay_username', 'payment_shurjopay_password', 'payment_shurjopay_prefix', 'payment_shurjopay_mode', 'payment_shurjopay_base_url', 'payment_shurjopay_return_url', 'payment_shurjopay_cancel_url', 'payment_default_gateway', 'visa_online_payment_enabled'], 'sms' => ['sms_provider', 'sms_sender_id', 'sms_api_key', 'sms_api_secret', 'sms_base_url'], 'email' => ['mail_mailer', 'mail_host', 'mail_port', 'mail_username', 'mail_password', 'mail_encryption', 'mail_from_address', 'mail_from_name', 'admin_notification_emails'], 'booking' => ['booking_advance_type', 'booking_advance_value'], 'google-signin' => ['customer_signin_required', 'google_client_id', 'google_client_secret', 'google_redirect_uri'], 'google-reviews' => ['google_places_api_key', 'google_reviews_place_id'], 'terms' => ['terms_and_conditions'], 'seo' => ['seo_meta_title', 'seo_meta_description', 'seo_meta_keywords', 'seo_og_image', 'website_url'], 'analytics' => ['google_analytics_id', 'google_tag_manager_id', 'google_analytics_script'], ]; $activeTab = request('tab', 'basic'); foreach ($tabFields as $tab => $fields) { if ($errors->hasAny($fields)) { $activeTab = $tab; break; } } $secretPlaceholder = fn ($key) => !empty($settings[$key . '_set']) ? '•••••••• (saved — leave blank to keep)' : ''; @endphp @section('content') TripFindy Flight API setup
{{-- A. Basic Setup --}}
@csrf @method('PUT')
@error('business_name'){{ $message }}@enderror
@error('site_title'){{ $message }}@enderror
@error('business_phone'){{ $message }}@enderror
@error('business_email'){{ $message }}@enderror
@error('business_address'){{ $message }}@enderror
@error('office_hours'){{ $message }}@enderror
{{-- Google Maps → Share → Embed a map → copy the src from the iframe. --}} On Google Maps: Share → Embed a map → copy the src value out of the iframe. Leave blank to hide the map on the contact page. @error('map_embed_url'){{ $message }}@enderror

Social Profiles
Shown on the contact page and in the footer. Each icon appears only when its link is filled in.
@foreach ([ ['social_facebook', 'Facebook', 'https://facebook.com/yourpage'], ['social_instagram', 'Instagram', 'https://instagram.com/yourpage'], ['social_twitter', 'X / Twitter', 'https://x.com/yourpage'], ['social_linkedin', 'LinkedIn', 'https://linkedin.com/company/yourpage'], ['social_youtube', 'YouTube', 'https://youtube.com/@yourchannel'], ] as [$key, $label, $placeholder])
@error($key){{ $message }}@enderror
@endforeach
Number only — the website builds the wa.me link. @error('social_whatsapp'){{ $message }}@enderror
Website default is used until you save a custom color. @error('primary_color'){{ $message }}@enderror
Website default is used until you save a custom color. @error('secondary_color'){{ $message }}@enderror
Shown in the website header, on a white background. The company name is not printed beside it, so use a logo that includes your name. @error('business_logo'){{ $message }}@enderror @if(!empty($settings['business_logo'])) @endif
{{-- Shown on the dark footer, where a dark header logo would vanish. --}} Shown in the website footer, on a dark background — use a light or reversed version. Falls back to the header logo if left empty. @error('footer_logo'){{ $message }}@enderror @if(!empty($settings['footer_logo'])) @endif
The small icon in the browser tab. @error('favicon'){{ $message }}@enderror @if(!empty($settings['favicon'])) @endif
{{-- B. Payment Gateway --}}
@csrf @method('PUT') @php $liveGateways = app(\App\Services\PaymentGatewayManager::class); $liveEnabled = $liveGateways->enabled(); $liveDefault = $liveGateways->default()?->slug(); @endphp
@if($liveEnabled) Live on the website: @foreach($liveEnabled as $g) {{ $g->label() }} — {{ $g->mode() }} @endforeach
Customers choose between these at checkout. The default below is pre-selected for them.
@else No gateway is live yet.
Enable ShurjoPay or SSLCommerz below and save its credentials — until then the website cannot take online payments.
@endif
Only ShurjoPay and SSLCommerz have a working checkout. bKash and Nagad store credentials here but are not offered to customers yet.
Pre-selected on the booking page. Ignored while that gateway is disabled.
bKash
Nagad
SSLCommerz
@php // What the gateway is told to send the customer back to when the // optional overrides below are left blank. $shurjoCallback = route('payments.callback', ['gateway' => 'shurjopay']); $shurjoModeHost = old('payment_shurjopay_mode', $settings['payment_shurjopay_mode']) === 'live' ? 'https://engine.shurjopayment.com' : 'https://sandbox.shurjopayment.com'; @endphp
ShurjoPay
Merchant prefix given by ShurjoPay.
Leave blank to use {{ $shurjoModeHost }} for the selected mode.
Leave both URLs blank unless this panel is reached on a different domain than the one configured here. They must point at {{ $shurjoCallback }} on a publicly reachable address — that route is what verifies the payment with ShurjoPay and confirms the booking. Sending the customer anywhere else leaves paid bookings unconfirmed.

Visa Applications
Charges the government fee plus the service fee set on each visa requirement, through the gateway the applicant picks. Off by default: submissions come in unpaid and the team arranges payment. Documents are stored either way, so a failed payment never loses an upload. Requirements priced at zero, or in a currency other than BDT, are never charged online.
{{-- C. SMS --}}
@csrf @method('PUT')
@error('sms_base_url'){{ $message }}@enderror
{{-- D. Email --}}
@csrf @method('PUT')
@error('mail_from_address'){{ $message }}@enderror
Super-admin users receive these alerts automatically. Add extra addresses here, separated by commas, spaces, or new lines. @error('admin_notification_emails'){{ $message }}@enderror
{{-- E. Booking Rules --}}
@csrf @method('PUT')
@error('booking_advance_type'){{ $message }}@enderror
@error('booking_advance_value'){{ $message }}@enderror
Minimum advance required to confirm a booking. Use a percentage of the total or a fixed amount.
{{-- F. Customer Accounts --}}
@csrf @method('PUT')
Sign-in requirement
On: package/stay booking and visa document submission are blocked until the visitor signs in or creates an account. Off (default): both continue to work as guest checkout, exactly as today — signing in is optional and only attaches the booking to their account if they happen to be logged in.
Google Sign-in
From the Google Cloud Console → APIs & Services → Credentials → OAuth 2.0 Client ID (Web application). Add this website's domain under "Authorized JavaScript origins".
Not currently used by sign-in itself (kept for future server-side Google features); safe to leave blank.
Not required for the current one-tap sign-in flow; leave blank unless a future integration asks for it. @error('google_redirect_uri'){{ $message }}@enderror
@csrf @method('PUT')
Homepage Google Reviews

Enable Places API (New) and billing in Google Cloud. Restrict this server key to Places API and your server IP. Google supplies up to five relevant reviews; the overall rating includes all Google reviews.

Use the Place ID of your Google Maps business listing, not its share URL. Clear to disable. @error('google_reviews_place_id'){{ $message }}@enderror
Encrypted on the server. Leave blank to retain the current key. @error('google_places_api_key'){{ $message }}@enderror
{{-- G. Terms & Conditions --}}
@csrf @method('PUT')
HTML is allowed. This content is exposed to the website via the API. @error('terms_and_conditions'){{ $message }}@enderror
{{-- I. SEO --}}
@csrf @method('PUT')
The public website's address. Used for canonical/OG URLs, the {{ url('/sitemap.xml') }} sitemap, and to send customers back to the website after payment. @error('website_url'){{ $message }}@enderror
@error('seo_meta_title'){{ $message }}@enderror
@error('seo_meta_description'){{ $message }}@enderror
@error('seo_meta_keywords'){{ $message }}@enderror
@error('seo_og_image'){{ $message }}@enderror @if(!empty($settings['seo_og_image'])) @endif
{{-- J. Google Analytics --}}
@csrf @method('PUT')
@error('google_analytics_id'){{ $message }}@enderror
@error('google_tag_manager_id'){{ $message }}@enderror
@error('google_analytics_script'){{ $message }}@enderror
@endsection