@extends('organizer.layout')

@section('content')
    <div class="page-header">
        <h4 class="page-title">{{ __('Add Event') }}</h4>
        <ul class="breadcrumbs">
            <li class="nav-home">
                <a href="{{ route('organizer.dashboard') }}">
                    <i class="flaticon-home"></i>
                </a>
            </li>
            <li class="separator">
                <i class="flaticon-right-arrow"></i>
            </li>
            <li class="nav-item">
                <a href="#">{{ __('Event Management') }}</a>
            </li>
            <li class="separator">
                <i class="flaticon-right-arrow"></i>
            </li>
            <li class="nav-item">
                <a
                    href="{{ route('choose-event-type', ['language' => $defaultLang->code]) }}">{{ __('Choose Event Type') }}</a>
            </li>
            <li class="separator">
                <i class="flaticon-right-arrow"></i>
            </li>
            <li class="nav-item">
                <a href="#">{{ __('Add Event') }}</a>
            </li>
        </ul>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-header">
                    <div class="card-title d-inline-block">{{ __('Add Event') }}</div>
                    <a class="btn btn-info btn-sm float-right d-inline-block"
                        href="{{ route('organizer.event_management.event', ['language' => $defaultLang->code]) }}">
                        <span class="btn-label">
                            <i class="fas fa-backward"></i>
                        </span>
                        {{ __('Back') }}
                    </a>
                </div>
                <div class="card-body">
                    <div class="row">
                        <div class="col-lg-8 offset-lg-2">
                            <div class="alert alert-danger pb-1 dis-none" id="eventErrors">
                                <button type="button" class="close" data-dismiss="alert">×</button>
                                <ul></ul>
                            </div>
                            <div class="col-lg-12">
                                <label for="" class="mb-2"><strong>{{ __('Gallery Images') }} **</strong></label>
                                <form action="{{ route('organizer.event.imagesstore') }}" id="my-dropzone"
                                    enctype="multipart/formdata" class="dropzone create">
                                    @csrf
                                    <div class="fallback">
                                        <input name="file" type="file" multiple />
                                    </div>
                                </form>
                                <div class=" mb-0" id="errpreimg">

                                </div>
                                <p class="text-warning">{{ __('Image Size') . ' 1170x570' }}</p>
                            </div>
                            <form id="eventForm" action="{{ route('organizer.event_management.store_event') }}"
                                method="POST" enctype="multipart/form-data">
                                @csrf
                                <input type="hidden" name="event_type" value="{{ request()->input('type') }}">
                                <div class="form-group">
                                    <label for="">{{ __('Thumbnail Image') . '*' }}</label>
                                    <br>
                                    <div class="thumb-preview">
                                        <img src="{{ asset('assets/admin/img/noimage.jpg') }}" alt="..."
                                            class="uploaded-img">
                                    </div>

                                    <div class="mt-3">
                                        <div role="button" class="btn btn-primary btn-sm upload-btn">
                                            {{ __('Choose Image') }}
                                            <input type="file" class="img-input" name="thumbnail">
                                        </div>
                                    </div>
                                    <p class="text-warning">{{ __('Image Size') . ' : 320x230' }}</p>
                                </div>

                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="form-group mt-1">
                                            <label for="">{{ __('Date Type') . '*' }}</label>
                                            <div class="selectgroup w-100">
                                                <label class="selectgroup-item">
                                                    <input type="radio" name="date_type" value="single"
                                                        class="selectgroup-input eventDateType" checked>
                                                    <span class="selectgroup-button">{{ __('Single') }}</span>
                                                </label>

                                                <label class="selectgroup-item">
                                                    <input type="radio" name="date_type" value="multiple"
                                                        class="selectgroup-input eventDateType">
                                                    <span class="selectgroup-button">{{ __('Multiple') }}</span>
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row countDownStatus">
                                    <div class="col-lg-12">
                                        <div class="form-group mt-1">
                                            <label for="">{{ __('Countdown Status') . '*' }}</label>
                                            <div class="selectgroup w-100">
                                                <label class="selectgroup-item">
                                                    <input type="radio" name="countdown_status" value="1"
                                                        class="selectgroup-input" checked>
                                                    <span class="selectgroup-button">{{ __('Active') }}</span>
                                                </label>

                                                <label class="selectgroup-item">
                                                    <input type="radio" name="countdown_status" value="0"
                                                        class="selectgroup-input">
                                                    <span class="selectgroup-button">{{ __('Deactive') }}</span>
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row" id="single_dates">
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <label>{{ __('Start Date') . '*' }}</label>
                                            <input type="date" name="start_date" placeholder="Enter Start Date"
                                                class="form-control">
                                        </div>
                                    </div>

                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <label for="">{{ __('Start Time') . '*' }}</label>
                                            <input type="time" name="start_time" class="form-control">
                                        </div>
                                    </div>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <label>{{ __('End Date') . '*' }}</label>
                                            <input type="date" name="end_date" placeholder="Enter End Date"
                                                class="form-control">
                                        </div>
                                    </div>

                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <label for="">{{ __('End Time') . '*' }}</label>
                                            <input type="time" name="end_time" class="form-control">
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-lg-12 d-none" id="multiple_dates">
                                        <div class="form-group">
                                            <table class="table table-bordered ">
                                                <thead>
                                                    <tr>
                                                        <th>{{ __('Start Date') }}</th>
                                                        <th>{{ __('Start Time') }}</th>
                                                        <th>{{ __('End Date') }}</th>
                                                        <th>{{ __('End Time') }}</th>
                                                        <th><a href="javascrit:void(0)"
                                                                class="btn btn-success addDateRow"><i
                                                                    class="fas fa-plus-circle"></i></a></th>
                                                    </tr>
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <div class="form-group">
                                                                <label for="">{{ __('Start Date') . '*' }}</label>
                                                                <input type="date" name="m_start_date[]"
                                                                    class="form-control">
                                                            </div>
                                                        </td>
                                                        <td>
                                                            <div class="form-group">
                                                                <label for="">{{ __('Start Time') . '*' }}</label>
                                                                <input type="time" name="m_start_time[]"
                                                                    class="form-control">
                                                            </div>
                                                        </td>
                                                        <td>
                                                            <div class="form-group">
                                                                <label for="">{{ __('End Date') . '*' }} </label>
                                                                <input type="date" name="m_end_date[]"
                                                                    class="form-control">
                                                            </div>
                                                        </td>
                                                        <td>
                                                            <div class="form-group">
                                                                <label for="">{{ __('End Time') . '*' }} </label>
                                                                <input type="time" name="m_end_time[]"
                                                                    class="form-control">
                                                            </div>
                                                        </td>
                                                        <td>
                                                            <a href="javascript:void(0)"
                                                                class="btn btn-danger deleteDateRow">
                                                                <i class="fas fa-minus"></i></a>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                                </thead>
                                            </table>
                                        </div>
                                    </div>
                                </div>

                                <div class="row ">
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <label for="">{{ __('Status') . '*' }}</label>
                                            <select name="status" class="form-control">
                                                <option selected disabled>{{ __('Select a Status') }}</option>
                                                <option value="1">{{ __('Active') }}</option>
                                                <option value="0">{{ __('Deactive') }}</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <label for="">{{ __('Is Feature') . '*' }}</label>
                                            <select name="is_featured" class="form-control">
                                                <option selected disabled>{{ __('Select') }}</option>
                                                <option value="yes">{{ __('Yes') }}</option>
                                                <option value="no">{{ __('No') }}</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                @if (request()->input('type') == 'online')
                                    {{-- /*****--Ticekt limtit & ticket for each customer start--****** --}}

                                    <div class="row">

                                        <div class="col-lg-6">
                                            <div class="form-group mt-1">
                                                <label
                                                    for="">{{ __('Total Number of Available Tickets') . '*' }}</label>
                                                <div class="selectgroup w-100">
                                                    <label class="selectgroup-item">
                                                        <input type="radio" name="ticket_available_type"
                                                            value="unlimited" class="selectgroup-input" checked>
                                                        <span class="selectgroup-button">{{ __('Unlimited') }}</span>
                                                    </label>

                                                    <label class="selectgroup-item">
                                                        <input type="radio" name="ticket_available_type"
                                                            value="limited" class="selectgroup-input">
                                                        <span class="selectgroup-button">{{ __('Limited') }}</span>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-6 d-none" id="ticket_available">
                                            <div class="form-group">
                                                <label>{{ __('Enter total number of available tickets') . '*' }}</label>
                                                <input type="number" name="ticket_available"
                                                    placeholder="{{ __('Enter total number of available tickets') }}"
                                                    class="form-control">
                                            </div>
                                        </div>
                                        @if ($websiteInfo->event_guest_checkout_status != 1)
                                            <div class="col-lg-6">
                                                <div class="form-group mt-1">
                                                    <label
                                                        for="">{{ __('Maximum number of tickets for each customer') . '*' }}</label>
                                                    <div class="selectgroup w-100">
                                                        <label class="selectgroup-item">
                                                            <input type="radio" name="max_ticket_buy_type"
                                                                value="unlimited" class="selectgroup-input" checked>
                                                            <span class="selectgroup-button">{{ __('Unlimited') }}</span>
                                                        </label>

                                                        <label class="selectgroup-item">
                                                            <input type="radio" name="max_ticket_buy_type"
                                                                value="limited" class="selectgroup-input">
                                                            <span class="selectgroup-button">{{ __('Limited') }}</span>
                                                        </label>
                                                    </div>
                                                </div>
                                            </div>
                                        @else
                                            <input type="hidden" name="max_ticket_buy_type" value="unlimited">
                                        @endif
                                        <div class="col-lg-6 d-none" id="max_buy_ticket">
                                            <div class="form-group">
                                                <label>{{ __('Enter Maximum number of tickets for each customer') . '*' }}</label>
                                                <input type="number" name="max_buy_ticket"
                                                    placeholder="{{ __('Enter Maximum number of tickets for each customer') }}"
                                                    class="form-control">
                                            </div>
                                        </div>

                                        <div class="col-lg-6">
                                            <div class="">
                                                <div class="form-group">
                                                    <label for="">{{ __('Price') }}
                                                        ({{ $getCurrencyInfo->base_currency_text }}) *
                                                    </label>
                                                    <input type="number" name="price" id="ticket-pricing"
                                                        class="form-control"
                                                        placeholder="{{ __('Enter Ticket Price') }}">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <input type="checkbox" name="pricing_type" value="free" class=""
                                                    id="free_ticket">
                                                <label for="free_ticket">{{ __('Tickets are Free') }}</label>
                                            </div>
                                        </div>
                                        <div class="col-lg-6">
                                            <div class="">
                                                <div class="form-group">
                                                    <label for="">{{ __('Meeting Url') }} *
                                                    </label>
                                                    <input type="text" name="meeting_url" class="form-control"
                                                        placeholder="Enter Meeting Url">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row" id="early_bird_discount_free">
                                        <div class="col-lg-12">
                                            <div class="form-group mt-1">
                                                <label for="">{{ __('Early Bird Discount') . '*' }}</label>
                                                <div class="selectgroup w-100">
                                                    <label class="selectgroup-item">
                                                        <input type="radio" name="early_bird_discount_type"
                                                            value="disable" class="selectgroup-input" checked>
                                                        <span class="selectgroup-button">{{ __('Disable') }}</span>
                                                    </label>

                                                    <label class="selectgroup-item">
                                                        <input type="radio" name="early_bird_discount_type"
                                                            value="enable" class="selectgroup-input">
                                                        <span class="selectgroup-button">{{ __('Enable') }}</span>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-12 d-none" id="early_bird_dicount">
                                            <div class="row">
                                                <div class="col-lg-3">
                                                    <div class="form-group">
                                                        <label for="">{{ __('Discount') }} * </label>
                                                        <select name="discount_type" class="form-control">
                                                            <option disabled>{{ __('Select Discount Type') }}</option>
                                                            <option value="fixed">{{ __('Fixed') }}</option>
                                                            <option value="percentage">{{ __('Percentage') }}</option>
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="col-lg-3">
                                                    <div class="form-group">
                                                        <label for="">{{ __('Amount') }} * </label>
                                                        <input type="number" name="early_bird_discount_amount"
                                                            class="form-control">
                                                    </div>
                                                </div>
                                                <div class="col-lg-3">
                                                    <div class="form-group">
                                                        <label for="">{{ __('Discount End Date') }} *</label>
                                                        <input type="date" name="early_bird_discount_date"
                                                            class="form-control">
                                                    </div>
                                                </div>
                                                <div class="col-lg-3">
                                                    <div class="form-group">
                                                        <label for="">{{ __('Discount End Time') }} *</label>
                                                        <input type="time" name="early_bird_discount_time"
                                                            class="form-control">
                                                    </div>
                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                @endif


                                <div id="accordion" class="mt-3">
                                    @foreach ($languages as $language)
                                        <div class="version">
                                            <div class="version-header" id="heading{{ $language->id }}">
                                                <h5 class="mb-0">
                                                    <button type="button" class="btn btn-link" data-toggle="collapse"
                                                        data-target="#collapse{{ $language->id }}"
                                                        aria-expanded="{{ $language->is_default == 1 ? 'true' : 'false' }}"
                                                        aria-controls="collapse{{ $language->id }}">
                                                        {{ $language->name . ' ' . __('Language') }}
                                                        {{ $language->is_default == 1 ? '(' . __('Default') . ')' : '' }}
                                                    </button>
                                                </h5>
                                            </div>

                                            <div id="collapse{{ $language->id }}"
                                                class="collapse {{ $language->is_default == 1 ? 'show' : '' }}"
                                                aria-labelledby="heading{{ $language->id }}" data-parent="#accordion">
                                                <div class="version-body">
                                                    <div class="row">
                                                        <div class="col-lg-6">
                                                            <div
                                                                class="form-group {{ $language->direction == 1 ? 'rtl text-right' : '' }}">
                                                                <label>{{ __('Event Title') . '*' }}</label>
                                                                <input type="text" class="form-control"
                                                                    name="{{ $language->code }}_title"
                                                                    placeholder="{{ __('Enter Event Name') }}">
                                                            </div>
                                                        </div>

                                                        <div class="col-lg-6">
                                                            <div
                                                                class="form-group {{ $language->direction == 1 ? 'rtl text-right' : '' }}">
                                                                @php
                                                                    $categories = DB::table('event_categories')
                                                                        ->where('language_id', $language->id)
                                                                        ->where('status', 1)
                                                                        ->orderBy('serial_number', 'asc')
                                                                        ->get();
                                                                @endphp

                                                                <label for="">{{ __('Category') . '*' }}</label>
                                                                <select name="{{ $language->code }}_category_id"
                                                                    class="form-control">
                                                                    <option selected disabled>{{ __('Select Category') }}
                                                                    </option>

                                                                    @foreach ($categories as $category)
                                                                        <option value="{{ $category->id }}">
                                                                            {{ $category->name }}</option>
                                                                    @endforeach
                                                                </select>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    @if (request()->input('type') == 'venue')
                                                        <div class="row">
                                                            <div class="col-lg-12">
                                                                <div class="form-group">
                                                                    <label
                                                                        for="">{{ __('Address') . '*' }}</label>
                                                                    <input type="text"
                                                                        name="{{ $language->code }}_address"
                                                                        id="search-address"
                                                                        class="form-control {{ $language->direction == 1 ? 'rtl text-right' : '' }}"
                                                                        placeholder="{{ __('Enter Address') }}">
                                                                    @if ($language->is_default == 1 && $settings->google_map_status == 1)
                                                                        <a href=""
                                                                            class="btn btn-secondary mt-2 btn-sm"
                                                                            data-toggle="modal"
                                                                            data-target="#GoogleMapModal">
                                                                            <i class="fas fa-eye"></i>
                                                                            {{ __('Show Map') }}
                                                                        </a>
                                                                    @endif
                                                                </div>
                                                            </div>


                                                            <!-- latitude and longitude -->
                                                            <div
                                                                class="col-lg-4 {{ $language->is_default == 1 ? '' : 'd-none' }}">
                                                                <div class="form-group">
                                                                    <label for="">{{ __('Latitude') }}</label>
                                                                    <input type="text" name="latitude"
                                                                        placeholder="Latitude"
                                                                        class="form-control latitude">
                                                                </div>
                                                            </div>
                                                            <div
                                                                class="col-lg-4 {{ $language->is_default == 1 ? '' : 'd-none' }}">
                                                                <div class="form-group">
                                                                    <label for="">{{ __('Longitude') }}</label>
                                                                    <input type="text" placeholder="Longitude"
                                                                        name="longitude" class="form-control longitude">
                                                                </div>
                                                            </div>

                                                            @if ($settings->event_country_status == 1)
                                                                <div class="col-lg-4">
                                                                    <div class="form-group">
                                                                        <label
                                                                            for="">{{ __('Country') . '*' }}</label>
                                                                        <select name="{{ $language->code }}_country"
                                                                            data-lang="{{ $language->id }}"
                                                                            class="form-control country_select countryDropdown">
                                                                            <option selected disabled>
                                                                                {{ __('Select a Country') }}
                                                                            </option>
                                                                        </select>
                                                                    </div>
                                                                </div>
                                                            @endif

                                                            @if ($settings->event_state_status == 1)
                                                                @php
                                                                    $none = 'none';
                                                                @endphp
                                                                <div class="col-lg-4 state_div"
                                                                    style="display: {{ $settings->event_country_status == 0 ? '' : $none }}">
                                                                    <div class="form-group">
                                                                        <label
                                                                            for="">{{ __('State') . '*' }}</label>
                                                                        <select name="{{ $language->code }}_state"
                                                                            data-lang="{{ $language->id }}"
                                                                            class="form-control stateDropdown state_select">
                                                                            <option selected disabled>
                                                                                {{ __('Select a State') }}
                                                                            </option>
                                                                        </select>
                                                                    </div>
                                                                </div>
                                                            @endif

                                                            @php
                                                                $cities = \DB::table('event_cities')
                                                                    ->where([
                                                                        ['language_id', $language->id],
                                                                        ['status', 1],
                                                                    ])
                                                                    ->orderBy('serial_number', 'asc')
                                                                    ->select('id', 'name')
                                                                    ->get();
                                                            @endphp
                                                            <div class="col-lg-4 city_div">
                                                                <div class="form-group">
                                                                    <label for="">{{ __('City') . '*' }}</label>
                                                                    <select name="{{ $language->code }}_city"
                                                                        data-lang="{{ $language->id }}"
                                                                        class="form-control cityDropdown city_select">
                                                                        <option selected disabled>
                                                                            {{ __('Select a City') }}
                                                                        </option>
                                                                        @if ($settings->event_country_status == 0 && $settings->event_state_status == 0)
                                                                            @foreach ($cities as $city)
                                                                                <option value="{{ $city->id }}">
                                                                                    {{ $city->name }}</option>
                                                                            @endforeach
                                                                        @endif
                                                                    </select>
                                                                </div>
                                                            </div>


                                                            <div class="col-lg-4">
                                                                <div class="form-group">
                                                                    <label
                                                                        for="">{{ __('Zip/Post Code') }}</label>
                                                                    <input type="text"
                                                                        placeholder="{{ __('Enter Zip/Post Code') }}"
                                                                        name="{{ $language->code }}_zip_code"
                                                                        class="form-control {{ $language->direction == 1 ? 'rtl text-right' : '' }}">
                                                                </div>
                                                            </div>
                                                        </div>
                                                    @endif

                                                    <div class="row">
                                                        <div class="col">
                                                            <div
                                                                class="form-group {{ $language->direction == 1 ? 'rtl text-right' : '' }}">
                                                                <label>{{ __('Description') . '*' }}</label>
                                                                <textarea id="descriptionTmce{{ $language->id }}" class="form-control summernote"
                                                                    name="{{ $language->code }}_description" placeholder="{{ __('Enter Event Description') }}" data-height="300"></textarea>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-lg-12">
                                                            <div
                                                                class="form-group {{ $language->direction == 1 ? 'rtl text-right' : '' }}">
                                                                <label>{{ __('Refund Policy') }} *</label>
                                                                <textarea class="form-control" name="{{ $language->code }}_refund_policy" rows="5"
                                                                    placeholder="{{ __('Enter Refund Policy') }}"></textarea>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-lg-12">
                                                            <div
                                                                class="form-group {{ $language->direction == 1 ? 'rtl text-right' : '' }}">
                                                                <label>{{ __('Meta Keywords') }}</label>
                                                                <input class="form-control"
                                                                    name="{{ $language->code }}_meta_keywords"
                                                                    placeholder="{{ __('Enter Meta Keywords') }}"
                                                                    data-role="tagsinput">
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-lg-12">
                                                            <div
                                                                class="form-group {{ $language->direction == 1 ? 'rtl text-right' : '' }}">
                                                                <label>{{ __('Meta Description') }}</label>
                                                                <textarea class="form-control" name="{{ $language->code }}_meta_description" rows="5"
                                                                    placeholder="{{ __('Enter Meta Description') }}"></textarea>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col">
                                                            @php $currLang = $language; @endphp

                                                            @foreach ($languages as $language)
                                                                @continue($language->id == $currLang->id)

                                                                <div class="form-check py-0">
                                                                    <label class="form-check-label">
                                                                        <input class="form-check-input" type="checkbox"
                                                                            onchange="cloneInput('collapse{{ $currLang->id }}', 'collapse{{ $language->id }}', event)">
                                                                        <span
                                                                            class="form-check-sign">{{ __('Clone for') }}
                                                                            <strong
                                                                                class="text-capitalize text-secondary">{{ $language->name }}</strong>
                                                                            {{ __('language') }}</span>
                                                                    </label>
                                                                </div>
                                                            @endforeach
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    @endforeach
                                </div>

                                <div id="sliders"></div>
                            </form>
                        </div>
                    </div>
                </div>

                <div class="card-footer">
                    <div class="row">
                        <div class="col-12 text-center">
                            <button type="submit" id="EventSubmit" class="btn btn-success">
                                {{ __('Save') }}
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    @if ($settings->google_map_status == 1)
        @includeIf('backend.event.map-modal')
    @endif
@endsection

@section('script')
    @if ($settings->google_map_status == 1)
        <script
            src="https://maps.googleapis.com/maps/api/js?key={{ $settings->google_map_api_key }}&libraries=places&callback=initMap"
            async defer></script>
        <script src="{{ asset('assets/admin/js/map-init.js') }}"></script>
    @endif
    <script type="text/javascript" src="{{ asset('assets/admin/js/admin-partial.js') }}"></script>
    <script src="{{ asset('assets/admin/js/admin_dropzone.js') }}"></script>
    <script>
        $(document).ready(function() {
            $('.js-example-basic-single').select2();
        });
    </script>
    <script src="{{ asset('assets/admin/js/event_specification.js') }}"></script>
@endsection

@section('variables')
    @php
        $haveCoSt = $settings->event_country_status == 1 && $settings->event_state_status == 1 ? 1 : 0;
        $languages = App\Models\Language::get();
    @endphp
    <script>
        "use strict";
        let languages = "{{ $languages }}";
        var storeUrl = "{{ route('organizer.event.imagesstore') }}";
        var removeUrl = "{{ route('organizer.event.imagermv') }}";
        var loadImgs = 0;
        const haveCoSt = {{ $haveCoSt }};
        const isActiveState = {{ $settings->event_state_status == 1 ? 1 : 0 }};
        const getStateUrl = "{{ route('organizer.get.city.state') }}";
        const getCityUrl = "{{ route('organizer.get.cities.state') }}";
    </script>
@endsection
