<?php
include VIEWPATH . 'admin/header.php';
?>
    <div class="app-content">
        <div class="container-fluid">

            <!--  Page-header opened -->
            <div class="page-header">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="<?php echo base_url('admin/dashboard'); ?>"><i class="fe fe-settings mr-1"></i> Dashboard</a></li>
                    <li class="breadcrumb-item active" aria-current="page">QR Code</li>
                </ol>
            </div>
            <!--  Page-header closed -->

            <div class="row">
                <div class="col-md-4">
                    <div class="card">
                        <div class="card-header">
                            Donation QR
                        </div>
                        <div class="card-body">
                            <img src="<?php echo base_url().'qrcode.png'; ?>" />
                        </div>
                        <div class="card-footer">
                            <a class="btn btn-success" download="" href="<?php echo base_url('qrcode.png'); ?>">Download</a>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="card">
                        <div class="card-header">
                            Website QR
                        </div>
                        <div class="card-body">
                            <img src="<?php echo base_url().'web.png'; ?>" />
                        </div>
                        <div class="card-footer">
                            <a class="btn btn-success" download="" href="<?php echo base_url('web.png'); ?>">Download</a>
                        </div>
                    </div>
                </div>

                <div class="col-md-4">
                    <div class="card">
                        <div class="card-header">
                            Donation Link
                        </div>
                        <div class="card-body">
                            <div class="form-group">
                                <textarea rows="3" id="content_data" class="form-control" readonly="readonly"><?php echo base_url('donate');?></textarea>
                            </div>
                            <button onclick="copy_code(this);" type="button" class="btn btn-info">Copy</button>
                            <a target="_blank" href="<?php echo base_url('donate'); ?>" class="btn btn-primary">Preview</a>
                        </div>
                    </div>

                </div>
            </div>

        </div>
    </div>
<?php
include VIEWPATH . 'admin/footer.php';
?>