-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdemo.blade.php
37 lines (32 loc) · 944 Bytes
/
demo.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@extends('layout')
@section('title')
{{ $title }}
@endsection
@section('content')
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading text-center">{{ $title }} · Code</div>
<div class="panel-body">
<pre><code class="php">{!! $code !!}</code></pre>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading text-center">{{ $title }} · Demo</div>
<div class="panel-body">
{!! $widget !!}
</div>
</div>
</div>
@endsection
@push('lego-scripts')
<script src="//cdn.bootcss.com/highlight.js/9.9.0/highlight.min.js"></script>
<script>
$(document).ready(function () {
$('pre code').each(function (i, block) {
hljs.highlightBlock(block);
});
});
</script>
@endpush