File manager - Edit - /home/autoph/public_html/projects/Rating-AutoHub/public/css/layouts.zip
Back
PK ��Zj�-w master.blade.phpnu �[��� <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{env('APP_NAME')}}</title> {{-- javascript --}} <script src="{{ asset('js/jquery.js') }}"></script> <script src="{{ asset('js/jquery.datatables.min.js') }}"></script> <script src="{{ asset('js/datatables.bootstrap5.min.js') }}"></script> <script src="{{ asset('js/bootstrap.bundle.min.js') }}"></script> <script src="{{ asset('js/fontawesome.min.js') }}"></script> <script src="{{ asset('js/main.js') }}"></script> <script src="{{ asset('js/toastRWithTime.js') }}"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.1.4/toastr.min.js" integrity="sha512-lbwH47l/tPXJYG9AcFNoJaTMhGvYWhVM9YI43CT+uteTRRaiLCui8snIgyAN8XWgNjNhCqlAUdzZptso6OCoFQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> {{-- css --}} <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css" integrity="sha384-b6lVK+yci+bfDmaY1u0zE8YYJt0TZxLEAFyYSLHId4xoVvsrQu3INevFKo+Xir8e" crossorigin="anonymous"> <link href="{{ asset('css/bootstrap.min.css') }}" rel="stylesheet"> <link href="{{ asset('css/app.css') }}" rel="stylesheet"> <link href="{{ asset('css/datatables.bootstrap5.min.css') }}" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.1.4/toastr.css" integrity="sha512-oe8OpYjBaDWPt2VmSFR+qYOdnTjeV9QPLJUeqZyprDEQvQLJ9C5PCFclxwNuvb/GQgQngdCXzKSFltuHD3eCxA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" href="{{asset('css/fontawesome.css')}}"> @yield('css') </head> <body> @auth() @include('navbar.sidenav') @endauth <div class="container-fluid w-100"> @yield('content') </div> @yield('javascript') </body> </html>PK ��Z���[= [= layout.blade.phpnu �[��� <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{env('APP_NAME')}}</title> <style> @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLDz8Z11lFc-K.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLDz8Z1JlFc-K.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLGT9Z11lFc-K.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLEj6Z11lFc-K.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLCz7Z11lFc-K.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLDD4Z11lFc-K.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLDD4Z1JlFc-K.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLDD4Z1xlFQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLBT5Z11lFc-K.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLBT5Z1JlFc-K.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLBT5Z1xlFQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } #system-footer{ /* position: absolute; bottom: 0; left: 0; right: 0; color: white; padding: 10px; */ } </style> <script src="{{asset('js/jquery.js')}}"></script> <script src="{{ asset('js/jquery.datatables.min.js') }}"></script> <script src="{{ asset('js/datatables.bootstrap5.min.js') }}"></script> <script src="{{asset('js/layout/popper.min.js')}}"></script> <script src="{{asset('js/layout/bootstrap.min.js')}}"></script> <script src="{{asset('js/main.js')}}"></script> <script src="{{ asset('js/swal.js') }}"></script> <script src="{{ asset('js/toastRWithTime.js') }}"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.1.4/toastr.min.js" integrity="sha512-lbwH47l/tPXJYG9AcFNoJaTMhGvYWhVM9YI43CT+uteTRRaiLCui8snIgyAN8XWgNjNhCqlAUdzZptso6OCoFQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.12/jstree.min.js"></script> <script defer src="https://static.cloudflareinsights.com/beacon.min.js/vaafb692b2aea4879b33c060e79fe94621666317369993" integrity="sha512-0ahDYl866UMhKuYcW078ScMalXqtFJggm7TmlUtp0UlD4eQk0Ixfnm5ykXKvGJNFjLMoortdseTfsRT8oCfgGA==" data-cf-beacon='{"rayId":"7a49857a2b43e550","token":"cd0b4b3a733644fc843ef0b185f98241","version":"2023.2.0","si":100}' crossorigin="anonymous"></script> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="{{asset('css/main.css')}}"> <link href="{{ asset('css/datatables.bootstrap5.min.css') }}" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.1.4/toastr.css" integrity="sha512-oe8OpYjBaDWPt2VmSFR+qYOdnTjeV9QPLJUeqZyprDEQvQLJ9C5PCFclxwNuvb/GQgQngdCXzKSFltuHD3eCxA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link href="{{ asset('css/dark-mode.css') }}" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.12/themes/default/style.min.css" /> </head> <body> @yield('css') <div class="wrapper d-flex align-items-stretch"> @if(Auth::user() && Auth::user()->type == "admin") @include('navbar.navbar') @endif <div id="content" class="p-md-3"> @if(Auth::user() && Auth::user()->type == "admin") <nav class="navbar navbar-expand-lg navbar-light bg-light"> <div class="container-fluid"> <button type="button" data-toggle="collapse" data-target="#sidebar" id="sidebarCollapse" class="btn btn-dark"> <i class="fa fa-bars" style="color:white"></i> <span class="sr-only">Toggle Menu</span> </button> <div class="page-title ml-3"> <h4 class="mt-2">{{$page_title}}</h4> </div> <button class="btn btn-dark d-inline-block d-lg-none ml-auto" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <i class="fa fa-sort-desc" aria-hidden="true"></i> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="nav navbar-nav ml-auto"> <li class="nav-item"> <div class="btn-group dropstart nav-link"> <button class="btn border-transparent btn-sm" type="button" style="color: black; margin-top: -3px"> {{Auth::user()->f_name . " " . Auth::user()->l_name}} </button> <button type="button" class="btn btn-sm border-transparent dropdown-toggle dropdown-toggle-split" style="color: black" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <span class="sr-only">Toggle Dropdown</span> </button> <div class="dropdown-menu bg-white" style="position:absolute;right:0; left:auto;"> <button class="dropdown-item lgt-btn" onclick="toggleDarkMode()" id="dark-mode-toggle" class="dropdown-item" style="text-align: left"></button> {{-- <a href="#" type="button" onclick="toggleDarkMode()" id="dark-mode-toggle" class="dropdown-item" style="text-align: left">Dark Theme<i class="fa fa-user mt-1" aria-hidden="true" style="float:right"></i></a> --}} <a href="/profile" class="dropdown-item" style="text-align: left">Profile<i class="fa fa-user mt-1" aria-hidden="true" style="float:right"></i></a> <div class="dropdown-divider"></div> <form method="POST" action="{{url('/customLogout')}}"> @csrf <button class="dropdown-item lgt-btn" style="text-align:left">Logout<i class="fa fa-sign-out mt-1" aria-hidden="true" style="float:right"></i></button> </form> </div> </div> </li> </ul> </div> </div> </nav> @endif @if(Auth::user() && Auth::user()->type == "admin") @yield('content') @endif {{-- <div class="footer w-100" style="box-sizing:border-box;position: fixed; bottom: 0; border:1px solid black;"> <div class="row"> <div class="col"> Copyright ©<script>document.write(new Date().getFullYear());</script>. All rights reserved. ADD </div> <div class="col" style="text-align:right"> V 1.0.0 </div> </div> </div> --}} </div> </div> @if(Auth::user() && Auth::user()->type == "admin") @yield('javascript') @endif {{-- <footer > All rights reserved </footer> --}} <script src="{{asset('js/layout/main.js')}}"></script> <script> function toggleDarkMode(){ document.documentElement.classList.toggle('dark-mode'); const isDarkMode = document.documentElement.classList.contains('dark-mode'); const toggleButton = document.getElementById('dark-mode-toggle'); toggleButton.innerHTML = isDarkMode ? 'Light Theme <i class="fa fa-sun-o mt-1" aria-hidden="true" style="float:right"></i>' : 'Dark Theme <i class="fa fa-moon-o mt-1" aria-hidden="true" style="float:right;"></i>'; localStorage.setItem('dark-mode', isDarkMode); // var htmlElement = document.documentElement; // var darkModeClass = 'dark-mode'; // htmlElement.classList.toggle(darkModeClass); // var isDarkMode = htmlElement.classList.contains(darkModeClass); // localStorage.setItem('dark-mode', isDarkMode); // var button = document.getElementById('dark-mode-toggle'); // button.innerHTML = isDarkMode ? 'Dark Mode<i class="fa fa-moon-o"></i>' : 'Light Mode<i class="fa fa-sun-o"></i>'; } </script> <script> const isDarkMode = localStorage.getItem('dark-mode') === 'true'; const toggleButton = document.getElementById('dark-mode-toggle'); toggleButton.innerHTML = isDarkMode ? 'Light Theme <i class="fa fa-sun-o" aria-hidden="true"></i>' : 'Dark Theme <i class="fa fa-moon-o" aria-hidden="true"></i>'; // apply the dark mode preference if necessary if (isDarkMode) { document.documentElement.classList.add('dark-mode'); } </script> </body> </html>PK ��Z���� footer.blade.phpnu �[��� <footer> </footer>PK ��Z����j j reports/counts.blade.phpnu �[��� <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Autohub Rating</title> <style type="text/css"> @page { margin: 2cm; } *{ font-family: 'Arial', sans-serif; } table{ margin: 10px 0 20px 0; width: 100%; } .data{ background-color: #222831; color: #ffffff; } th{ padding: 4px; } td{ padding: 2px; } tbody tr:nth-child(even){ background-color: #EEEEEE; } .center-aligned{ text-align: center; } em { display: inline-block; } /* .header { position: fixed; left: 0px; top: -180px; right: 0px; height: 150px; background-color: orange; text-align: center; } */ .footer { position: fixed; left: -20px; bottom: -180px; height: 160px; font-size: 10px; } .footer .page:after { content: counter(page, upper-roman); } </style> </head> <body> {{-- <div class="header"> </div> --}} <div class="footer"> <em><small>Prepared By: {{Auth::user()->f_name . " " . Auth::user()->l_name}}</small></em><p class="page"><?php $PAGE_NUM ?> </p> </div> <div style="margin-top: -45px"> <div class="row" style="width:100%; margin-bottom: -25px"> <table> <thead> <th colspan="1" style="width: 30%;"> <img src="{{ public_path('files/img/AGC_TRANSPARENT.png') }}" alt="autohub" style="height: 40px"> </th> <th colspan="4" style="width: 40%;"> <div> <label for="" style="font-size: 1rem"><strong>{{ $report_title }}</strong></label> </div> </th> <th style="width:30%;"> <p style="text-align: right; font-size: 10px;">Blk. 15, Ford Global Building., 32nd St., Cor. Rizal Drive, Crescent Park West, BGC, Taguig City<br>{{\Carbon\Carbon::now()->format('M. d, Y')}}</p> </th> </thead> </table> </div> <hr/> <div> @foreach($data as $row) <div style="margin-bottom: -15px"> <em><small>System Name: {{ $system_name }}</small></em><br> <em><small>Template Name: {{ $template_name }}</small></em><br> <em><small>Total Respondents: {{$row->total}}</small></em><br> <em><small style="font-size: 8px">Scale: (Average = 5 : 'Excellent', Average = 4 : 'Very Satisfactory', Average = 3 : 'Satisfactory', Average = 2 : 'Dissatisfactory', Average = 1 : 'Very Dissatisfactory')</small></em> </div> @if(!empty($row->total)) <?php $grouped_data = []; $totals = [0, 0, 0, 0, 0]; // initialize array for total count for each category usort($row->list, function($a, $b) { return $b['rating'] - $a['rating']; // sort by average value in descending order }); for($i = 0; $i < $row->total; $i++) { $average = $row->list[$i]['rating']; $category = ''; // initialize variable for category if ($average == 5) { $category = 'Excellent'; } elseif ($average == 4) { $category = 'Very Satisfactory'; } elseif ($average == 3) { $category = 'Satisfactory'; } elseif ($average == 2) { $category = 'Dissatisfied'; } elseif ($average == 1) { $category = 'Very Dissatisfied'; } if(!isset($grouped_data[$category])) { $grouped_data[$category] = []; } $grouped_data[$category][] = $row->list[$i]; $totals[$average - 1]++; // increment count for category } ?> @if(count($grouped_data) > 0) @foreach ($grouped_data as $category => $group) <h5> {{$category}}: {{ $totals[array_search($category, ['Very Dissatisfied', 'Dissatisfied', 'Satisfactory', 'Very Satisfactory', 'Excellent'])] }}</h6> <table> <thead class="data"> @foreach ($table_headers as $header) <th> {{ $header }} </th> @endforeach </thead> <tbody> @foreach($group as $item) <tr> <td style="width:15px;">{{$loop->iteration}}</td> @foreach($table_body as $data) <td style="text-align:center">{{ $item[$data] }}</td> @endforeach </tr> @endforeach </tbody> </table> @endforeach @else <p class="center-aligned"><em class="center-aligned"> No data to show. </em></p> @endif @else <p class="center-aligned"><em class="center-aligned"> No data to show. </em></p> @endif @endforeach </div> </div> {{-- <script type="text/php"> --}} @php if (isset($pdf)) { //Shows number center-bottom of A4 page with $x,$y values $x = 250; //X-axis i.e. vertical position $y = 820; //Y-axis horizontal position $text = "Page {PAGE_NUM} of {PAGE_COUNT}"; //format of display message $font = $fontMetrics->get_font("helvetica"); $size = 10; $color = array(0, 0, 0); $word_space = 0.0; // default $char_space = 0.0; // default $angle = 0.0; // default $pdf->page_text(250,10,'HEADER: GGG',$font,$size,$color,$word_space,$char_space,$angle); // footer $pdf->page_text($x, $y, $text, $font, $size, $color, $word_space, $char_space, $angle); } @endphp {{-- </script> --}} </body> </html>PK ��ZS�e@@ @ reports/questions.blade.phpnu �[��� <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Autohub Rating</title> <style type="text/css"> @page { margin: 2cm; } *{ font-family: 'Arial', sans-serif; } table{ margin: 10px 0 20px 0; width: 100%; } .data{ background-color: #222831; color: #ffffff; } th{ padding: 4px; } td{ padding: 2px; } tbody tr:nth-child(even){ background-color: #EEEEEE; } .center-aligned{ text-align: center; } /* .header { position: fixed; left: 0px; top: -180px; right: 0px; height: 150px; background-color: orange; text-align: center; } */ .footer { position: fixed; left: -20px; bottom: -180px; height: 160px; font-size: 10px; } .footer .page:after { content: counter(page, upper-roman); } </style> </head> <body> {{-- <div class="header"> </div> --}} <div class="footer"> <em><small>Prepared By: {{Auth::user()->f_name . " " . Auth::user()->l_name}}</small></em><p class="page"><?php $PAGE_NUM ?> </p> </div> <div style="margin-top: -45px"> <div class="row" style="width:100%; margin-bottom: -25px"> <table> <thead> <th colspan="1" style="width: 30%;"> <img src="{{public_path('files/img/AGC_TRANSPARENT.png')}}" alt=""> </th> <th colspan="4" style="width: 40%;"> <div> <label for="" style="font-size: 1.5rem"><strong>{{ $report_title }}</strong></label> </div> </th> <th style="width:30%;"> <p style="text-align: right; font-size: 10px;">Blk. 15, Ford Global Building., 32nd St., Cor. Rizal Drive, Crescent Park West, BGC, Taguig City<br>{{\Carbon\Carbon::now()->format('M. d, Y')}}</p> </th> </thead> </table> </div> <hr/> <div> @foreach($data as $row) <div style="margin-bottom: 2rem"> <em style="float:left; font-weight:bolder; font-size:20px"><small>Total Questions: {{$row->total}}</small></em> </div> @if(!empty($row->total)) <table> <thead class="data"> @foreach ($table_headers as $header) <th> {{ $header }} </th> @endforeach </thead> <tbody> @for($i = 0; $i < $row->total; $i++) <tr> <td style="width:15px; font-size: 10px;">{{$i+1}}</td> @foreach($table_body as $data) <td style="text-align: left; font-size: 10px;">{{$row->list[$i]->$data}}</td> @endforeach </tr> @endfor </tbody> </table> @else <p class="center-aligned"><em class="center-aligned"> No data to show. </em></p> @endif @endforeach </div> </div> {{-- <script type="text/php"> --}} @php if (isset($pdf)) { //Shows number center-bottom of A4 page with $x,$y values $x = 250; //X-axis i.e. vertical position $y = 820; //Y-axis horizontal position $text = "Page {PAGE_NUM} of {PAGE_COUNT}"; //format of display message $font = $fontMetrics->get_font("helvetica"); $size = 10; $color = array(0, 0, 0); $word_space = 0.0; // default $char_space = 0.0; // default $angle = 0.0; // default $pdf->page_text(250,10,'HEADER: GGG',$font,$size,$color,$word_space,$char_space,$angle); // footer $pdf->page_text($x, $y, $text, $font, $size, $color, $word_space, $char_space, $angle); } @endphp {{-- </script> --}} </body> </html>PK ��Z��t�� � &