HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/demo.sports-crowd.com/resources/views/academy/coaches/form.blade.php
@csrf
<div class="card-body">
    <input type="hidden" class="form-control" id="id" name="id" required value="{{ $object->id ?? old('id') }}">
    <div class="row">
        <div class="col-4 col-md-4">
            <div class="form-group">
                <label for="first_name">{{ Lang::get('messages.screen_add_clients_tag4')}}</label>
                <input type="text" class="form-control" maxlength="45" name="first_name" value="{{ $object->first_name ?? old('first_name') }}" placeholder="" required>
            </div>
        </div>
        <div class="col-4 col-md-4">
            <div class="form-group">
                <label for="last_name">{{ Lang::get('messages.screen_add_clients_tag5')}}</label>
                <input type="text" class="form-control" maxlength="45" name="last_name" value="{{ $object->last_name ?? old('last_name') }}" placeholder="" required>
            </div>
        </div>
        <div class="col-4 col-md-4">
            <div class="form-group">
                <label for="email">{{ Lang::get('messages.screen_add_clients_tag6')}}</label>
                <input type="text" class="form-control" id="email" name="email" value="{{ $object->email ?? old('email') }}" placeholder="" required>
            </div>
        </div>
        <div class="col-2 col-md-2">
            <div class="form-group">
                <label for="phone">{{ Lang::get('messages.screen_add_clients_tag7')}}</label>
                <input type="text" class="form-control" maxlength="45" name="phone" value="{{ $object->phone ?? old('phone') }}" placeholder="" required>
            </div>
        </div>
        <div class="col-2 col-md-2">
            <div class="form-group">
                <label for="document">{{ Lang::get('messages.screen_add_clients_tag8')}}</label>
                <input type="text" class="form-control" maxlength="45" name="document" value="{{ $object->document ?? old('document') }}" placeholder="" required>
            </div>
        </div>
        <div class="col-4 col-md-4">
            <div class="form-group">
                <label for="password">{{ Lang::get('messages.screen_add_clients_tag9')}} @if(isset($object->id)) {{ Lang::get('messages.optional')}} @endif</label>
                <input id="password" type="text" class="form-control" maxlength="45" name="password" placeholder="">
            </div>
        </div>
        <div class="col-4 col-md-4">
            <div class="form-group">
                <label for="confirmPassword">{{ Lang::get('messages.screen_add_clients_tag10')}} @if(isset($object->id)) {{ Lang::get('messages.optional')}} @endif</label>
                <input id="confirmPassword" type="text" class="form-control" maxlength="45" placeholder="">
            </div>
        </div>
        <div class="col-12 col-md-12">
            <div class="form-group">
                <label for="user_id"> {{ Lang::get('messages.academy_coaches.tag6-1')}}</label>
                <select class="form-control select2" multiple="multiple" data-placeholder="{{ Lang::get('messages.screen_products_tag32') }}" name="generalMultiselect" id="generalMultiselect">
                    @foreach ($schedules as $schedule)
                    <option value="{{ $schedule->id }}" {{ isset($object) && in_array($schedule->id, $object->assignedSchedules) ? 'selected' : '' }}>{{ $schedule->name . ' (' . $schedule->categories . ')' }}</option>
                    @endforeach
                </select>
            </div>
        </div>
        <div class="col-12 col-md-12">
            <div class="form-group">
                <label for="asignedTags"> {{ Lang::get('messages.screen_other_users_tag9')}} {{ Lang::get('messages.optional') }}</label>
                <select class="form-control select2" multiple="multiple" data-placeholder="{{ Lang::get('messages.screen_products_tag32') }}" name="asignedTags">
                    @foreach ($tags as $tag)
                    <option value="{{ $tag->id }}" {{ isset($assignedTags) && in_array($tag->id, $assignedTags) ? 'selected' : '' }}>
                        {{ $tag->name }}
                    </option>
                    @endforeach
                </select>
            </div>
        </div>
    </div>
</div>
<br>
<script src="{{ asset('js/jQuery/jquery-2.2.3.min.js') }}"></script>
<script src="{{ asset('js/crud.js') . '?v=' . time() }}"></script>
<script src="{{ asset('js/academy_coaches.js') . '?v=' . time() }}"></script>
<script src="{{ asset('js/bootstrap/js/bootstrap.min.js') }}"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $('.select2').select2();
    });
</script>