split frontend from project and Implement ci/cd

This commit is contained in:
2024-09-29 07:36:08 +00:00
parent 880afdcdef
commit b458d0d884
19389 changed files with 106 additions and 7719523 deletions

View File

@@ -1,439 +0,0 @@
<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" />
<meta name="csrf-token" content="{{ csrf_token() }}" />
<link rel="icon" href="../../dist/images/fav.ico" type="image/ico" sizes="16x16" />
<title>خروجی به PDF</title>
<link rel="stylesheet" href="../dist/css/adminlte.css" />
<link rel="stylesheet" href="../../dist/css/fontiran.css" />
<link rel="stylesheet" href="../../plugins/fontawesome-free/css/all.min.css" />
<link rel="stylesheet" media="screen" href="">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
direction: rtl;
}
table tbody td {
text-align: center;
font-size: 13px;
}
.header img {
width: 65px;
height: 65px;
}
.table thead th {
vertical-align: middle;
}
table tr th {
text-align: center;
background-color: #fbe4d5;
font-size: 12px;
}
.tr-color-subheader th {
background-color: #fbe4d5 !important;
}
.head-bckchanger {
text-align: center;
background-color: #fbe4d5;
font-size: 12px;
}
table tr:first-child th {
background-color: #9cc2e5;
}
.instead_bcolor {
background-color: #9cc2e5;
}
.background-changer {
background-color: #fff !important;
}
}
table td {
text-align: center;
background-color: #fff;
font-size: 12px;
}
.pro-span {
color: #fdc07a;
}
.header {
display: flex;
border-bottom: 2px solid #000;
justify-content: space-around;
align-items: center;
margin-top: 10px;
padding-bottom: 10px;
}
.body {
margin-top: 10px;
border: 1px solid #000;
overflow-x: auto;
padding: 10px;
}
.body-header-text {
margin-bottom: 10px;
padding: 10px;
}
.all-tables {
margin-top: 10px;
}
.none-border {
margin-bottom: 10px;
border-bottom: none !important;
}
.print-width {
max-width: 900px;
}
.img-front-header {
width: 40px !important;
height: 40px !important;
margin-left: 20px;
}
.h6-yellow {
color: #fdc07a;
}
.border-bottom-cleaner {
border-bottom: 0px !important;
}
.border-top-cleaner {
border-top: 0px !important;
}
.background-changer img {
max-width: 100% !important;
height: 600px !important;
}
.tr-color-subheader th {
background-color: #fbe4d5 !important;
}
@media print {
.print-none {
display: none;
}
body {
-webkit-print-color-adjust: exact;
}
table tr:first-child th {
background-color: #9cc2e5 !important;
}
.page-print-break {
page-break-before: always;
}
}
</style>
</head>
<body>
<div class="print-none">
<div class="d-flex justify-content-center mt-3 mb-3">
<button class="btn btn-primary" onclick="showPrintPDF()">پرینت</button>
</div>
</div>
<div class="container print-width" id="printablePart">
<div class="header">
<div><img src="{{asset("word-icons/alah.png")}}" alt=""></div>
<div>
<h5><span>
<<< </span> پروژه­ های حوزه راهداری در سال 1400 <span>>>></span></h5>
</div>
<div><img src="{{asset("word-icons/rahdari.png")}}" alt=""></div>
</div>
<div class="body">
<div>
<table class="table table-default table-bordered all-tables">
<thead>
<tr>
<th colspan="8">
<h4 class="body-header-text"><img class="img-front-header"
src="{{asset("word-icons/map_province.png")}}" alt="">اداره کل <span
class="pro-span">{{$province}}</span></h3>
</th>
</tr>
<tr>
<th colspan="8" class="background-changer pb-0">
<img src="{{asset("word-icons/map/{$province_id}.png")}}">
</th>
</tr>
<tr>
<th colspan="8" class="background-changer">
<h5>خلاصه وضعیت پروژه های راهداری <span class="pro-span">{{$province}}</span></h5>
</th>
</tr>
<tr class="tr-color-subheader">
<th>تعداد کل پروژه ها <br><br> <img src="{{asset('word-icons/firsticon.png')}}"></th>
<th>تعداد پروژه های روکش (درصد پیشرفت) <br><br><img
src="{{asset('word-icons/tractur.png')}}"></th>
<th>تعداد پروژه های رفع نقاط حادثه خیز (درصد پیشرفت) <br><br><img
src="{{asset('word-icons/8.png')}}"></th>
<th>تعداد پروژه های ارتقای ایمنی راه (درصد پیشرفت) <br><br><img
src="{{asset('word-icons/fourth.png')}}"></th>
<th>تعداد پروژه های ابنیه فنی (درصد پیشرفت) <br><br><img
src="{{asset('word-icons/fifth.png')}}"></th>
<th>تعداد پروژه های راهدارخانه ها (درصد پیشرفت) <br><br><img
src="{{asset('word-icons/six.png')}}"></th>
<th>تعداد پروژه های ساخت راه روستایی (درصد پیشرفت) <br><br><img
src="{{asset('word-icons/villageRoad.png')}}">
</th>
<th>متوسط درصد پیشرفت فیزیکی کل پروژه ها <br><br><img
src="{{asset('word-icons/seventh.png')}}"></th>
</tr>
</thead>
<tbody>
<tr>
<td>{{$summaryProjectsAllExecute[0]->project_count}}</td>
@foreach ($summaryProjectsStatusExecute as $item)
<td>(%{{round($item['AvgProgressProjects'])}}) {{round($item['project_count'])}}</td>
@endforeach
<td>{{round($summaryProjectsAllExecute[0]->AvgProgressProjects)}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="body page-print-break">
<div>
<table class="table table-default table-bordered all-tables">
<thead>
<tr>
<th colspan="7">
<h5>خلاصه وضعیت تعداد پروژه های راهداری اداره کل <span
class="pro-span">{{$province}}</span></h5>
</th>
</tr>
<tr class="tr-color-subheader">
<th rowspan="2">آخرین وضعیت پروژه</th>
<th><img src="{{asset('word-icons/tractur.png')}}"> <br><br> روکش آسفالت </th>
<th><img src="{{asset('word-icons/8.png')}}"> <br><br> رفع نقاط حادثه خیز </th>
<th> <img src="{{asset('word-icons/fourth.png')}}"> <br><br> ارتقای ایمنی راه </th>
<th><img src="{{asset('word-icons/fifth.png')}}"> <br><br> نگهداری و ساخت ابنیه فنی </th>
<th><img src="{{asset('word-icons/six.png')}}"> <br><br> نوسازی و ساخت راهدارخانه‌ها </th>
<th><img src="{{asset('word-icons/villageRoad.png')}}"> <br><br> ساخت راه روستایی </th>
</tr>
</thead>
<tbody>
@foreach ($summaryProjectsStatusByLastStatusExecute as $item)
<tr>
<td>{{$item->last_status_fa}}</td>
<td>{{$item->MaintananceCount}}</td>
<td>{{$item->DangerPointCount}}</td>
<td>{{$item->RoadUpgradeCount}}</td>
<td>{{$item->TechnicalCount}}</td>
<td>{{$item->TollhouseCount}}</td>
<td>{{$item->VillageRoads}}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div>
<table class="table table-default table-bordered all-tables">
<thead>
<tr>
<th colspan="9">
<h5>وضعیت پروژه‌های راهداری اداره کل <span class="pro-span">{{$province}}</span> به
تفكیك شهرستان</h5>
</th>
</tr>
<tr class="tr-color-subheader">
<th><img src="{{asset('word-icons/map_city.png')}}"> <br><br> شهرستان</th>
<th><img src="{{asset('word-icons/firsticon.png')}}"> <br><br> تعداد کل پروژهها</th>
<th><img src="{{asset('word-icons/tractur.png')}}"><br><br> تعداد پروژه های روکش آسفالت</th>
<th><img src="{{asset('word-icons/8.png')}}"><br><br> تعداد پروژه های رفع نقاط حادثه خیز
</th>
<th><img src="{{asset('word-icons/fourth.png')}}"><br><br> تعداد پروژه های ارتقای ایمنی راه
</th>
<th><img src="{{asset('word-icons/fifth.png')}}"><br><br> تعداد پروژه های نگهداری و ساخت
ابنیه فنی</th>
<th><img src="{{asset('word-icons/six.png')}}"><br><br> تعداد پروژه های نوسازی و ساخت
راهدارخانه ها</th>
<th><img src="{{asset('word-icons/six.png')}}"><br><br> تعداد پروژه های ساخت راه روستایی
</th>
<th><img src="{{asset('word-icons/seventh.png')}}"><br><br> متوسط درصد پیشرفت فیزیک پروژه‌ها
</th>
</tr>
</thead>
<tbody>
@foreach ($projectsStatusByCitiesExecute as $item)
<tr>
<td>{{$item->city_fa ?? '0'}}</td>
<td>{{$item->TotalProjects ?? '0'}}</td>
<td>{{$item->MaintananceCount ?? '0'}}</td>
<td>{{$item->DangerPointCount ?? '0'}}</td>
<td>{{$item->RoadUpgradeCount ?? '0'}}</td>
<td>{{$item->TechnicalCount ?? '0'}}</td>
<td>{{$item->TollhouseCount ?? '0'}}</td>
<td>{{$item->VillageRoads ?? '0'}}</td>
<td>{{round($item->avg ?? '0'), 1}}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<div class="body page-print-break">
<div class="none-border">
<table class="table table-default table-bordered all-tables">
<thead>
<tr>
<th colspan="6" class="border-bottom-cleaner pb-0">
<h5><img class="img-front-header" src="{{asset("word-icons/road_pic.png")}}"
alt="">عناوین پروژه هاي مهم راهداری <span class="pro-span">{{$province}}</span>
</h5>
</th>
</tr>
</thead>
<tbody>
<tr>
<th colspan="6" class="instead_bcolor border-top-cleaner">
<h6 class="h6-yellow">"پروژه های روکش آسفالت"</h6>
</th>
</tr>
<tr class="head-bckchanger tr-color-subheader">
<th>شهرستان</th>
<th>نام محور</th>
<th>نوع عملیات اجرایی</th>
<th>طول پروژه/تعداد</th>
<th>درصد پیشرفت فیزیکی</th>
<th>آخرین وضعیت پروژه</th>
</tr>
@foreach ($importantMaintananceProjectsExecute as $item)
<tr>
<td>{{$item->city_fa}}</td>
<td>{{$item->axis_name_fa}}</td>
<td>{{$item->operation_type_fa1}}{{$item->operation_type_fa2 ? " , ".$item->operation_type_fa2 : ""}}{{$item->operation_type_fa3 ? " , ".$item->operation_type_fa3 : ""}}{{$item->operation_type_fa4 ? " , ".$item->operation_type_fa4 : ""}}
</td>
<td>{{round($item->max_amount)}}</td>
<td>{{$item->progress_project}}</td>
<td>{{$item->last_status_fa}}</td>
</tr>
@endforeach
<tr>
<th style="background-color: #fff;" colspan="6">
<h6 class="h6-yellow">"پروژه هاي رفع نقاط حادثه خیز"</h6>
</th>
</tr>
<tr>
@foreach ($importantDangerPointsProjectExecute as $item)
<tr>
<td>{{$item->city_fa}}</td>
<td>{{$item->axis_name_fa}}</td>
<td>{{$item->operation_type_fa1}}{{$item->operation_type_fa2 ? " , ".$item->operation_type_fa2 : ""}}{{$item->operation_type_fa3 ? " , ".$item->operation_type_fa3 : ""}}{{$item->operation_type_fa4 ? " , ".$item->operation_type_fa4 : ""}}
</td>
<td>{{$item->max_amount}}</td>
<td>{{$item->progress_project}}</td>
<td>{{$item->last_status_fa}}</td>
</tr>
@endforeach
</tr>
<tr>
<th style="background-color: #fff;" colspan="6">
<h6 class="h6-yellow">"پروژه هاي ایمنی راه"</h6>
</th>
</tr>
@foreach ($importantRoadUpgradeSafetiesProjectExecute as $item)
<tr>
<td>{{$item->city_fa}}</td>
<td>{{$item->axis_name_fa}}</td>
<td>{{$item->operation_type_fa1}}{{$item->operation_type_fa2 ? " , ".$item->operation_type_fa2 : ""}}{{$item->operation_type_fa3 ? " , ".$item->operation_type_fa3 : ""}}{{$item->operation_type_fa4 ? " , ".$item->operation_type_fa4 : ""}}
</td>
<td>{{$item->max_amount ? round($item->max_amount) : "-"}}</td>
<td>{{$item->progress_project}}</td>
<td>{{$item->last_status_fa}}</td>
</tr>
@endforeach
<tr>
<th style="background-color: #fff;" colspan="6">
<h6 class="h6-yellow">"پروژه هاي ابنیه فنی"</h6>
</th>
</tr>
@foreach ($importantTechnicalProjectExecute as $item)
<tr>
<td>{{$item->city_fa}}</td>
<td>{{$item->axis_name_fa}}</td>
<td>{{$item->operation_type_fa1}}{{$item->operation_type_fa2 ? " , ".$item->operation_type_fa2 : ""}}{{$item->operation_type_fa3 ? " , ".$item->operation_type_fa3 : ""}}{{$item->operation_type_fa4 ? " , ".$item->operation_type_fa4 : ""}}
</td>
<td>{{$item->max_amount}}</td>
<td>{{$item->progress_project}}</td>
<td>{{$item->last_status_fa}}</td>
</tr>
@endforeach
<tr>
<th style="background-color: #fff;" colspan="6">
<h6 class="h6-yellow">"پروژه هاي راهدارخانه ها"</h6>
</th>
</tr>
@foreach ($importantTollhouseProjectExecute as $item)
<tr>
<td>{{$item->city_fa}}</td>
<td>{{$item->axis_name_fa}}</td>
<td>{{$item->operation_type_fa1}}{{$item->operation_type_fa2 ? " , ".$item->operation_type_fa2 : ""}}{{$item->operation_type_fa3 ? " , ".$item->operation_type_fa3 : ""}}{{$item->operation_type_fa4 ? " , ".$item->operation_type_fa4 : ""}}
</td>
<td>{{$item->max_amount}}</td>
<td>{{$item->progress_project}}</td>
<td>{{$item->last_status_fa}}</td>
</tr>
@endforeach
<tr>
<th style="background-color: #fff;" colspan="6">
<h6 class="h6-yellow">"پروژه هاي ساخت راه روستایی"</h6>
</th>
</tr>
@foreach ($importantVillageRoadProjectExecute as $item)
<tr>
<td>{{$item->city_fa}}</td>
<td>{{$item->axis_name_fa}}</td>
<td>{{$item->operation_type_fa1}}{{$item->operation_type_fa2 ? " , ".$item->operation_type_fa2 : ""}}{{$item->operation_type_fa3 ? " , ".$item->operation_type_fa3 : ""}}{{$item->operation_type_fa4 ? " , ".$item->operation_type_fa4 : ""}}
</td>
<td>{{round($item->max_amount)}}</td>
<td>{{$item->progress_project}}</td>
<td>{{$item->last_status_fa}}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<script src="../../plugins/jquery/jquery.min.js"></script>
<script src="../../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<script>
function showPrintPDF() {
window.print();
}
</script>
</body>
</html>