!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/resources/views/seller/products/edit/   drwxr-xr-x
Free 13.26 GB of 57.97 GB (22.87%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     variants.blade.php (4.82 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('layouts.app')
@push('style')
<link href="{{ asset('assets/css/select2.min.css') }}" rel="stylesheet" />
@endpush
@section('head')
@include('layouts.partials.headersection',['title'=>'Product Varient'])
@endsection
@section('content')

<div class="row">
    <div class="col-lg-12">      
        
        <div class="card">
            <div class="card-body">
                
                <div class="row">
                    <div class="col-sm-3">
                        <ul class="nav nav-pills flex-column">
                            <li class="nav-item">
                                <a class="nav-link" href="{{ route('seller.product.edit',$info->id) }}"><i class="fas fa-cogs"></i> {{ __('Item') }}</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{{ url('seller/product/'.$info->id.'/price') }}"><i class="fas fa-money-bill-alt"></i> {{ __('Price') }}</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link " href="{{ url('seller/product/'.$info->id.'/option') }}"><i class="fas fa-tags"></i> {{ __('Options') }}</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link active" href="{{ url('seller/product/'.$info->id.'/varient') }}"><i class="fas fa-expand-arrows-alt"></i> {{ __('Variants') }}</a>
                            </li>
                            
                        
                            
                            <li class="nav-item">
                                <a class="nav-link" href="{{ url('seller/product/'.$info->id.'/image') }}"><i class="far fa-images"></i> {{ __('Images') }}</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{{ url('seller/product/'.$info->id.'/inventory') }}"><i class="fa fa-cubes"></i> {{ __('Inventory') }}</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{{ url('seller/product/'.$info->id.'/files') }}"><i class="fas fa-file"></i> {{ __('Files') }}</a>
                            </li>

                            <li class="nav-item">
                                <a class="nav-link" href="{{ url('seller/product/'.$info->id.'/seo') }}"><i class="fas fa-chart-line"></i> {{ __('SEO') }}</a>
                            </li>
                            <li class="nav-item">
                                    <a class="nav-link" href="{{ url('seller/product/'.$info->id.'/express-checkout') }}"><i class="fas fa-cart-arrow-down"></i> {{ __('Express checkout') }}</a>
                                </li>
                        </ul>
                    </div>
                    <div class="col-sm-9">
                        <div class="card-body">
                            <button class="btn btn-primary float-right mb-2 add_attr" data-toggle="modal" data-target="#attribute_modal">{{ __('Create Varient') }}</button>
                            <div id="accordion">
                                <div class="">
                                    <form action="{{ route('seller.product.variation',$info->id) }}" class="basicform">
                                        @csrf
                                    <table class="table table-hover table-border">
                                        <thead >
                                            <tr>
                                                <th class="text-left" >{{ __('Attribute') }}</th>
                                                <th>{{ __('Values') }}</th>
                                                <th >{{ __('Trash')  }}</th>
                                            </tr>
                                        </thead>
                                        <tbody id="data-body">
                                        @php
                                        $i=1;    
                                        @endphp    
                                        @foreach($variations as $key => $value)
                                        
                                        @php
                                        $i++;    
                                        @endphp
                                        <tr class="attr_{{ $i }}">
                                            <td>
                                                <select  data-id="{{ $i }}" class="form-control parent_attr selec{{ $i }}">
                                                    <option value="" disabled selected>Select Varient</option>
                                                    @foreach ($posts as $k => $row)
                                                    <option data-parentattribute="{{ $row->childrenCategories }}" value="{{ $row->id }}" @if($key == $row->id) selected @endif>{{ $row->name }}</option>
                                                    @endforeach
                                                </select>
                                            </td>
                                            <td >
                                                <select name="child[{{ $key }}][]" multiple  class="form-control select2 multislect child{{ $i }}" >
                                                    @foreach ($posts as $post)
                                                    @if($key == $post->id)
                                                        @foreach ($post->childrenCategories as $item)
                                                        <option class="attr{{ $i }}" value="{{ $item->id }}" @if(in_array($item->id,$attribute)) selected @endif>{{ $item->name }}</option>
                                                        @endforeach
                                                        
                                                    @endif
                                                    @endforeach
                                                </select>
                                            </td>
                                            <td>
                                                <a data-id="{{ $i }}" class="btn btn-danger remove_attr text-white"><i class="fa fa-trash"></i></a>
                                            </td>
                                        </tr>    
                                        @endforeach
                                            
                                        
                                        </tbody>    
                                    </table>
                                    <button class="btn btn-primary basicbtn">{{ __('Save Changes') }}</button>
                                </form>
                                </div>
                            
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>

</div>

<div class="none">
<div  class="attrs_row">        
        @foreach($posts as $post)
        <option value="{{ $post->id }}" data-parentattribute="{{ $post->childrenCategories }}">{{ $post->name }}</option>
        @endforeach
</div>
</div>
@endsection
@push('js')

<script src="{{ asset('assets/js/select2.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/form.js') }}"></script>
<script src="{{ asset('assets/seller/product/variants.js') }}"></script>

@endpush

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0083 ]--