<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js" integrity="sha384-ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q" crossorigin="anonymous"></script>
<div class="content-wrapper">
    <section class="content pt-3">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-12">

                    <div class="card card-outline card-primary">
                        <?php if($this->session->flashData('smtp_msg')) { ?>
						<div class="alert alert-success">
							<?php echo $this->session->flashdata('smtp_msg'); ?>
						</div>
					<?php } ?>
					<form id="user_form" name="user_form" class="valid" method="post" action="<?php echo base_url();?>setting/saveEmailSetting" >
					<div class="card-body">
						<div class="form-group row">
							<label class="col-md-4 col-form-label">SMTP Host</label>
							<div class="col-md-8">
								<input type="text" class="form-control" name="smtp_host" placeholder="Host name" value="<?php echo $item_data[0]['smtp_host'];?>">
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-4 col-form-label">SMTP Port</label>
							<div class="col-md-8">
								<input type="text" class="form-control" name="smtp_port" placeholder="Port Details" value="<?php echo $item_data[0]['smtp_port'];?>">
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-4 col-form-label">SMTP User</label>
							<div class="col-md-8">
								<input type="text" class="form-control" name="smtp_user" placeholder="User name" value="<?php echo $item_data[0]['smtp_user'];?>">
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-4 col-form-label">SMTP Password</label>
							<div class="col-md-8">
								<input type="text" class="form-control" name="smtp_pass" placeholder="Password" value="<?php echo $item_data[0]['smtp_pass'];?>">
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-4 col-form-label">SMTP Crypto</label>
							<div class="col-md-8">
								<input type="text" class="form-control" name="smtp_crypto" placeholder="Crypto Details" value="<?php echo $item_data[0]['smtp_crypto'];?>">
							</div>
						</div>
					  <input type="submit" class="btn btn-primary btn-outline-primary" value="Save item">
					</form>

                    </div> <!-- card -->
                </div>
            </div>
        </div>
    </section>
</div>