Commit 86b99787 by hannan

laravel excel and media query screen report summary

parent 67010dde
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
"laravolt/semantic-form": "^2.1", "laravolt/semantic-form": "^2.1",
"laravolt/suitable": "^2.7", "laravolt/suitable": "^2.7",
"laravolt/ui": "^0.2.0", "laravolt/ui": "^0.2.0",
"maatwebsite/excel": "^3.1",
"spatie/laravel-schemaless-attributes": "^1.3", "spatie/laravel-schemaless-attributes": "^1.3",
"unisharp/laravel-ckeditor": "^4.7" "unisharp/laravel-ckeditor": "^4.7"
}, },
......
...@@ -165,6 +165,7 @@ return [ ...@@ -165,6 +165,7 @@ return [
/* /*
* Package Service Providers... * Package Service Providers...
*/ */
Maatwebsite\Excel\ExcelServiceProvider::class,
/* /*
* Application Service Providers... * Application Service Providers...
...@@ -226,6 +227,7 @@ return [ ...@@ -226,6 +227,7 @@ return [
'Validator' => Illuminate\Support\Facades\Validator::class, 'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class, 'View' => Illuminate\Support\Facades\View::class,
'Curl' => Ixudra\Curl\Facades\Curl::class, 'Curl' => Ixudra\Curl\Facades\Curl::class,
'Excel' => Maatwebsite\Excel\Facades\Excel::class,
], ],
......
...@@ -6,11 +6,16 @@ ...@@ -6,11 +6,16 @@
<div class="ui purple left ribbon label"> <div class="ui purple left ribbon label">
Report Summary Report Summary
</div> </div>
<br>
<br> <button class="right floated center aligned ui violet compact labeled icon button">
<i class="file excel outline icon"></i>
Export to Excel
</button>
<br><br>
<div class="ui styled fluid"> <div class="ui styled fluid">
<div class="" style="width: 1200px; overflow-x: auto"> <div class="ringkasantable">
<table class="ui unstackable celled table"> <table class="ui unstackable celled table">
<thead> <thead>
<tr> <tr>
...@@ -56,7 +61,7 @@ ...@@ -56,7 +61,7 @@
<td>{{$key+1}}</td> <td>{{$key+1}}</td>
<td>{{data_get($staff,'deptCode')}}</td> <td>{{data_get($staff,'deptCode')}}</td>
<td>{{data_get($staff,'staffid')}}</td> <td>{{data_get($staff,'staffid')}}</td>
<td>{{data_get($staff,'name')}}</td> <td class="single line">{{data_get($staff,'name')}}</td>
<td></td> <td></td>
<?php $totalc = 0; ?> <?php $totalc = 0; ?>
@foreach($chargeproject as $key => $chargeable) @foreach($chargeproject as $key => $chargeable)
...@@ -113,6 +118,65 @@ ...@@ -113,6 +118,65 @@
</div> </div>
<style>
@media only screen and (max-width: 1092px){
.ringkasantable{
overflow-x: auto;
width: 750px;
}
}
@media only screen and (min-width: 1093px){
.ringkasantable{
overflow-x: auto;
width: 870px;
}
}
@media only screen and (min-width: 1241px){
.ringkasantable{
overflow-x: auto;
width: 1000px;
}
}
@media only screen and (min-width: 1366px){
.ringkasantable{
overflow-x: auto;
width: 1145px;
}
}
@media only screen and (min-width: 1516px){
.ringkasantable{
overflow-x: auto;
width: 1332px;
}
}
@media only screen and (min-width: 1706px){
.ringkasantable{
overflow-x: auto;
width: 1424px;
}
}
@media only screen and (min-width: 1819px){
.ringkasantable{
overflow-x: auto;
width: 1685px;
}
}
@media only screen and (min-width: 2047px){
.ringkasantable{
overflow-x: auto;
width: 2372px;
}
}
</style>
@endsection @endsection
@push('script') @push('script')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment