PATH:
home
/
lab2454c
/
westernclear.net
/
resources
/
views
/
admin
/
homepageManager
/
investmentSection
<div class="form-group"> <label for="InvestmentIcon">Icon<span class="text-danger"> *</span></label> <div class="row"> <div class="col-md-6"> <input type="file" name="icon" accept="image/*" id="InvestmentIcon" onchange="showBannerImage(this)" class="form-control @error('icon') is-invalid @enderror"/> </div> <div class="col-md-6"> <img src="{{ isset($investmentSection->icon) ? config("app.url").Storage::url($investmentSection->icon) : asset('adminAssets/images/default-page-banner.png') }}" id="BannerImg" class="frame frame-1 mt-0" title="Banner Image" alt="banner_image"> </div> </div> </div> <div class="form-group"> <label for="InvestmentDarkIcon">Dark Icon<span class="text-danger"> *</span></label> <div class="row"> <div class="col-md-6"> <input type="file" name="dark_icon" accept="image/*" id="InvestmentDarkIcon" onchange="showDarkLogo(this)" class="form-control @error('dark_icon') is-invalid @enderror"/> </div> <div class="col-md-6"> <img src="{{ isset($investmentSection->dark_icon) ? config("app.url").Storage::url($investmentSection->dark_icon) : asset('adminAssets/images/default-page-banner.png') }}" id="DarkIcon" class="frame frame-1 mt-0" title="Banner Image" alt="banner_image"> </div> </div> </div> <div class="form-group"> <label for="Title">Title<span class="text-danger"> *</span></label> <input type="text" name="title" class="form-control @error('title') is-invalid @enderror" id="Title" placeholder="Enter Title" value="{{old('title', isset($investmentSection->title) ? $investmentSection->title:'')}}" required /> </div> <div class="form-group"> <label for="ShortDesc">Short Decsription</label> <textarea class="form-control nicEdit @error('short_description') is-invalid @enderror" name="short_description" placeholder="Enter Short Desc" id="ShortDesc" rows="5">{{old('short_description', isset($investmentSection) ? $investmentSection->short_description:'')}}</textarea> </div> <button type="submit" class="btn btn-primary mr-2">{{isset($investmentSection) ? 'Update' : 'Create'}}</button> <a class="btn btn-dark" href="{{ route('investmentSection.index') }}">Cancel</a> @include('admin.common.scripts') <script> function showDarkLogo(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#DarkIcon').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } </script>
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[+]
text
[-] list.blade.php
[edit]