<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<title><?php echo "Miracle | ".$title;?></title>
		
		<link rel="icon" href="<?php echo base_url();?>assets/img/miralce-ico.ico" sizes="16x16" type="image/icon">
		<!--App css-->
		<link href="<?php echo base_url();?>assets/css/bootstrap.min.css" rel="stylesheet">
		<link href="<?php echo base_url();?>assets/font-awesome/css/font-awesome.css" rel="stylesheet">
		<link href="<?php echo base_url();?>assets/css/animate.css" rel="stylesheet">
		<link href="<?php echo base_url();?>assets/css/style.css" rel="stylesheet">
		<link href="<?php echo base_url();?>assets/css/miracle.css" rel="stylesheet">
		<!--Plugins css-->
		<link href="<?php echo base_url();?>assets/plugins/custombox/css/custombox.min.css" rel="stylesheet">
		<link href="<?php echo base_url();?>assets/plugins/toastr/toastr.min.css" rel="stylesheet">
		<link href="<?php echo base_url();?>assets/plugins/sweetalert/css/sweetalert.css" rel="stylesheet">
		<!--Jquery script-->
		<script src="<?php echo base_url();?>assets/js/jquery-2.1.1.js"></script>
		<!--App script-->
		<script src="<?php echo base_url();?>assets/js/bootstrap.js"></script>
		<script src="<?php echo base_url();?>assets/js/push.min.js"></script>
		<script src="<?php echo base_url();?>assets/plugins/metisMenu/jquery.metisMenu.js"></script>
		<script src="<?php echo base_url();?>assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		<script src="<?php echo base_url();?>assets/js/inspinia.js"></script>
		<script src="<?php echo base_url();?>assets/js/miracle.js"></script>
		<script src="<?php echo base_url();?>assets/plugins/pace/pace.min.js"></script>
		<script src="<?php echo base_url();?>assets/plugins/custombox/js/custombox.min.js"></script>
		<script src="<?php echo base_url();?>assets/plugins/toastr/toastr.min.js"></script>
		<script src="<?php echo base_url();?>assets/plugins/sweetalert/js/sweetalert.min.js"></script>
		<script src="<?php echo base_url();?>assets/plugins/jquery_hotkeys/js/jquery.hotkeys.js"></script>
		
		<?php 
			if(isset($plugins) && count($plugins) > 0):
				foreach($plugins as $plugin):
					$plugin = (object) $plugin;
					if(isset($plugin->css)):
						foreach($plugin->css as $cssplugin):
		?>
		<link href="<?php echo base_url("assets/plugins")."/".$plugin->nombre."/css/".$cssplugin.".css";?>" rel="stylesheet" type="text/css"/>		
		<?php
						endforeach;
					endif;
					if(isset($plugin->js)):
						foreach($plugin->js as $jsplugin):
		?>
		<script src="<?php echo base_url("assets/plugins")."/".$plugin->nombre."/js/".$jsplugin.".js"; ?>"></script>
		<?php
						endforeach;
					endif;
				endforeach;
			endif;
		?>
		
		<?php /*CSS loader*/ 
			if(isset($cssfiles) && count($cssfiles) > 0):foreach($cssfiles as $cssfile):	
		?>
		<link href="<?php echo base_url("assets/css/")."/".$cssfile.".css";?>" rel="stylesheet" type="text/css"/>		
		<?php
				endforeach;endif;
		?>
	</head>

<body class="white-bg">
	<div class="modal-body">