PATH:
home
/
lab2454c
/
aficb.com
/
resources
/
views
/
admin
/
siteSetting
<div class="form-group"> <label for="SiteLogo">Site Logo</label> <div class="row"> <div class="col-md-6"> <input type="file" name="site_logo" accept="image/*" id="SiteLogo" onchange="showSiteLogo(this)" class="form-control" /> @error('site_logo') <p class="alert alert-danger mt-3 custom-error"> <strong>{{ $message }}</strong> </p> @enderror </div> <div class="col-md-6"> <img src="{{ isset($siteSetting->site_logo) ? config("app.url").Storage::url($siteSetting->site_logo) : asset('adminAssets/images/default-page-banner.png') }}" id="SiteLogoImg" class="frame frame-1 mt-0" title="Site Logo" alt="site_logo"> </div> </div> </div> <div class="form-group"> <label for="Favicon">Favicon</label> <div class="row"> <div class="col-md-6"> <input type="file" name="favicon" accept="image/*" id="Favicon" onchange="showFavicon(this)" class="form-control" /> @error('favicon') <p class="alert alert-danger mt-3 custom-error"> <strong>{{ $message }}</strong> </p> @enderror </div> <div class="col-md-6"> <img src="{{ isset($siteSetting->favicon) ? config("app.url").Storage::url($siteSetting->favicon) : asset('adminAssets/images/default-page-banner.png') }}" id="FaviconImg" class="frame frame-1 mt-0" title="Favicon" alt="favicon"> </div> </div> </div> <div class="form-group"> <label for="SiteName">Site Name <span class="text-danger">*</span></label> <input type="text" name="site_name" class="form-control" id="SiteName" placeholder="Site Name" value="{{old('site_name', isset($siteSetting) ? $siteSetting->site_name:'')}}" required /> @error('site_name') <p class="alert alert-danger mt-3 custom-error"> <strong>{{ $message }}</strong> </p> @enderror </div> <div class="form-group"> <label for="ContactEmail">Contact Email <span class="text-danger">*</span></label> <input type="text" name="contact_email" class="form-control" id="ContactEmail" placeholder="Contact Email" value="{{old('contact_email', isset($siteSetting) ? $siteSetting->contact_email:'')}}" required /> @error('contact_email') <p class="alert alert-danger mt-3 custom-error"> <strong>{{ $message }}</strong> </p> @enderror </div> <div class="form-group"> <label for="ContactPhone">Contact Phone <span class="text-danger">*</span></label> <input type="text" name="contact_phone" class="form-control" id="FooterContactPhoneText" placeholder="Contact Phone" value="{{old('contact_phone', isset($siteSetting) ? $siteSetting->contact_phone:'')}}" required /> @error('contact_phone') <p class="alert alert-danger mt-3 custom-error"> <strong>{{ $message }}</strong> </p> @enderror </div> <div class="form-group"> <label for="FooterText">Footer Text <span class="text-danger">*</span></label> <input type="text" name="footer_text" class="form-control" id="FooterText" placeholder="Footer Text" value="{{old('footer_text', isset($siteSetting) ? $siteSetting->footer_text:'')}}" required /> @error('footer_text') <p class="alert alert-danger mt-3 custom-error"> <strong>{{ $message }}</strong> </p> @enderror </div> <div class="form-group"> <label for="MetaTitle">Meta Title <span class="text-danger">*</span></label> <input type="text" name="meta_title" class="form-control" id="MetaTitle" placeholder="Meta Title" value="{{old('meta_title', isset($siteSetting) ? $siteSetting->meta_title:'')}}" required /> @error('meta_title') <p class="alert alert-danger mt-3 custom-error"> <strong>{{ $message }}</strong> </p> @enderror </div> <div class="form-group"> <label for="MetaKeyword">Meta Keyword </label> <input type="text" name="meta_keyword" class="form-control" id="MetaKeyword" placeholder="Meta Keyword" value="{{old('meta_keyword', isset($siteSetting) ? $siteSetting->meta_keyword:'')}}" required /> @error('meta_keyword') <p class="alert alert-danger mt-3 custom-error"> <strong>{{ $message }}</strong> </p> @enderror </div> <div class="form-group"> <label for="MetaDescription">Meta Description</label> <textarea class="form-control" rows="4" name="meta_description" id="MetaDescription">{{old('meta_description', isset($siteSetting) ? $siteSetting->meta_description:'')}}</textarea> @error('meta_description') <p class="alert alert-danger mt-3 custom-error"> <strong>{{ $message }}</strong> </p> @enderror </div> <div class="form-group"> <label for="OFTitle">OG Title </label> <input type="text" name="og_title" class="form-control" id="OFTitle" placeholder="OG Title" value="{{old('og_title', isset($siteSetting) ? $siteSetting->og_title:'')}}" required /> @error('og_title') <p class="alert alert-danger mt-3 custom-error"> <strong>{{ $message }}</strong> </p> @enderror </div> <div class="form-group"> <label for="OGDescription">OG Description</label> <textarea class="form-control" rows="4" name="og_description" id="OgDescription">{{old('og_description', isset($siteSetting) ? $siteSetting->og_description:'')}}</textarea> @error('og_description') <p class="alert alert-danger mt-3 custom-error"> <strong>{{ $message }}</strong> </p> @enderror </div> <div class="form-group"> <label for="OGImage">OG Image</label> <div class="row"> <div class="col-md-6"> <input type="file" name="og_image" accept="image/*" id="OGImage" onchange="showOGImage(this)" class="form-control" /> @error('og_image') <p class="alert alert-danger mt-3 custom-error"> <strong>{{ $message }}</strong> </p> @enderror </div> <div class="col-md-6"> <img src="{{ isset($siteSetting->og_image) ? config("app.url").Storage::url($siteSetting->og_image) : asset('adminAssets/images/default-page-banner.png') }}" id="OGImg" class="frame frame-1 mt-0" title="OG Image" alt="og_image"> </div> </div> </div> <button type="submit" class="btn btn-primary mr-2">Update</button> <a class="btn btn-dark" href="{{ route('siteSetting.index') }}">Cancel</a> <script> function showSiteLogo(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#SiteLogoImg').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } function showFavicon(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#FaviconImg').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } function showOGImage(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#OGImg').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } </script>
[-] form.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[-] list.blade.php
[edit]