@php $card_theme = json_decode($business->card_theme); $content = json_decode($business->content); $no = 1; $social_no = 1; $stringid = $business->id; $appointment_no = 0; $service_row_no = 0; $testimonials_row_no = 0; $gallery_row_no = 0; $product_row_no = 0; $is_preview_bussiness_hour = 'false'; $banner = \App\Models\Utility::get_file('card_banner'); $logo = \App\Models\Utility::get_file('card_logo'); $image = \App\Models\Utility::get_file('testimonials_images'); $s_image = \App\Models\Utility::get_file('service_images'); $pr_image = \App\Models\Utility::get_file('product_images'); $meta_image = \App\Models\Utility::get_file('meta_image'); $gallery_path= \App\Models\Utility::get_file('gallery'); $SITE_RTL = Utility::settings()['SITE_RTL']; $chatgpt_setting= App\Models\Utility::chatgpt_setting(\Auth::user()->creatorId()); $qr_path = \App\Models\Utility::get_file('qrcode'); $users = \Auth::user(); $businesses = App\Models\Business::allBusiness(); $currantBusiness = $users->currentBusiness(); $bussiness_id = $users->current_business; @endphp @extends('layouts.admin') @push('css-page') @endpush @section('page-title') {{ __('Edit Business') }} @endsection @section('title') {{ __('Business Information') }} @endsection @section('breadcrumb') @endsection @section('action-btn') @if ($business->status != 'lock')
{{-- @can('view analytics business')--}} {{-- --}} {{-- @endcan--}} {{-- @can('calendar appointment')--}} {{-- --}} {{-- @endcan--}} {{-- @can('manage contact')--}} {{-- --}} {{-- @endcan--}}
@can('delete business')
{!! Form::open([ 'method' => 'DELETE', 'route' => ['business.destroy', $business->id], 'id' => 'delete-form-' . $business->id, ]) !!} {!! Form::close() !!}
@endcan
@endif @endsection @section('content')
{{ Form::open(['route' => ['business.edit-theme', $business->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
{{__('Select Theme:')}}
{{ Form::hidden('themefile', null, ['id' => 'themefile']) }}
@foreach (\App\Models\Utility::themeOne() as $key => $v) @if (in_array($key, Auth::user()->getPlanThemes()))
{{__('Modern Theme')}}
@foreach ($v as $css => $val) @endforeach
@endif @endforeach
{{ Form::close() }}
{{__('Preview')}}
{{ Form::open(['route' => ['business.update', $business->id], 'method' => 'put', 'enctype' => 'multipart/form-data','onsubmit' => 'return submitForm()']) }} {{-- {{ Form::open(['route' => ['business.update', $business->id], 'method' => 'put', 'enctype' => 'multipart/form-data']) }} --}}
{{__('Edit Business Details:')}}

{{__('Banner:')}}

{{__('Logo:')}}

{{__('Personal info')}}
@if ($chatgpt_setting['enable_chatgpt'] == 'on') @endif
{{--
--}}
{{ Form::label('Title', __('Title:'), ['class' => 'form-label']) }} {!! Form::text('title', $business->title, ['class' => 'form-control emojiarea', 'id' => $stringid . '_title', 'placeholder' => __('Enter Title'),'data-name'=>'business_title']) !!} @error('title') {{ $message }} @enderror
{{ Form::label('Designation', __('Designation:'), ['class' => 'form-label']) }} {{ Form::text('designation', $business->designation, ['class' => 'form-control', 'id' => $stringid . '_designation', 'placeholder' => __('Enter Designation')]) }} @error('title') {{ $message }} @enderror
{{ Form::label('Sub_Title', __('Sub Title:'), ['class' => 'form-label']) }} {{ Form::text('sub_title', $business->sub_title, ['class' => 'form-control validation_subtitle emojiarea', 'id' => $stringid . '_subtitle', 'placeholder' => __('Enter Sub Title')]) }} @error('sub_title') {{ $message }} @enderror
{{ Form::label('Description', __('Description:'), ['class' => 'form-label']) }} {{ Form::textarea('description', $business->description, ['class' => 'form-control description-text emojiarea', 'rows' => '3', 'cols' => '30', 'id' => $stringid . '_desc', 'placeholder' => __('Enter Description')]) }} @error('description') {{ $message }} @enderror
{{--
--}}
{{__('Personalized link:')}}
{{ Form::text('slug', $business->slug, ['class' => 'input-group-text text-start', 'placeholder' => __('Enter Slug')]) }}
{{__('Settings:')}}

@if (!is_null($contactinfo_content)) @foreach ($contactinfo_content as $key => $val) @foreach ($val as $key1 => $val1) @if ($key1 != 'id')
@if ($key1 == 'Address') @foreach ($val1 as $key2 => $val2)
@endforeach @else
@endif
@endif @php $no++; @endphp @endforeach @endforeach @endif

{{__('Day')}}
{{__('Start Time')}}
{{__('End Time')}}
@foreach ($days as $k => $day)
$k) && $business_hours->$k->days == 'on' ? 'checked' : '' }} @endif>
@endforeach

{{__('Start Time')}}
{{__('End Time')}}
{{__('Delete')}}
@if (!is_null($appoinment_hours)) @foreach ($appoinment_hours as $k => $hour) @php $appointment_no++; @endphp @endforeach @endif

@php $image_count = 0; @endphp @if (!is_null($services_content)) @foreach ($services_content as $k1 => $content)
{{-- start time --}}
images
{{__('Upload')}}
@if ($chatgpt_setting['enable_chatgpt'] == 'on') @endif {{--
--}}
{{--
--}}
{{-- end time --}}
@php $image_count++; $service_row_no++; @endphp @endforeach @endif
{{__('Add New Service')}}
{{-- Product Section --}}

@php $pr_image_count = 0; @endphp @if (!is_null($products_content)) @foreach ($products_content as $k1 => $content)
{{-- start time --}}
images
{{__('Upload')}}
{{-- @if ($chatgpt_setting['enable_chatgpt'] == 'on') @endif --}} {{--
--}}
{{--
--}}
{{-- end time --}}
@php $pr_image_count++; $product_row_no++; @endphp @endforeach @endif
{{__('Add New Product')}}
{{-- Product Section End --}}

{{-- start --}} @php $t_image_count = 0; $t_rating_count = 0; @endphp @if (!is_null($testimonials_content)) @foreach ($testimonials_content as $k2 => $testi_content)
{{__('Upload')}}
@if ($chatgpt_setting['enable_chatgpt'] == 'on') @endif
{{ $testi_content->rating }}/5
rating) && $testi_content->rating == '5' ? 'checked="checked"' : '' }} /> rating) && $testi_content->rating == '4' ? 'checked="checked"' : '' }} /> rating) && $testi_content->rating == '3' ? 'checked="checked"' : '' }} /> rating) && $testi_content->rating == '2' ? 'checked="checked"' : '' }} /> rating) && $testi_content->rating == '1' ? 'checked="checked"' : '' }} />
@php $t_rating_count++; $t_image_count++; $testimonials_row_no++; @endphp @endforeach @endif {{-- end --}}
{{__('Add New Testimonials')}}

{{-- start --}}
@if (!is_null($social_content)) @foreach ($social_content as $social_key => $social_val) @foreach ($social_val as $social_key1 => $social_val1) @if ($social_key1 != 'id') @endif @php $social_no++; @endphp @endforeach @endforeach @endif
{{-- end --}}

{{-- Start Gallery --}}

{{-- Part of radio button --}}
{{-- End part of radio button --}} {{-- Start Custom Tab --}}
{{ Form::label('upload_video', __('Upload Video'), ['class' => 'form-label']) }}
{{ Form::label('upload_image', __('Upload Image'), ['class' => 'form-label']) }}
{{ Form::label('custom_video_link', __('Custom video link'), ['class' => 'form-label']) }}
{{ Form::text('custom_video_link', null, ['class' => 'form-control', 'placeholder' => __('')]) }}
{{ Form::label('custom_image_link', __('Custom image link'), ['class' => 'form-label']) }}
{{ Form::text('custom_image_link', null, ['class' => 'form-control', 'placeholder' => __('')]) }}
{{-- End Custom Tab --}}
{{-- End Gallery --}}
{{ Form::close() }}
{{__('Preview')}}
@include('card.' . $card_theme->theme . '.index')
{{ Form::open(['route' => ['business.domain-setting', $business->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
{{__('Custom Domain')}}
{{-- Start of Custom Domain/Business Link/Sub Domain --}} @if ($plan->enable_custdomain == 'on' || $plan->enable_custsubdomain == 'on')
@if ($plan->enable_custdomain == 'on')
@endif @if ($plan->enable_custsubdomain == 'on')
enable_subdomain == 'on' ? 'active' : '' }}>
@endif
{{-- custom domain view --}}
{{ Form::label('business_domain', __('Custom Domain'), ['class' => 'form-label']) }} {{ Form::text('domains', $business->domains, ['class' => 'form-control', 'placeholder' => __('xyz.com')]) }}
@if ($domainPointing == 1) @else @endif {{-- End custom domain --}} @if ($plan->enable_custsubdomain == 'on')
{{ Form::label('business_subdomain', __('Sub Domain'), ['class' => 'form-label']) }}
{{ Form::text('subdomain', $business->slug, ['class' => 'form-control', 'placeholder' => __('Enter Domain'), 'readonly']) }}
.{{ $subdomain_name }}
@endif @if ($subdomainPointing == 1) @else @endif
@else
@endif {{-- End of Custom Domain/Business Link/Sub Domain --}} {{-- Start of Custom JS and CSS --}}
{{__('Custom JS and CSS')}}
@error('customjs') {{ $message }} @enderror
@error('customcss') {{ $message }} @enderror
{{-- End of Custom JS and CSS --}} {{-- Start of Google Fonts --}}
{{__('Google Fonts:')}}
@error('google_fonts') {{ $message }} @enderror
{{-- End of Google Fonts --}} {{-- Start of Password --}}
{{__('Password:')}}
{{__('On/Off:')}}
enable_password) && $business->enable_password == 'on' ? 'checked="checked"' : '' }}/>
{{-- End of Password --}} {{-- Start Branding --}} @if ($plan->enable_branding == 'on')
{{__('Branding:')}}
{{__('On/Off:')}}
@endif {{-- End Branding --}}
{{ Form::close() }}
{{__('Preview')}}
{{ Form::open(['route' => ['business.block-setting', $business->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
{{__('Reorder Blocks')}}
    @for ($i = 1; $i <= 12; $i++) @foreach ($card_theme->order as $order_key => $order_value) @if ($i == $order_value)
  • @if ($order_key == 'scan_me')
    {{__('Scan Me')}}
    @elseif($order_key == 'contact_info')
    {{__('Contact Info')}}
    @elseif($order_key == 'bussiness_hour')
    {{__('Bussiness Hour')}}
    @elseif($order_key == 'custom_html')
    {{__('Custom HTML')}}
    @else
    {{__(ucfirst($order_key))}}
    @endif
    @if ($order_key != 'description' && $order_key != 'more' && $order_key != 'scan_me') {{__('On/Off:')}}
    id) == '1' ? 'checked="checked"' : '' }}/>
    @else {{__('This is required')}} @endif
  • @endif @endforeach @endfor

{{__('Note: You can easily order change of card blocks using drag & drop.')}}

{{ Form::close() }}
{{ Form::open(['route' => ['business.seo-setting', $business->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
{{__('SEO')}}
@if ($chatgpt_setting['enable_chatgpt'] == 'on') @endif
{{ Form::label('meta_keyword', __('Meta Keywords'), ['class' => 'form-label']) }} {{ Form::text('meta_keyword', $business->meta_keyword, ['class' => 'form-control', 'rows' => '3', 'placeholder' => __('Enter Meta Keywords')]) }}
@error('metakeywords') {{ $message }} @enderror
{{ Form::label('meta_description', __('Meta Description'), ['class' => 'form-label']) }} {{ Form::textarea('meta_description', $business->meta_description, ['class' => 'form-control', 'rows' => '3', 'cols' => '30', 'placeholder' => __('Enter Meta Description')]) }}
@error('meta_description') {{ $message }} @enderror
{{-- Meta Image --}}
{{ Form::label('meta_image', __('Meta Image'), ['class' => 'form-label']) }}
your image
@error('meta_image') @enderror
{{-- End Meta Image --}}
{{ Form::label('google_analytic', __('Google Analytic'), ['class' => 'form-label']) }} {{ Form::text('google_analytic', $business->google_analytic, ['class' => 'form-control', 'placeholder' => 'UA-XXXXXXXXX-X']) }}
@error('google_analytic') {{ $message }} @enderror
{{ Form::label('facebook_pixel_code', __('Facebook Pixel'), ['class' => 'form-label']) }} {{ Form::text('fbpixel_code', $business->fbpixel_code, ['class' => 'form-control', 'placeholder' => 'UA-0000000-0']) }}
@error('facebook_pixel_code') {{ $message }} @enderror
{{ Form::close() }}
{{-- Start Pixel Setting --}}
{{__('Pixel Fields')}}
@can('pixel settings business') @endcan
@foreach ($PixelFields as $pixel) @endforeach
{{__('Platform')}} {{__('Pixel ID')}} {{__('Action')}}
{{ ucfirst($pixel->platform) }} {{ $pixel->pixel_id }} @can('pixel settings business')
{!! Form::open(['method' => 'DELETE', 'route' => ['pixel.destroy', $pixel->id],'id'=>'delete-form-'.$pixel->id]) !!} {!! Form::close() !!}
@endcan
{{-- End Pixel Setting --}}
{{-- PWA Tab --}}
{{ Form::open(['route' => ['business.pwa-setting', $business->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
{{__('PWA (Progressive Web App)')}}
{{ Form::label('pwa_store', __('Progressive Web App (PWA)'), ['class' => 'form-check-label mb-3']) }}
@if ($plan->pwa_business == 'on')
{{ Form::label('pwa_app_title', __('App Title'), ['class' => 'form-label']) }} {{ Form::text('pwa_app_title', !empty($pwa_data->name) ? $pwa_data->name : '', ['class' => 'form-control', 'placeholder' => __('App Title')]) }}
{{ Form::label('pwa_app_name', __('App Name'), ['class' => 'form-label']) }} {{ Form::text('pwa_app_name', !empty($pwa_data->short_name) ? $pwa_data->short_name : '', ['class' => 'form-control', 'placeholder' => __('App Name')]) }}
{{ Form::label('pwa_app_background_color', __('App Background Color'), ['class' => 'form-label']) }}
{{ Form::color('pwa_app_background_color', !empty($pwa_data->background_color) ? $pwa_data->background_color : '', ['class' => 'form-control color-picker', 'placeholder' => __('18761234567')]) }} {{-- --}}
{{ Form::label('pwa_app_theme_color', __('App Theme Color'), ['class' => 'form-label']) }}
{{ Form::color('pwa_app_theme_color', !empty($pwa_data->theme_color) ? $pwa_data->theme_color : '', ['class' => 'form-control color-picker', 'placeholder' => __('18761234567')]) }} {{-- --}}
@endif
{{ Form::close() }}
{{-- PWA Tab END --}} {{-- Start GDPR Cookies --}} {{-- End GDPR Cookies --}} {{-- Start Custom QR-Code --}} @if(isset($plan->enable_qr_code) && ($plan->enable_qr_code=="on"))
{{ Form::open(['route' => ['business.qrcode_setting', $business->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
{{__('Qr Code Settings:')}}
{{ Form::label('Foreground Color', __('Foreground Color'), ['class' => 'form-label']) }}
{{ Form::label('Background Color', __('Background Color'), ['class' => 'form-label']) }}
{{ Form::label('Corner Radius', __('Corner Radius'), ['class' => 'form-label']) }}
{{ Form::label('Text', __('Text'), ['class' => 'form-label']) }}
{{ Form::label('Text Color', __('Text Color'), ['class' => 'form-label']) }}
{{ Form::label('image', __('Image'), ['class' => 'form-label']) }}
{{ Form::label('Size', __('Size'), ['class' => 'form-label']) }}
{{ Form::close() }}
@endif {{-- End Custom QR-Code --}} {{-- Payment Setting --}}
{{ Form::open(['route' => ['business.payment_setting', $business->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
{{__('Payment Settings:')}}
{{__('On/Off:')}}
is_enabled) && $cardPayment->is_enabled == 1 ? 'checked="checked"' : '' }}>
{{ Form::label('payment_amount', __('Payment Amount'), ['class' => 'form-label']) }} {{ Form::text('payment_amount', $cardPayment ? $cardPayment->payment_amount : '', ['class' => 'form-control']) }} @error('payment_amount') {{ $message }} @enderror
{{ __('Payment Method') }}

{{ Form::label('stripe_key', __('Stripe Key'), ['class' => 'form-label']) }} {{ Form::text('stripe_key', isset($cardPayment_content->stripe) && is_object($cardPayment_content->stripe) ? $cardPayment_content->stripe->stripe_key : null, ['class' => 'form-control', 'placeholder' => __('Enter Stripe Key')]) }}
@if ($errors->has('stripe_key')) {{ $errors->first('stripe_key') }} @endif
{{ Form::label('stripe_secret', __('Stripe Secret'), ['class' => 'form-label']) }} {{ Form::text('stripe_secret', isset($cardPayment_content->stripe)&& is_object($cardPayment_content->stripe) ?$cardPayment_content->stripe->stripe_secret:null, ['class' => 'form-control ', 'placeholder' => __('Enter Stripe Secret')]) }} @if ($errors->has('stripe_secret')) {{ $errors->first('stripe_secret') }} @endif

paypal) && $cardPayment_content->paypal->paypal_mode === 'sandbox' ? 'checked' : '' }}>
paypal)&&$cardPayment_content->paypal->paypal_mode === 'live' ? 'checked' : '' }}>
@if ($errors->has('paypal_client_id')) {{ $errors->first('paypal_client_id') }} @endif

@if ($errors->has('paypal_secret_key')) {{ $errors->first('paypal_secret_key') }} @endif
{{ Form::close() }}
{{-- Payment Setting End --}}
@endsection @push('custom-scripts') @endpush