Advertisement
bheng8200

blade-indent-issue

Apr 1st, 2021
895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.77 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <meta name="author" content="Bunlong Heng">
  7.     <meta name="csrf-token" value="{{ csrf_token() }}">
  8.  
  9.     <?php if(!isset($_GET['type'])) $_GET['type'] = 'all'; ?>
  10.  
  11.     <title> Audit - {{ isset($_GET['type'])?  ucfirst($_GET['type']) : 'All' }} </title>
  12.  
  13.  
  14.     @if(isset($_GET['type']) && $_GET['type'] == 'all')
  15.  
  16.     <link id="favicon" rel="shortcut icon" href="{{$baby->babyProfilePath}}?q={{microtime()}}" type="image/x-icon" />
  17.     <link rel="shortcut icon" href="{{$baby->babyProfilePath}}?q={{microtime()}}" type="image/favicon.ico" />
  18.     <link rel="apple-touch-icon" href="{{$baby->babyProfilePath}}?q={{microtime()}}" sizes="152x152">
  19.  
  20.     @else
  21.  
  22.     <link id="favicon" rel="shortcut icon" href="/assets/be/img/baby/{{$_GET['type']}}.png?q={{microtime()}}" type="image/x-icon" />
  23.     <link rel="shortcut icon" href="/assets/be/img/baby/{{$_GET['type']}}.png?q={{microtime()}}" type="image/favicon.ico" />
  24.     <link rel="apple-touch-icon" href="/assets/be/img/baby/{{$_GET['type']}}.png?q={{microtime()}}" sizes="152x152">
  25.  
  26.     @endif
  27.  
  28.  
  29.     <link  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
  30.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  31.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
  32.  
  33.     <link rel="preconnect" href="https://fonts.gstatic.com">
  34.     <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@200&display=swap" rel="stylesheet">
  35.  
  36.  
  37.     <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  38.  
  39.  
  40.     <style type="text/css">
  41.  
  42.         .text-poop {
  43.             border: solid 2px#ffb54c !important;  
  44.         }
  45.  
  46.         .text-pee {
  47.             border: solid 2px#46b8da !important;
  48.         }
  49.  
  50.         .text-medicine {
  51.             border: solid 2px#ffdf0a !important;
  52.         }
  53.  
  54.  
  55.         .text-feed {
  56.             border: solid 2px silver !important;
  57.         }
  58.  
  59.  
  60.         .badge-DELETE {
  61.             color:  red;
  62.             padding: 5px;
  63.             border: solid 1px red;
  64.         }
  65.  
  66.  
  67.         .badge-PUT {
  68.             color:  orange;
  69.             padding: 5px;
  70.             border: solid 1px orange;
  71.         }
  72.  
  73.         .badge-POST {
  74.             color:  green;
  75.             padding: 5px;
  76.             border: solid 1px green;
  77.         }
  78.  
  79.  
  80.         td, th {
  81.             vertical-align: middle !important;
  82.         }
  83.  
  84.  
  85.     </style>
  86.  
  87.  
  88. </head>
  89.  
  90.  
  91. <body>
  92.  
  93.     <div class="container ">
  94.         <div class="row ">
  95.  
  96.             <div class="col-sm-2 "></div>
  97.             <div class="col-sm-8">
  98.  
  99.                 <table class="table fixed_header">
  100.                     <thead class="thin-border-bottom">
  101.                         <th>ID</th>
  102.                         <th>logId</th>
  103.                         <th>Method</th>
  104.                         <th>Type</th>
  105.                         <th>On</th>
  106.                         <th>At</th>
  107.                         <th>Ago</th>
  108.                         <th>Note</th>
  109.                     </thead>
  110.  
  111.                     <tbody class="tbody-log">
  112.  
  113.                         @foreach ($babyLogAudits as $log)
  114.  
  115.                         <tr data-type="{{ $log->type }}" id="tr-{{$log->id}}" class="text-{{$log->type}}">
  116.                             <td>{{$log->id}}</td>
  117.                             <td>{{$log->logId}}</td>
  118.                             <td><span class="badge-{{$log->method}}">{{$log->method}}</span></td>
  119.                             <td >
  120.                                 <a class="btn btn-{{ $log->type }}" >
  121.                                     <img class="logIconSmall" src="/assets/be/img/baby/{{$log->type}}.png?q={{microtime()}}" />
  122.                                 </a>
  123.                             </td>
  124.                            
  125.                             <td>{{ DateHelper::f2($log->created_at) }}</td>
  126.                             <td>{{ DateHelper::time2($log->created_at) }}</td>
  127.                             <td>{{ DateHelper::ago($log->created_at) }} ago.</td>
  128.  
  129.  
  130.                             <td>{{$log->note}}</td>
  131.                         </tr>
  132.  
  133.                         @endforeach
  134.  
  135.                     </tbody>
  136.                 </table>
  137.             </div>
  138.             <script type="text/javascript">
  139.  
  140.                 if ($(window).width() < 600) {
  141.  
  142.                     $('td:nth-child(2)').hide();
  143.                     $('td:nth-child(5)').hide();
  144.                     $('td:nth-child(7)').hide();
  145.  
  146.  
  147.                     $('th:nth-child(2)').hide();
  148.                     $('th:nth-child(5)').hide();
  149.                     $('th:nth-child(7)').hide();
  150.  
  151.                 }
  152.  
  153.             </script>
  154.  
  155.         </body>
  156.         </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement