Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Bunlong Heng">
- <meta name="csrf-token" value="{{ csrf_token() }}">
- <?php if(!isset($_GET['type'])) $_GET['type'] = 'all'; ?>
- <title> Audit - {{ isset($_GET['type'])? ucfirst($_GET['type']) : 'All' }} </title>
- @if(isset($_GET['type']) && $_GET['type'] == 'all')
- <link id="favicon" rel="shortcut icon" href="{{$baby->babyProfilePath}}?q={{microtime()}}" type="image/x-icon" />
- <link rel="shortcut icon" href="{{$baby->babyProfilePath}}?q={{microtime()}}" type="image/favicon.ico" />
- <link rel="apple-touch-icon" href="{{$baby->babyProfilePath}}?q={{microtime()}}" sizes="152x152">
- @else
- <link id="favicon" rel="shortcut icon" href="/assets/be/img/baby/{{$_GET['type']}}.png?q={{microtime()}}" type="image/x-icon" />
- <link rel="shortcut icon" href="/assets/be/img/baby/{{$_GET['type']}}.png?q={{microtime()}}" type="image/favicon.ico" />
- <link rel="apple-touch-icon" href="/assets/be/img/baby/{{$_GET['type']}}.png?q={{microtime()}}" sizes="152x152">
- @endif
- <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
- <link rel="preconnect" href="https://fonts.gstatic.com">
- <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@200&display=swap" rel="stylesheet">
- <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
- <style type="text/css">
- .text-poop {
- border: solid 2px#ffb54c !important;
- }
- .text-pee {
- border: solid 2px#46b8da !important;
- }
- .text-medicine {
- border: solid 2px#ffdf0a !important;
- }
- .text-feed {
- border: solid 2px silver !important;
- }
- .badge-DELETE {
- color: red;
- padding: 5px;
- border: solid 1px red;
- }
- .badge-PUT {
- color: orange;
- padding: 5px;
- border: solid 1px orange;
- }
- .badge-POST {
- color: green;
- padding: 5px;
- border: solid 1px green;
- }
- td, th {
- vertical-align: middle !important;
- }
- </style>
- </head>
- <body>
- <div class="container ">
- <div class="row ">
- <div class="col-sm-2 "></div>
- <div class="col-sm-8">
- <table class="table fixed_header">
- <thead class="thin-border-bottom">
- <th>ID</th>
- <th>logId</th>
- <th>Method</th>
- <th>Type</th>
- <th>On</th>
- <th>At</th>
- <th>Ago</th>
- <th>Note</th>
- </thead>
- <tbody class="tbody-log">
- @foreach ($babyLogAudits as $log)
- <tr data-type="{{ $log->type }}" id="tr-{{$log->id}}" class="text-{{$log->type}}">
- <td>{{$log->id}}</td>
- <td>{{$log->logId}}</td>
- <td><span class="badge-{{$log->method}}">{{$log->method}}</span></td>
- <td >
- <a class="btn btn-{{ $log->type }}" >
- <img class="logIconSmall" src="/assets/be/img/baby/{{$log->type}}.png?q={{microtime()}}" />
- </a>
- </td>
- <td>{{ DateHelper::f2($log->created_at) }}</td>
- <td>{{ DateHelper::time2($log->created_at) }}</td>
- <td>{{ DateHelper::ago($log->created_at) }} ago.</td>
- <td>{{$log->note}}</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- </div>
- <script type="text/javascript">
- if ($(window).width() < 600) {
- $('td:nth-child(2)').hide();
- $('td:nth-child(5)').hide();
- $('td:nth-child(7)').hide();
- $('th:nth-child(2)').hide();
- $('th:nth-child(5)').hide();
- $('th:nth-child(7)').hide();
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement