PATH:
home
/
lab2454c
/
.trash
/
core
/
resources
/
views
/
admin
/
product
<style> .remove { font-size: 1.3rem; color: red; } .file-padding { padding: 4px 0 0 5px !important; } </style> <div class="container my-4"> <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" 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" id="sub_title" type="text" maxlength="255" name="sub_title" value="{{old('sub_title', isset($product) ? $product->sub_title:'')}}" placeholder="@lang('Enter Short Description')" required="">--> <textarea class="form-control form--control-2" 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"> <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" name="category_id" id="category" required=""> <option value="">@lang('Select One')</option> @foreach($categories as $category) <option value="{{$category->id}}" data-subcategory="{{json_encode($category->subCategory)}}" @if(isset($product) && $product->category_id == $category->id) selected @endif >{{__($category->name)}}</option> @endforeach </select> </div> <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 " name="sub_category" id="sub_category" required=""> <option value="">@lang('Select One')</option> </select> </div> <!--<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" 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" 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" required=""> <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" id="time_duration" type="date" name="time_duration" value="{{old('time_duration', isset($product) ? showDateTime($product->time_duration, 'Y-m-d') : '')}}" placeholder="@lang('Enter Sub Title')" required=""> </div> </div> <button class="btn btn-primary btn-sm float-right mb-2" id="addMoreImages" type="button"> <i class="fa fa-plus" aria-hidden="true"></i>Add More File </button> <table class="table"> <tbody class="ProductImageBody"> @include('admin.product.image.image-content') </tbody> @include('admin.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 Featured') </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" name="package" value="1" 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="file" class="form--label mb-2">@lang('Key words') <sup class="text--danger">*</sup></label> <select class="form-control form--control-2 select2-auto-tokenize" name="keyword[]" multiple="multiple" type="text"> @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 nicEdit" name="description" id="description" rows="15"> {{ old('description', isset($product) ? $product->description:'') }} </textarea> </div> </div> <div class="row"> <div class="col-lg-12 text-end"> <button type="submit" class="btn btn-primary">{{isset($product) ? 'Update Moment' : 'Add Moment'}}</button> <a href="{{ route('admin.product.index') }}" class="btn btn-danger">Cancel</a> </div> </div> </div> @include('common.addMoreImages')
[+]
image
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[-] index.blade.php
[edit]
[-] report.blade.php
[edit]
[-] detail.blade.php
[edit]