TanchoToplineCargo/resources/views/crud/generated/settings/edit.blade.php

130 lines
6.4 KiB
PHP
Raw Permalink Normal View History

2024-05-05 04:47:49 +00:00
@extends('backend.template')
@section('content')
<!-- start page title -->
<div class="row">
<div class="col-12">
<div class="page-title-box d-sm-flex align-items-center justify-content-between">
<h4 class="mb-sm-0">Website Setting</h4>
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript: void(0);">Ecommerce</a></li>
<li class="breadcrumb-item active">Website Setting</li>
</ol>
</div>
</div>
</div>
</div>
<!-- end page title -->
<form action="{{ route('settings.update', [$data->setting_id]) }}" id="updateCustomForm" method="POST">
@csrf <input type=hidden name='setting_id' value='{{ $data->setting_id }}' />
<div class="row">
<div class="col-lg-8">
<div class="card">
<div class="card-body">
<div class="col-lg-12">{{ createText('title', 'title', 'Title', '', $data->title) }}
</div>
<div class="col-lg-12 pb-12">
{{ createTextarea('description', 'description ckeditor-classic', 'Description', $data->description) }}
</div>
<div class="col-lg-12 pb-12">
{{ createText('address', 'description ckeditor-classic', 'Description', $data->description) }}
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">
Contents
</h5>
</div>
<div class="card-body">
<div class="col-lg-12 pb-2">{{ createTextarea('content1', 'content1 ', 'Content 1', $data->content1) }}
</div>
<div class="col-lg-12 pb-2">{{ createTextarea('content2', 'content2 ', 'Content 2', $data->content2) }}
</div>
<div class="col-lg-12 pb-2">{{ createTextarea('content3', 'content3 ', 'Content 3', $data->content3) }}
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Google Map</h5>
</div>
<div class="card-body">
{{ createTextArea('google_map', 'google_map', 'Google Map', $data->google_map) }}
</div>
</div>
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0"> Copyright</h5>
</div>
<div class="card-body">
{{ createText('copyright_text', 'copyright_text', 'Copyright Text', '', $data->copyright_text) }}
</div>
</div>
<div class="col-md-12">
<?php createButton('btn-primary btn-update', '', 'Submit'); ?>
<?php createButton('btn-danger btn-cancel', '', 'Cancel', route('settings.index')); ?>
</div>
</div>
<div class="col-lg-4">
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Links</h5>
</div>
<div class="card-body">
<div class="row">
<div class="col-lg-12">{{ createText('url1', 'url1', 'Primary Url', '', $data->url1) }}</div>
<div class="col-lg-12">{{ createText('url2', 'url2', 'Secondary Url', '', $data->url2) }}</div>
<div class="col-lg-12">{{ createText('email', 'email', 'Email', '', $data->email) }}</div>
<div class="col-lg-12">{{ createText('address', 'address', 'address', '', $data->address) }}</div>
<div class="col-lg-12">{{ createText('phone', 'phone', 'Phone', '', $data->phone) }}</div>
<div class="col-lg-12">
{{ createText('secondary_phone', 'secondary_phone', 'Secondary Phone', '', $data->secondary_phone) }}
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Social Media</h5>
</div>
<div class="card-body">
<div class="col-lg-12">{{ createText('fb', 'fb', 'Fb', '', $data->fb) }}</div>
<div class="col-lg-12">{{ createText('insta', 'insta', 'Insta', '', $data->insta) }}</div>
<div class="col-lg-12">{{ createText('twitter', 'twitter', 'Twitter', '', $data->twitter) }}</div>
<div class="col-lg-12">{{ createText('tiktok', 'tiktok', 'Tiktok', '', $data->tiktok) }}</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Logos</h5>
</div>
<div class="card-body">
<div class="col-lg-12 pb-2">
{{ createImageInput('primary_logo', 'Primary Logo', '', $data->primary_logo) }}</div>
<div class="col-lg-12 pb-2">
{{ createImageInput('secondary_logo', 'Secondary Logo', '', $data->secondary_logo) }}</div>
<div class="col-lg-12 pb-2">{{ createImageInput('thumb', 'Thumb', '', $data->thumb) }}</div>
<div class="col-lg-12 pb-2">{{ createImageInput('icon', 'Icon', '', $data->icon) }}</div>
<div class="col-lg-12 pb-2">{{ createImageInput('og_image', 'Og Image', '', $data->og_image) }}</div>
<div class="col-lg-12 pb-2">{{ createImageInput('no_image', 'No Image', '', $data->no_image) }}</div>
</div>
</div>
</div>
</div>
@endsection