@extends('layouts.app') @section('title', $title) @section('content')

{{ $title }}

@include('flash::message') @if(is_null($application->id)) {{-- Form of adding new application to order --}}

@lang('labels.platform')

{{ csrf_field() }} {!! Form::hidden('device_type', '', ['id' => 'device_type']) !!}

@else {{-- Form of edit existing application --}} @if($auth_user->id === $application->user_id && !$application->paid)
@lang('labels.buttons.pay_from_balance') ({{ number_format($application->amount_for_user, 2, '.', '') }} @lang("labels.currency.${country}.name"))
@endif @include('admin._appModerating', compact('application'))
{{ $application->name }}

{{ $application->name }}

{{ csrf_field() }} {!! Form::hidden('device_type', $application->device_type, ['readonly']) !!} {!! Form::hidden('package_name', $application->package_name, ['readonly']) !!} {{-- {!! Form::hidden('name', $application->name, ['readonly']) !!}--}} {!! Form::hidden('image_url', $application->image, ['readonly']) !!} {!! Form::hidden('slug', $application->slug, ['readonly']) !!}

@lang('labels.application_name')

@lang('labels.geotargeting')

{!! Form::select('country', $countries, $application->country_id, [ 'id' => 'country', 'data-placeholder' => trans('labels.all.countries'), 'disabled' => !$can_be_changed ]) !!}
{!! Form::select('city', $cities, $application->city_id, [ 'id' => 'city', 'data-placeholder' => trans('labels.all.cities'), 'disabled' => !$can_be_changed ]) !!}
{{-- Here will be loaded campaign parameters depending on selected group of countries (CIS/Other) --}}
{{--Deferred campaign start--}}

@lang('labels.tasks.scheduled_launch')

deferred_start ? 'disabled': '' }} >
@if($is_admin)

@lang('labels.user')

@lang('labels.pay_from_manager_balance')

@endif {{--Activate clickcs--}} @if($is_admin) @endif

@lang('labels.campaign_amount')

{{ $currency }}
{!! Form::hidden('custom_price', $application->custom_price, ['id' => 'custom_price']) !!} {!! Form::hidden('surcharge', 0, ['id' => 'surcharge']) !!} @if($can_be_changed)
@endif @if($application->canBeCancelled())
@endif
@endif @include('apps._surchargeModal') @endsection @push('scripts') @endpush