@extends('layouts.admin.app') @section('title', translate('priority_setup')) @section('content')
@csrf
{{ translate('messages.After change any setup in this page must click the') }} {{ translate('messages.Save Information') }} {{ translate('messages.button, otherwise changes are not work.') }}

{{translate('Category_List')}}

{{ translate('The_Food_Category_list_groups_similar_items_together_arranged_with_the_latest_category_first_and_in_alphabetical_order.') }}

@php($category_list_default_status = \App\Models\BusinessSetting::where('key', 'category_list_default_status')->first()?->value ?? 1 )
@php($category_list_sort_by_general = \App\Models\PriorityList::where('name', 'category_list_sort_by_general')->where('type', 'general')->first()?->value ?? '' )
{{ translate('messages.To manage all your categories & subcategories, visit these pages') }} {{ translate('messages.Category') }} & {{ translate('messages.Sub-category') }}

{{translate('Cuisine_List')}}

{{ translate('Cuisines_are_lists_of_the_foods_people_like,_organize__by_putting_the_newest_ones_at_the_top_and_arranging_everything_alphabetically') }}

@php($cuisine_list_default_status = \App\Models\BusinessSetting::where('key', 'cuisine_list_default_status')->first()?->value ?? 1 )
@php($cuisine_list_sort_by_general = \App\Models\PriorityList::where('name', 'cuisine_list_sort_by_general')->where('type', 'general')->first()?->value ?? '' )

{{ translate('Popular food Nearby means the food items list which are mostly ordered by the customers and have good reviews & ratings') }}

@php($popular_food_default_status = \App\Models\BusinessSetting::where('key', 'popular_food_default_status')->first()) @php($popular_food_default_status = $popular_food_default_status ? $popular_food_default_status->value : 1)
@php($popular_food_sort_by_general = \App\Models\PriorityList::where('name', 'popular_food_sort_by_general')->where('type', 'general')->first()) @php($popular_food_sort_by_general = $popular_food_sort_by_general ? $popular_food_sort_by_general->value : '')
@php($popular_food_sort_by_unavailable = \App\Models\PriorityList::where('name', 'popular_food_sort_by_unavailable')->where('type', 'unavailable')->first()) @php($popular_food_sort_by_unavailable = $popular_food_sort_by_unavailable ? $popular_food_sort_by_unavailable->value : '')
@php($popular_food_sort_by_temp_closed = \App\Models\PriorityList::where('name', 'popular_food_sort_by_temp_closed')->where('type', 'temp_closed')->first()) @php($popular_food_sort_by_temp_closed = $popular_food_sort_by_temp_closed ? $popular_food_sort_by_temp_closed->value : '')
{{ translate('messages.To manage all foods, visit this page') }} {{ translate('messages.Food') }}

{{translate('Popular Restaurant')}}

{{ translate('Popular Restaurants is the list of customer choices in which customer ordered items most and also highly rated with good reviews') }}

@php($popular_restaurant_default_status = \App\Models\BusinessSetting::where('key', 'popular_restaurant_default_status')->first()) @php($popular_restaurant_default_status = $popular_restaurant_default_status ? $popular_restaurant_default_status->value : 1)
@php($popular_restaurant_sort_by_general = \App\Models\PriorityList::where('name', 'popular_restaurant_sort_by_general')->where('type', 'general')->first()) @php($popular_restaurant_sort_by_general = $popular_restaurant_sort_by_general ? $popular_restaurant_sort_by_general->value : '')
@php($popular_restaurant_sort_by_unavailable = \App\Models\PriorityList::where('name', 'popular_restaurant_sort_by_unavailable')->where('type', 'unavailable')->first()) @php($popular_restaurant_sort_by_unavailable = $popular_restaurant_sort_by_unavailable ? $popular_restaurant_sort_by_unavailable->value : '')
@php($popular_restaurant_sort_by_temp_closed = \App\Models\PriorityList::where('name', 'popular_restaurant_sort_by_temp_closed')->where('type', 'temp_closed')->first()) @php($popular_restaurant_sort_by_temp_closed = $popular_restaurant_sort_by_temp_closed ? $popular_restaurant_sort_by_temp_closed->value : '')

{{translate('New Restaurant')}}

{{ translate('The_New_restaurant_list_arranges_all_restaurants_based_on_the_latest_join_that_are_closest_to_the_customers_location.') }}

@php($new_restaurant_default_status = \App\Models\BusinessSetting::where('key', 'new_restaurant_default_status')->first()) @php($new_restaurant_default_status = $new_restaurant_default_status ? $new_restaurant_default_status->value : 1)
@php($new_restaurant_sort_by_general = \App\Models\PriorityList::where('name', 'new_restaurant_sort_by_general')->where('type', 'general')->first()) @php($new_restaurant_sort_by_general = $new_restaurant_sort_by_general ? $new_restaurant_sort_by_general->value : '')
@php($new_restaurant_sort_by_unavailable = \App\Models\PriorityList::where('name', 'new_restaurant_sort_by_unavailable')->where('type', 'unavailable')->first()) @php($new_restaurant_sort_by_unavailable = $new_restaurant_sort_by_unavailable ? $new_restaurant_sort_by_unavailable->value : '')
@php($new_restaurant_sort_by_temp_closed = \App\Models\PriorityList::where('name', 'new_restaurant_sort_by_temp_closed')->where('type', 'temp_closed')->first()) @php($new_restaurant_sort_by_temp_closed = $new_restaurant_sort_by_temp_closed ? $new_restaurant_sort_by_temp_closed->value : '')

{{translate('Restaurant List, Category wise restaurant list, Cuisine wise restaurant list')}}

{{ translate('A list of all the restaurants which are sorted based on latest joined, mostly ordered, customer choice and good review & ratings') }}

@php($all_restaurant_default_status = \App\Models\BusinessSetting::where('key', 'all_restaurant_default_status')->first()) @php($all_restaurant_default_status = $all_restaurant_default_status ? $all_restaurant_default_status->value : 1)
@php($all_restaurant_sort_by_general = \App\Models\PriorityList::where('name', 'all_restaurant_sort_by_general')->where('type', 'general')->first()) @php($all_restaurant_sort_by_general = $all_restaurant_sort_by_general ? $all_restaurant_sort_by_general->value : '')
@php($all_restaurant_sort_by_unavailable = \App\Models\PriorityList::where('name', 'all_restaurant_sort_by_unavailable')->where('type', 'unavailable')->first()) @php($all_restaurant_sort_by_unavailable = $all_restaurant_sort_by_unavailable ? $all_restaurant_sort_by_unavailable->value : '')
@php($all_restaurant_sort_by_temp_closed = \App\Models\PriorityList::where('name', 'all_restaurant_sort_by_temp_closed')->where('type', 'temp_closed')->first()) @php($all_restaurant_sort_by_temp_closed = $all_restaurant_sort_by_temp_closed ? $all_restaurant_sort_by_temp_closed->value : '')

{{translate('Food Campaign')}}

{{ translate('The food campaign includes the list of discounted food items offered for the customers') }}

@php($campaign_food_default_status = \App\Models\BusinessSetting::where('key', 'campaign_food_default_status')->first()) @php($campaign_food_default_status = $campaign_food_default_status ? $campaign_food_default_status->value : 1)
@php($campaign_food_sort_by_general = \App\Models\PriorityList::where('name', 'campaign_food_sort_by_general')->where('type', 'general')->first()) @php($campaign_food_sort_by_general = $campaign_food_sort_by_general ? $campaign_food_sort_by_general->value : '')
@php($campaign_food_sort_by_unavailable = \App\Models\PriorityList::where('name', 'campaign_food_sort_by_unavailable')->where('type', 'unavailable')->first()) @php($campaign_food_sort_by_unavailable = $campaign_food_sort_by_unavailable ? $campaign_food_sort_by_unavailable->value : '')
@php($campaign_food_sort_by_temp_closed = \App\Models\PriorityList::where('name', 'campaign_food_sort_by_temp_closed')->where('type', 'temp_closed')->first()) @php($campaign_food_sort_by_temp_closed = $campaign_food_sort_by_temp_closed ? $campaign_food_sort_by_temp_closed->value : '')

{{translate('Best Reviewed Food')}}

{{ translate('Best Reviewed items are the top most ordered item list of customer choice which are highly rated & reviewed ') }}

@php($best_reviewed_food_default_status = \App\Models\BusinessSetting::where('key', 'best_reviewed_food_default_status')->first()) @php($best_reviewed_food_default_status = $best_reviewed_food_default_status ? $best_reviewed_food_default_status->value : 1)
@php($best_reviewed_food_sort_by_general = \App\Models\PriorityList::where('name', 'best_reviewed_food_sort_by_general')->where('type', 'general')->first()) @php($best_reviewed_food_sort_by_general = $best_reviewed_food_sort_by_general ? $best_reviewed_food_sort_by_general->value : '')
@php($best_reviewed_food_sort_by_rating = \App\Models\PriorityList::where('name', 'best_reviewed_food_sort_by_rating')->where('type', 'rating')->first()) @php($best_reviewed_food_sort_by_rating = $best_reviewed_food_sort_by_rating ? $best_reviewed_food_sort_by_rating->value : '')
@php($best_reviewed_food_sort_by_unavailable = \App\Models\PriorityList::where('name', 'best_reviewed_food_sort_by_unavailable')->where('type', 'unavailable')->first()) @php($best_reviewed_food_sort_by_unavailable = $best_reviewed_food_sort_by_unavailable ? $best_reviewed_food_sort_by_unavailable->value : '')
@php($best_reviewed_food_sort_by_temp_closed = \App\Models\PriorityList::where('name', 'best_reviewed_food_sort_by_temp_closed')->where('type', 'temp_closed')->first()) @php($best_reviewed_food_sort_by_temp_closed = $best_reviewed_food_sort_by_temp_closed ? $best_reviewed_food_sort_by_temp_closed->value : '')

{{translate('Category Wise Foods')}}

{{ translate('Category Wise Foods means the latest food items list under a specific category') }}

@php($category_food_default_status = \App\Models\BusinessSetting::where('key', 'category_food_default_status')->first()) @php($category_food_default_status = $category_food_default_status ? $category_food_default_status->value : 1)
@php($category_food_sort_by_general = \App\Models\PriorityList::where('name', 'category_food_sort_by_general')->where('type', 'general')->first()) @php($category_food_sort_by_general = $category_food_sort_by_general ? $category_food_sort_by_general->value : '')
@php($category_food_sort_by_unavailable = \App\Models\PriorityList::where('name', 'category_food_sort_by_unavailable')->where('type', 'unavailable')->first()) @php($category_food_sort_by_unavailable = $category_food_sort_by_unavailable ? $category_food_sort_by_unavailable->value : '')
@php($category_food_sort_by_temp_closed = \App\Models\PriorityList::where('name', 'category_food_sort_by_temp_closed')->where('type', 'temp_closed')->first()) @php($category_food_sort_by_temp_closed = $category_food_sort_by_temp_closed ? $category_food_sort_by_temp_closed->value : '')

{{translate('Food and Restaurant list (Search Bar)')}}

{{ translate('Food and Restaurant list (Search Bar) means the food and restaurant list from top search bar.') }}

@php($search_bar_default_status = \App\Models\BusinessSetting::where('key', 'search_bar_default_status')->first()) @php($search_bar_default_status = $search_bar_default_status ? $search_bar_default_status->value : 1)
@php($search_bar_sort_by_unavailable = \App\Models\PriorityList::where('name', 'search_bar_sort_by_unavailable')->where('type', 'unavailable')->first()) @php($search_bar_sort_by_unavailable = $search_bar_sort_by_unavailable ? $search_bar_sort_by_unavailable->value : '')
@php($search_bar_sort_by_temp_closed = \App\Models\PriorityList::where('name', 'search_bar_sort_by_temp_closed')->where('type', 'temp_closed')->first()) @php($search_bar_sort_by_temp_closed = $search_bar_sort_by_temp_closed ? $search_bar_sort_by_temp_closed->value : '')
{{ translate('View_Guideline') }}

{{ translate('messages.Priority Setup Guideline') }}

{{ translate('Let’s Setup') }}
{{translate('Priority Setup Purpose')}}

{{ translate('The Priority Setup feature allows the admin or restaurant to control the display order of food items, categories, and subcategories across the system. By setting priority rules, the platform can highlight specific items or organise listings in a way that improves visibility and user experience.') }}

{{ translate('Let’s Setup') }}
{{translate('Priority Setup Benefit')}}
  • {{ translate('Promotes popular or high-performing items') }}
  • {{ translate('Improves menu navigation and discoverability') }}
  • {{ translate('Creates a consistent and organised listing order') }}
{{ translate('messages.Let’s Setup') }}
{{translate('Use Default Sorting')}}

{{ translate('messages.Items/Categories are displayed based on the system’s predefined order.') }}

{{translate('Use Custom Sorting')}}

{{ translate('Items are arranged based on selected criteria, including:') }}

  • {{ translate('Sort by latest created') }}
  • {{ translate('Shows the most recently added foods or restaurants first') }}

  • {{ translate('Sort by Orders') }}
  • {{ translate('Displays items or restaurants based on the total number of orders, highest first') }}

  • {{ translate('Sort by total restaurants') }}
  • {{ translate('Sorts categories or locations based on the number of restaurants associated') }}

  • {{ translate('Show the nearest food first') }}
  • {{ translate('Displays items from restaurants closest to the customer first') }}

  • {{ translate('Show unavailable foods in the last(both food & restaurant are unavailable)') }}
  • {{ translate('Place foods and restaurants that are currently unavailable at the end of the list') }}

  • {{ translate('Remove unavailable foods from the list') }}
  • {{ translate('Completely hides foods or restaurants that are unavailable') }}

  • {{ translate('Show the currently closed restaurants last') }}
  • {{ translate('Keeps closed restaurants at the end of the list while still showing them') }}

  • {{ translate('Remove currently closed restaurants from the list') }}
  • {{ translate('Hides all closed restaurants entirely') }}

  • {{ translate('Show temporarily off restaurants in the last') }}
  • {{ translate('Temporarily inactive restaurants appear at the end of the list') }}

  • {{ translate('Remove temporarily off restaurants from the list') }}
  • {{ translate('Temporarily inactive restaurants are hidden completely') }}

  • {{ translate('Sort new restaurants by distance') }}
  • {{ translate('Shows newly added restaurants closest to the customer first') }}

  • {{ translate('Sort new restaurants by delivery time') }}
  • {{ translate('Order new restaurants based on estimated delivery time, fastest first') }}

  • {{ translate('Show end date near Foods First') }}
  • {{ translate('Displays foods that are about to expire or whose availability end date is near at the top') }}

  • {{ translate('Alphabetical order (A–Z)') }}
  • {{ translate('Sorts foods or restaurants in ascending alphabetical order') }}

  • {{ translate('Alphabetical order (Z–A)') }}
  • {{ translate('Sorts foods or restaurants in descending alphabetical order') }}

  • {{ translate('Nearest item first') }}
  • {{ translate('Displays items based on proximity to the customer') }}

  • {{ translate('Sort by reviews count') }}
  • {{ translate('Order items/restaurants by the number of reviews received, highest first') }}

  • {{ translate('Sort by ratings') }}
  • {{ translate('Displays items/restaurants with the highest average rating first') }}

  • {{ translate('Show 4+ rated foods') }}
  • {{ translate('Displays only foods with ratings of 4 or higher') }}

  • {{ translate('Show 3.5+ rated foods') }}
  • {{ translate('Displays foods with ratings of 3.5 or higher') }}

  • {{ translate('Show 3+ rated foods') }}
  • {{ translate('Displays foods with ratings of 3 or higher') }}

{{ translate('When Custom Sorting is selected, the system applies the chosen sorting rule dynamically to display food items, categories, and subcategories accordingly.') }}

@endsection @push('script_2') @endpush