PATH:
home
/
lab2454c
/
.trash
/
core
/
resources
/
views
/
templates
/
basic
/
user
/
product
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" integrity="sha512-5A8nwdMOWrSz20fDsjczgUidUBR8liPYU+WymTZP1lmY9G6Oc7HlZv156XqnsgNUzTyMefFTcsFH/tnJE/+xBg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <style> .select2-container--default .select2-selection--multiple { padding: 4px 5px 8px 5px; background-color: transparent; border: 1px solid #cbcbcb !important; } .select2-container--default .select2-results__option--selected { background-color: #042444; } .select2-container--default .select2-search--inline .select2-search__field { color: #fff !important; } .select2-container--default .select2-selection--multiple .select2-selection__choice, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { background-color: #000b2c !important; color: #fff; } .select2-container--default .select2-selection--multiple .select2-selection__choice__remove, .select2-container--default .select2-selection--multiple .select2-selection__choice { color: #fff; } .nicEdit-selected { border: 0 none #FFF; overflow: hidden; outline:none; } </style> <div class="row"> <div class="col-md-12 mb-20"> <label for="title" class="form--label mb-2">@lang('Name') <sup class="text--danger">*</sup></label> <input class="form-control form--control-2 bg--body" id="title" type="text" maxlength="255" name="title" value="{{old('title', isset($product) ? $product->title:'')}}" placeholder="@lang('Enter Name')" required=""> </div> <div class="col-md-12 mb-20"> <label for="sub_title" class="form--label mb-2"> @lang('Short Description') <sup class="text--danger">*</sup> </label> <!--<input class="form-control form--control-2 bg--body" id="sub_title" type="text" maxlength="255" name="sub_title" value="{{old('sub_title', isset($product) ? $product->sub_title:'')}}" placeholder="@lang('Enter Sub Title')" required="">--> <textarea class="form-control form--control-2 bg--body" id="sub_title" name="sub_title" placeholder="@lang('Enter Short Description')" required>{{old('sub_title', isset($product) ? $product->sub_title:'')}}</textarea> </div> </div> <div class="row"> @if(isset(Auth::user()->category)) <div class="col-md-6 mb-20"> <label for="category" class="form--label mb-2">@lang('Select Sport') <sup class="text--danger">*</sup></label> <select class="form-control form--control-2 bg--body" name="category_id" id="category" disabled> <option value="{{Auth::user()->category->id}}" @if(Auth::user()->category->id) selected @endif> {{__(Auth::user()->category->name)}} </option> </select> </div> @endif @if(isset(Auth::user()->subCategory)) <div class="col-md-6 mb-20"> <label for="sub_category" class="form--label mb-2">@lang('Select Team') <sup class="text--danger">*</sup></label> <select class="form-control form--control-2 bg--body" name="sub_category" id="sub_category" disabled> <option value="{{Auth::user()->subCategory->id}}" @if(Auth::user()->subCategory->id) selected @endif> {{__(Auth::user()->subCategory->name)}} </option> </select> </div> @endif <!-- <div class="col-md-6 mb-20">--> <!-- <label for="brand" class="form--label mb-2">@lang('Select Brand') <sup class="text--danger">*</sup></label>--> <!-- <select class="form-control form--control-2 bg--body" name="brand" id="brand" required="">--> <!-- <option value="">@lang('Select One')</option>--> <!-- @foreach($brands as $brand)--> <!-- <option value="{{$brand->id}}" @if(isset($product) && $product->brand_id == $brand->id) selected @endif>{{__($brand->name)}}</option>--> <!-- @endforeach--> <!-- </select>--> <!--</div>--> </div> <div class="row"> <div class="col-md-6 mb-20"> <label for="amounts" class="form--label mb-2">@lang('Amount') <sup class="text--danger">*</sup></label> <div class="input-group mb-3"> <input type="text" class="form-control form--control-2 bg--body" id="amounts" value="{{old('amount', isset($product) ? getAmount($product->amount) :'')}}" name="amount" placeholder="@lang('Enter Amount')" aria-label="Recipient's username" aria-describedby="basic-addon2"> <span class="input-group-text" id="basic-addon2">{{$general->cur_text}}</span> </div> </div> <div class="col-md-6 mb-20"> <label for="time_duration" class="form--label mb-2">@lang('Date of Collection') <sup class="text--danger">*</sup></label> <input class="form-control form--control-2 bg--body" id="time_duration" type="date" name="time_duration" value="{{old('time_duration', isset($product) ? showDateTime($product->time_duration, 'Y-m-d') : '')}}" required=""> </div> </div> <div class="row"> <div class="text-end"> <button class="btn btn-primary btn-sm float-right mb-2 btn__global" id="addMoreImages" type="button"> <i class="fa fa-plus" aria-hidden="true"></i> Add More File </button> </div> </div> <table class="table"> <tbody class="ProductImageBody"> @include('templates.basic.user.product.image.image-content') </tbody> @include('templates.basic.user.product.image.image-row') </table> <div class="row"> <div class="col-md-12 mb-20"> <div class="form-check"> <input class="form-check-input" type="checkbox" name="featured" value="1" id="flexCheckDefault" @if(isset($product) && $product->featured || old('featured') == 1) checked @endif> <label class="form-check-label" for="flexCheckDefault"> @lang('Mark as Feature') </label> </div> </div> </div> <div class="row"> <div class="col-md-12 mb-20"> <div class="form-check"> <input type="hidden" value="0" name="package"> <input class="form-check-input" type="checkbox" value="1" name="package" id="checkPackage" @if(isset($product) && $product->package || old('package') == 1) checked @endif> <label class="form-check-label" for="checkPackage"> Mark this as Package </label> </div> </div> </div> <div class="row"> <div class="col-md-12 mb-20"> <label for="keyword" class="form--label mb-2">@lang('Key words') <sup class="text--danger">*</sup></label> <select class="form-control form--control-2 bg--body select2-auto-tokenize" name="keyword[]" multiple="multiple" type="text" id="keyword"> @if(isset($product) && $product->keyword) @foreach($product->keyword as $name) <option value="{{$name}}" selected="true">{{__($name)}}</option> @endforeach @endif @if (is_array(old('keyword'))) @foreach (old('keyword') as $name) <option value="{{ $name }}" selected="true">{{ $name }}</option> @endforeach @endif </select> </div> </div> <div class="row"> <div class="col-md-12 mb-20"> <label for="description" class="form--label mb-2">@lang('Long Description') <sup class="text--danger">*</sup></label> <textarea class="form-control form--control-2 bg--body nicEdit" name="description" id="description" rows="15"> {{ old('description', isset($product) ? $product->description:'') }} </textarea> </div> </div> <div class="col-lg-12 text-end"> <button type="submit" class="cmn--btn btn__global">{{isset($product) ? 'Update Moment' : 'Add Moment'}}</button> </div> @include('common.addMoreImages') <link rel="stylesheet" href="{{asset('assets/global/css/select2.min.css')}}"> <script src="{{asset('assets/global/js/nicEdit.js')}}"></script> <script src="{{asset('assets/global/js/select2.min.js')}}"></script> <script> "use strict"; bkLib.onDomLoaded(function() { $( ".nicEdit" ).each(function( index ) { $(this).attr("id","nicEditor"+index); new nicEditor({fullPanel : true}).panelInstance('nicEditor'+index,{hasPanel : true}); }); }); $('.select2-auto-tokenize').select2({ tags: true, tokenSeparators: [','] }) </script>
[+]
image
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[-] index.blade.php
[edit]
[-] specification.blade.php
[edit]