<div>
	<div class="tab">
		<ul class="nav nav-tabs customtab" role="tablist">
			<li class="nav-item">
				<a wire:click="selectTab('general_settings')" class="nav-link <?php echo e($tab == 'general_settings' ? 'active' : ''); ?> " data-toggle="tab" href="#general_settings" role="tab" aria-selected="true">General Settings</a>
			</li>
			<li class="nav-item">
				<a wire:click="selectTab('logo_favicon')" class="nav-link <?php echo e($tab == 'logo_favicon' ? 'active' : ''); ?> " data-toggle="tab" href="#logo_favicon" role="tab" aria-selected="false">Logo & Favicon</a>
			</li>

		</ul>
		<div class="tab-content">
			<div class="tab-pane fade <?php echo e($tab == 'general_settings' ? 'active show' : ''); ?>"
				id="general_settings" role="tabpanel">
				<div class="pd-20">
					<form wire:submit="updateSiteInfo()">
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label for=""><b>Site Title</b></label>
									<input type="text" class="form-control" wire:model="site_title" placeholder="Enter site title">
									<!--[if BLOCK]><![endif]--><?php $__errorArgs = ['site_title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
									<span class="text-danger ml-1"><?php echo e($message); ?></span>
									<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label for=""><b>Site email</b></label>
									<input type="text" class="form-control" wire:model="site_email" placeholder="Enter site email">
									<!--[if BLOCK]><![endif]--><?php $__errorArgs = ['site_email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
									<span class="text-danger ml-1"><?php echo e($message); ?></span>
									<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label for=""><b>Site phone number</b><small> (Optional)</small></label>
									<input type="text" class="form-control" wire:model="site_phone" placeholder="Enter site contact phone">
									<!--[if BLOCK]><![endif]--><?php $__errorArgs = ['site_phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
									<span class="text-danger ml-1"><?php echo e($message); ?></span>
									<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label for=""><b>Site Meta Keywords</b><small> (Optional)</small></label>
									<input type="text" class="form-control" wire:model="site_meta_keywords" placeholder="Eg: private school, school in Digos, college">
									<!--[if BLOCK]><![endif]--><?php $__errorArgs = ['site_meta_keywords'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
									<span class="text-danger ml-1"><?php echo e($message); ?></span>
									<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
								</div>
							</div>
							<div class="form-group">
								<label for=""><b>Site Meta Description</b><small>(Optional)</small></label>
								<textarea class="form-control" wire:model="site_meta_description"cols="4" rows="4" placeholder="Type site meta description..."></textarea>
								<!--[if BLOCK]><![endif]--><?php $__errorArgs = ['site_meta_description'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
									<span class="text-danger ml-1"><?php echo e($message); ?></span>
									<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
							</div>
						</div>
						<button type="submit" class="btn btn-primary">Save Changes</button>
					</form>
				</div>
			</div>
			<div class="tab-pane fade <?php echo e($tab == 'logo_favicon' ? 'active show' : ''); ?>"
				id="logo_favicon" role="tabpanel">
				<div class="pd-20">
					<div class="row">
						<div class="col-md-6">
							<h6>Site Logo</h6>
							<div class="mb-2 mt-1" style="max-width: 200px">
								<img wire:ignore src="/images/site/<?php echo e(isset(settings()->site_logo) ? settings()->site_logo : ''); ?>" alt="Preview" class="img-thumbnail" id="preview_site">
							</div>
							<form action="<?php echo e(route('admin.update_logo')); ?>" method="POST" enctype="multipart/form-data" id="updateLogoForm">
								<?php echo csrf_field(); ?>
								<div class="mb-2">
									<input type="file" name="site_logo" id="site_logo_input" class="form-control">
									<span class="text-danger ml-1"></span>
									<br>
									<button type="submit" class="btn btn-primary mt-2">Change Logo</button>
							</form>
						</div>
					</div>
					<div class="col-md-6">
						<h6>Site Favicon</h6>
						<div class="mb-2 mt-1" style="max-width: 100px">
							<img wire="ignore" src="/images/site/<?php echo e(isset(settings()->site_favicon) ? settings()->site_favicon : ''); ?>" alt="" id="preview_site_favicon" class="img-thumbnail">
						</div>
						<form action="<?php echo e(route('admin.update_favicon')); ?>" method="POST" enctype="multipart/form-data" id="updateFaviconForm">
							<?php echo csrf_field(); ?>
							<div class="mb-2">
								<input type="file" name="site_favicon" id="" class="form-control">
								<span class="text-danger ml-1"></span>
								<br>
							</div>
							<button type="submit" class="btn btn-primary mt-2">Change favicon</button>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</div>
</div><?php /**PATH C:\xampp\htdocs\larablog\resources\views/livewire/admin/settings.blade.php ENDPATH**/ ?>