New-OMIS/resources/views/crud/generated/settings/edit.blade.php

169 lines
8.0 KiB
PHP
Raw Permalink Normal View History

2024-04-07 07:28:58 +00:00
@extends('layouts.app')
2024-04-05 05:22:15 +00:00
@section('content')
2024-04-07 07:28:58 +00:00
<!-- start page title -->
<div class="row">
2024-04-05 05:22:15 +00:00
<div class="col-12">
2024-04-07 07:28:58 +00:00
<div class="page-title-box d-sm-flex align-items-center justify-content-between">
<h4 class="mb-sm-0">Edit Setting</h4>
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript: void(0);">Dashboards</a></li>
<li class="breadcrumb-item active">Add Branch</li>
</ol>
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
</div>
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
</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 }}' />
2024-04-05 05:22:15 +00:00
<div class="row">
2024-04-07 07:28:58 +00:00
<div class="col-xl-9 mb-3">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-lg-12">{{ createText('title', 'title', 'Title', '', $data->title) }}</div>
<div class="border border-dashed"></div>
<div class="col-lg-12 pb-2">
{{ createTextarea('description', 'description ckeditor-classic', 'Description', $data->description) }}</div>
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
</div>
</div>
<div class="card">
<div class="card-header">
<h4 class="card-title mb-0">Contact Details</h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-lg-6">{{ createText('address', 'address', 'Address', '', $data->address) }}</div>
<div class="col-lg-6">{{ createText('url1', 'url1', 'Url1', '', $data->url1) }}</div>
<div class="col-lg-6">{{ createText('email', 'email', 'Email', '', $data->email) }}</div>
<div class="col-lg-3">{{ createText('phone', 'phone', 'Phone', '', $data->phone) }}</div>
<div class="col-lg-3">
{{ createText('secondary_phone', 'secondary_phone', 'Secondary Phone', '', $data->secondary_phone) }}</div>
<div class="col-lg-12 pb-2">{{ createPlainTextArea('google_map', '', 'Google Map', $data->google_map) }}</div>
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
</div>
</div>
<div class="card">
<div class="card-header">
<div class="card-title mb-0">Footer</div>
</div>
<div class="card-body">
<div class="row">
<div class="col-lg-12">
{{ createText('copyright_text', 'copyright_text', 'Copyright Text', '', $data->copyright_text) }}</div>
<div class="col-lg-12 pb-2">{{ createTextarea('content1', 'content1', 'Content1', $data->content1) }}</div>
<div class="col-lg-12 pb-2">{{ createTextarea('content2', 'content2', 'Content2', $data->content2) }}</div>
<div class="col-lg-12 pb-2">{{ createTextarea('content3', 'content3', 'Content3', $data->content3) }}</div>
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
</div>
</div>
<div class="card">
<div class="card-header">
<div class="card-title mb-0">SEO Related</div>
</div>
<div class="card-body">
<div class="col-lg-12">{{ createText('seo_title', 'seo_title', 'Seo Title', '', $data->seo_title) }}</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('seo_description', '', 'Seo Description', $data->seo_description) }}</div>
<div class="col-lg-12 pb-2">{{ createPlainTextArea('seo_keywords', '', 'Seo Keywords', $data->seo_keywords) }}
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
<div class="col-lg-12 pb-2">{{ createPlainTextArea('og_tags', '', 'Og Tags', $data->og_tags) }}</div>
</div>
</div>
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
<div class="card">
<div class="card-header">
<div class="card-title mb-0">Site Settings</div>
</div>
<div class="card-body">
<div class="col-lg-12">
{{ createPlainTextArea('meta_pixel_code', '', 'Meta Pixel Code', $data->meta_pixel_code, 10) }}</div>
<div class="col-lg-12">{{ createText('smtp_server', 'smtp_server', 'SMTP Server', '', $data->smtp_server) }}
</div>
<div class="col-lg-12">
{{ createText('smtp_security', 'smtp_security', 'SMTP Security (TSL/SSL/Empty for none)', '', $data->smtp_security) }}
</div>
<div class="col-lg-12">{{ createText('smtp_port', 'smtp_port', 'SMTP PORT (25/587/465)', '', $data->smtp_port) }}
</div>
<div class="col-lg-12">{{ createText('smtp_user', 'smtp_user', 'SMTP Username', '', $data->smtp_user) }}</div>
<div class="col-lg-12">
{{ createText('smtp_password', 'smtp_password', 'SMTP Password', '', $data->smtp_password) }}</div>
<div class="col-lg-12">{{ createText('sms_api', 'sms_api', 'SMS API', '', $data->sms_api) }}</div>
<div class="col-lg-12">{{ createText('sms_username', 'sms_username', 'SMS Username', '', $data->sms_username) }}
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
<div class="col-lg-12">{{ createText('sms_password', 'sms_password', 'SMS Password', '', $data->sms_password) }}
</div>
<div class="col-lg-12">
{{ createText('sms_sender', 'sms_sender', 'SMS Sender (Default is SMS)', '', $data->sms_sender) }}</div>
</div>
</div>
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
</div>
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
<div class="col-xl-3 mb-3">
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
<div class="card">
<div class="card-header">
<h4 class="card-title mb-0">Social Media</h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-lg-12">{{ createText('fb', 'fb', 'Facebook', '', $data->fb) }}</div>
<div class="col-lg-12">{{ createText('insta', 'insta', 'Instagram', '', $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>
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
</div>
</div>
<div class="card">
<div class="card-header">
<h4 class="card-title mb-0">Images</h4>
</div>
<div class="card-body">
<div class="col-lg-12 pb-2">{{ createImageInput('primary_logo', 'Primary Logo', '', $data->primary_logo) }}
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
<div class="mb-3 border border-dashed"></div>
<div class="col-lg-12 pb-2">
{{ createImageInput('secondary_logo', 'Secondary Logo', '', $data->secondary_logo) }}</div>
<div class="mb-3 border border-dashed"></div>
<div class="col-lg-12 pb-2">{{ createImageInput('thumb', 'Thumb', '', $data->thumb) }}</div>
<div class="mb-3 border border-dashed"></div>
<div class="col-lg-12 pb-2">{{ createImageInput('icon', 'Icon', '', $data->icon) }}</div>
<div class="mb-3 border border-dashed"></div>
<div class="col-lg-12 pb-2">{{ createImageInput('og_image', 'Og Image', '', $data->og_image) }}</div>
<div class="mb-3 border border-dashed"></div>
<div class="col-lg-12 pb-2">{{ createImageInput('no_image', 'No Image', '', $data->no_image) }}</div>
</div>
</div>
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
<div class="card">
<div class="card-header">
<h4 class="card-title mb-0">Published</h4>
</div>
<div class="card-body">
<div class="form-check form-switch form-switch-lg form-switch-success mb-3" dir="ltr">
<input type="checkbox" class="form-check-input" id="customSwitchsizelg" checked="">
<label class="form-check-label" for="customSwitchsizelg">Active</label>
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
</div>
<div class="card-footer">
<?php createButton('btn-primary btn-update', '', 'Submit'); ?>
<?php createButton('btn-danger btn-cancel', '', 'Cancel', route('settings.index')); ?>
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
</div>
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
</div>
</div>
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
</form>
@endsection