@extends('admin.layouts.default') @section('content')

Edit Master League

{{ Form::open(['role' => 'form', 'id' => 'categoryAddForm', 'route' => [$modelName . '.edit_global_challenge', base64_encode(serialize($challengeData['challenge']->id))], 'files' => true]) }} @php $category = $challengeData['challenges_category']; $challenge = $challengeData['challenge']; @endphp
challenge_type == 'money' ? 'checked' : '' }}>
challenge_type == 'percentage' ? 'checked' : '' }}>
@if ($errors->has('entryfee'))
{{ $errors->first('entryfee') }}
@endif
@if ($errors->has('win_amount'))
{{ $errors->first('win_amount') }}
@endif
@if ($errors->has('maximum_user'))
{{ $errors->first('maximum_user') }}
@endif
@if ($errors->has('minimum_user'))
{{ $errors->first('minimum_user') }}
@endif
@if ($errors->has('winning_percentage'))
{{ $errors->first('winning_percentage') }}
@endif
@if ($errors->has('dis_price'))
{{ $errors->first('dis_price') }}
@endif
is_free == 1 ? 'checked' : '' }}>
multi_entry == 1 ? 'checked' : '' }}>
@if ($errors->has('max_team_limit'))
{{ $errors->first('max_team_limit') }}
@endif
confirmed_challenge == 1 ? 'checked' : '' }}>
bonus == 1 ? 'checked' : '' }} onclick="show3();">
@if ($errors->has('bonus_precent'))
{{ $errors->first('bonus_precent') }}
@endif
{{--
is_running == 1 ? 'checked' : '' }}>
--}}
is_flexible == 1 ? 'checked' : '' }}>
loops == 1 ? 'checked' : '' }}>
is_manual_bot == 1 ? 'checked' : '' }}>
is_gadgets == 1 ? 'checked' : '' }}>
@if ($errors->has('gadgets_image'))
{{ $errors->first('gadgets_image') }}
@endif @php $imagePath = public_path('uploads/players/' . $challenge->gadgets_image); @endphp @if(!empty($challenge->gadgets_image) && file_exists($imagePath)) @else @endif
{{ Form::close() }}
@endsection