<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Classic Invoicer 2 - System Check Requirements</title>
    @include('install.partials.styles')
</head>
<body class="login-page">
<div class="container">
    <div class="login-logo">
        <b>Classic</b> Invoicer 2 Installation
    </div><!-- /.login-logo -->
    <div class="row">
        <div class="col-md-12">
            <!-- TABLE: LATEST ORDERS -->
            <div class="box">
                <div class="box-body">
                    <div id="system_details">
                        <div class="callout callout-warning">
                            <h4>Minimum System Requirements</h4>
                        </div>
                        <?php $flag= true; ?>
                        <ul>
                            <li>
                                @if(version_compare(phpversion(),"5.4",">="))
                                <i class="glyphicon glyphicon-ok"></i> PHP Version Compatible
                                @else
                                <?php $flag = false; ?>
                                <i class="glyphicon glyphicon-remove"></i> PHP Version Not Compatible
                                @endif
                            </li>
                            <li>
                                @if(extension_loaded('pdo'))
                                <i class="glyphicon glyphicon-ok"></i>  PDO Enabled
                                @else
                                <?php $flag = false; ?>
                                <i class="glyphicon glyphicon-remove"></i> PDO Disabled
                                @endif
                            </li>
                            <li>
                                @if(extension_loaded('mcrypt'))
                                <i class="glyphicon glyphicon-ok"></i>   Mcrypt Extension Enabled
                                @else
                                <?php $flag = false; ?>
                                <i class="glyphicon glyphicon-remove"></i> Mcrypt Extension Disabled
                                @endif
                            </li>
                            <li>
                                @if(extension_loaded('gd'))
                                <i class="glyphicon glyphicon-ok"></i> GD Extension Enabled
                                @else
                                <?php $flag = false; ?>
                                <i class="glyphicon glyphicon-remove"></i> GD Extension Disabled
                                @endif
                            </li>
                            <li>
                                @if(extension_loaded('openssl'))
                                <i class="glyphicon glyphicon-ok"></i> OpenSSL Extension Enabled
                                @else
                                <?php $flag = false; ?>
                                <i class="glyphicon glyphicon-remove"></i> OpenSSL Extension Disabled
                                @endif
                            </li>
                            <li>
                                @if(extension_loaded('mbstring'))
                                <i class="glyphicon glyphicon-ok"></i> Mbstring Extension Enabled
                                @else
                                <?php $flag = false; ?>
                                <i class="glyphicon glyphicon-remove"></i> Mbstring Extension Disabled
                                @endif
                            </li>
                            <li>
                                @if(extension_loaded('tokenizer'))
                                <i class="glyphicon glyphicon-ok"></i> Tokenizer Extension Enabled
                                @else
                                <?php $flag = false; ?>
                                <i class="glyphicon glyphicon-remove"></i> Tokenizer Extension Disabled
                                @endif
                            </li>
                            <li>
                                @if(is_writable('assets/img//uploads'))
                                <i class="glyphicon glyphicon-ok"></i> assets/img/uploads folder is Writable
                                @else
                                <?php $flag = false; ?>
                                <i class="glyphicon glyphicon-remove"></i> assets/img/uploads folder is not Writable
                                @endif
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="box-footer clearfix hide" id="box-footer">
                    @if($flag == false)
                        {!!  Form::submit('Correct errors and try again', ['class' => 'btn-flat btn btn-danger', 'onClick'=>"location.reload(true)"]) !!}
                    @else
                        <a href="{{url('install/database')}}" class="btn btn-sm btn-success next_btn"> Let's Begin ! </a>
                    @endif
                </div>
            </div>
        </div>
    </div>
</div>
@include('install.partials.scripts')
</body>
</html>

