Files
backend/resources/views/rmto-preview/pages/management/event-history.blade.php
2024-02-01 09:53:53 +00:00

186 lines
6.0 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title> مشاهده فایل های دانلود و آپلود شده توسط ادارات کل </title>
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="../../plugins/fontawesome-free/css/all.min.css">
<!-- IRANSans Font -->
<link rel="stylesheet" href="../../dist/css/fontiran.css">
<!-- Theme style -->
<link rel="stylesheet" href="../../dist/css/adminlte.css">
<style>
.card-header {
padding: 0.75rem 1.25rem .2rem;
}
th {
font-size: 13px;
}
td {
font-size: 14px;
}
button.btn {
font-size: 12px;
}
i {
font-size: 10px;
}
.starter-loader-container {
z-index: 3000 !important;
}
.see-main {
margin-top: 95px;
padding: 0 10px
}
label {
font-size: .8rem;
font-weight: 500 !important;
color: rgba(0, 0, 0, 0.5);
}
.form-control {
font-size: 13px;
}
.required-label::after {
content: "*";
position: relative;
right: 2px;
color: #dc3545;
}
</style>
</head>
<body class="hold-transition sidebar-mini layout-fixed layout-navbar-fixed starter-project-page">
<div class="wrapper">
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- TOP MENU -->
<header>
<div class="menu_top" id="navbarmenu_top">
<div class="rahdariLogo">
<a href="#"><img src="../../dist/images/icons/alertInstallAppLogo.png" alt=""
title="سازمان راهداری و حمل و نقل جاده ای"></a>
</div>
<button class="responsiveTopMenuBtn routinghover" onclick="window.open('/rmto', '_self');">
<img src="../../dist/images/icons/home.svg">صفحه اصلی</button>
<div class="clearfix"></div>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
</div>
</header>
<!-- END TOP MENU -->
<!-- Main content -->
<div class="content">
<div class="starter-loader-container">
<div class="starter-loader"></div>
</div>
<div class="container-fluid">
<div class="row m-0">
<div class="col-sm-12">
<div class="see-main">
<!-- Default box -->
<div class="card">
<div class="card-header">
<h3 class="card-title"> فهرست فایل های دانلود و آپلود شده توسط ادارات کل </h3>
</div>
<div class="card-body table-responsive p-0">
<table id="example" class="table table-striped projects">
<thead>
<tr>
<th style="width: 5%"> شماره </th>
<th style="width: 10%"> اداره کل </th>
<th style="width: 15%"> اداره کل / شهرستان </th>
<th style="width: 15%"> آخرین دانلود ({{ $itemCount['itemCount'] }} / {{ $itemCount['downloadCount'] }})</th>
<th style="width: 15%"> آخرین آپلود ({{ $itemCount['itemCount'] }} / {{ $itemCount['uploadCount'] }})</th>
<th style="width: 10%; text-align: center"> عملیات </th>
</tr>
</thead>
<tbody>
@foreach ($events As $event)
<tr>
<td>
{{ $event['province_id'] }}
</td>
<td>
@if ($event['main_province_name'])
{{ $event['main_province_name'] }}
@else
-
@endif
</td>
<td>
{{ $event['province_name'] }}
</td>
<td>
@if ($event['downloaded_at'])
{{ verta($event['downloaded_at'])->format('Y/m/d - H:i') }}
@else
-
@endif
</td>
<td>
@if ($event['uploaded_at'])
{{ verta($event['uploaded_at'])->format('Y/m/d - H:i') }}
@else
-
@endif
</td>
<td class="text-center">
<button class="btn btn-warning btn-sm" @if ($event['file'])
onclick="window.open('{{$event['file']}}', '_blank')" @else disabled @endif>
دانلود
</button>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
</div>
</div>
</div>
<!-- /.container-fluid -->
<!--modal change password-->
</div>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
</div>
<!-- ../../wrapper -->
<!-- REQUIRED SCRIPTS -->
<!-- jQuery -->
<script src="../../plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="../../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="../../dist/js/adminlte.min.js"></script>
</body>
</html>