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/qas.sports-crowd.com/resources/views/comments/editCategory.blade.php
@extends('modules.head') @section('contenido')
<div class="box">
    <div class="box-header with-border">
        <h3 class="box-title">{{ Lang::get('messages.screen_edit_categories_tag1')}}</h3>
        <!-- /.box-tools -->
    </div>
    <!-- /.box-header -->
    <div class="box-body" >
        <form role="form" id="editCategory" data-toggle="validator">
        <div class="row">
            <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"></div>
            <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
            @if( $category->image == '')
            <img class="media-object media-object-big newClip" src="{{asset('/img/no_image.png')}}" alt="User profile picture">
            @else
            <img class="media-object media-object-big" src="{{ config('filesystems.disks.s3.url') }}/categories/{{$category->image}}" alt="User profile picture">
            @endif                
            </div>
            <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"></div>
        </div>

        <div class="row">
            <div class="col-xs-12">
            <div class="form-group">
                    <label for="image">{{ Lang::get('messages.screen_edit_categories_tag2')}}</label>
                <input type="file"  value="{{$category->image}}"  name="image" id="image">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-6 col-sm-12 col-md-6 col-lg-6">
                <input type="hidden" class="form-control" name="id" value="{{$category->id}}">
                <div class="form-group">
                    <label for="name">{{ Lang::get('messages.screen_edit_categories_tag3')}}</label>
                <input type="text" class="form-control" value="{{$category->name}}"  name="name" placeholder="" required>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="form-group">
                    <label for="priority">{{ Lang::get('messages.screen_edit_categories_tag4')}}</label>
                    <input type="number" class="form-control" value="{{$category->order}}" name="priority" placeholder="" required>
                </div>
            </div>
        </div>
         <button onClick="editCategory()" id="btn-edit-category" class="btn btnBox pull-right" >{{ Lang::get('messages.screen_edit_categories_tag6')}}</button>
         <button type="button" class="btn btn-default pull-right btnCancel"  >
                <a href="{{url('/categories')}}">{{ Lang::get('messages.screen_edit_categories_tag5')}} </a>
            </button>
            {{ csrf_field() }}
        </form>
    </div>
    <!-- /.box-body -->
</div>


<script src="{{ asset('js/jQuery/jquery-2.2.3.min.js') }}"></script>
<script src="{{ asset('js/categories.js') . '?v=' . time() }}"></script>
<script src="{{ asset('js/bootstrap/js/bootstrap.min.js') }}"></script> @endsection