Commit iniziale
This commit is contained in:
83
resources/views/conti/report/catanno.blade.php
Normal file
83
resources/views/conti/report/catanno.blade.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<!-- Report categorie dell'anno suddiviso per mesi -->
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('content_header')
|
||||
<h1>Rapporto dei movimenti</h1>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<a href="{{ route('budgetxls');}}" class="btn btn-primary">Esporta in .ods</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
Rapporto spese per categoria nell'arco dell'anno {{ $anno ?? '' }}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<form action="" method="POST">
|
||||
@csrf
|
||||
<select name="anno">
|
||||
@foreach($sel_anni as $sel)
|
||||
<option value="{{ $sel->anno }}">{{ $sel->anno }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<input type="submit" name="Seleziona">
|
||||
</form>
|
||||
</div>
|
||||
<table class="table table-striped table-bordered table-hover" id="listrapporto">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Categoria</td>
|
||||
@foreach($mesi as $mese)
|
||||
<td>{{ $mese }}</td>
|
||||
@endforeach
|
||||
<td><b>Totale</b></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$cat=0;
|
||||
@endphp
|
||||
@foreach($categorie as $categoria)
|
||||
<tr>
|
||||
|
||||
<td>{{ $categoria->cat_name}}</td>
|
||||
@php
|
||||
|
||||
$index=0;
|
||||
while($index<12)
|
||||
{
|
||||
@endphp
|
||||
|
||||
<td><a href="/admin/movimenti/report/movimenti_categoria?cat={{$categoria->id}}&month={{$index+1}}&year={{ $anno ?? date('Y') }}">{{ $matrice[$cat][$index] }}</a></td>
|
||||
@php
|
||||
$index++;
|
||||
}
|
||||
@endphp
|
||||
|
||||
<td align="right"><b>{{ number_format($totale[$cat],2,'.','') }}</b></td>
|
||||
@php
|
||||
$cat++;
|
||||
@endphp
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@endsection
|
||||
@section('js')
|
||||
<script src="/js/app/conti_catanno.js"></script>
|
||||
|
||||
@endsection
|
||||
|
||||
75
resources/views/conti/report/list.blade.php
Normal file
75
resources/views/conti/report/list.blade.php
Normal file
@@ -0,0 +1,75 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('content_header')
|
||||
<h1>Rapporto dei movimenti</h1>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
Rapporto spese per categoria
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
@section('chart_divS')
|
||||
@show
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover" id="listrapportoS">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Categoria</th>
|
||||
<th>Somma delle spese</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach( $dataSpesa as $dato )
|
||||
<tr>
|
||||
<td><a href="/admin/movimenti/report/movimenti_categoria?cat={{ $dato->id }}&month={{ $_GET['Month'] ?? date('m')}}&year={{ date('Y') }}">{{ $dato->cat_name }}</a> </td>
|
||||
<td>{{ $dato->resoconto }}</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
Rapporto entrate per categoria
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
@section('chart_divE')
|
||||
@show
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover" id="listrapportoE">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Categoria</th>
|
||||
<th>Somma delle entrate</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach( $dataEntrate as $dato )
|
||||
<tr>
|
||||
<td><a href="/admin/movimenti/report/movimenti_categoria?cat={{ $dato->id }}&month={{ $_GET['Month'] ?? date('m')}}&year={{ date('Y')}}">{{ $dato->cat_name }}</a> </td>
|
||||
<td>{{ $dato->resoconto }}</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@section('js')
|
||||
<script src="/js/app/conti_categorie.js"></script>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user