<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ads</title>
    <link href="{{ asset('admin_assets') }}/css/bootstrap.min.css" id="bootstrap-stylesheet" rel="stylesheet" type="text/css" />
    <!-- Icons Css -->
    <link href="{{ asset('admin_assets') }}/css/icons.min.css" rel="stylesheet" type="text/css" />
    <!-- App Css-->
    <link href="{{ asset('admin_assets') }}/css/app.min.css" id="app-stylesheet" rel="stylesheet" type="text/css" />
</head>
<body style="height:180px; width:930px;">
        <div class="row">
            <div class="col-12">
                <center>
                    <a href="{{$data->link}}" target="_blank" class="update_view"><img src="{{asset($data->image)}}" width="100%" class="responsive " alt=""></a>
                </center>
            </div>
        </div>

    <script src="{{ asset('admin_assets') }}/js/vendor.min.js"></script>
    <script src="{{ asset('admin_assets') }}/js/app.min.js"></script>
    <script src="{{ asset('admin_assets') }}/js/daniDev.js"></script>

    <script>
        $(document).ready(function () {
            getAjaxRequests('{{route("ads_views")}}',{'id':"{{$data->hashid}}"},'get',function (data) {

            },false);
        });

        $('.update_view').click(function(e){
            getAjaxRequests('{{route("ads_clicks")}}',{'id':"{{$data->hashid}}"},'get',function (data) {

            },false);
        });
    </script>
</body>
</html>
