|
20 | 20 | $anagrafica = Anagrafica::find($id_anagrafica); |
21 | 21 |
|
22 | 22 | echo ' |
23 | | - <div class="alert alert-info mb-3"> |
| 23 | + <div class="alert alert-light mb-3"> |
| 24 | + <h5 class="mb-3"><i class="fa fa-user text-primary"></i> <strong>'.tr('Informazioni cliente').'</strong></h5> |
24 | 25 | <div class="row"> |
25 | | - <div class="col-md-12"> |
26 | | - <h5 class="mb-2"><i class="fa fa-user"></i> '.tr('Informazioni cliente').'</h5> |
27 | | - <p class="mb-0"><strong>'.tr('Ragione sociale').':</strong> '.$anagrafica->ragione_sociale.'</p> |
28 | | - <p class="mb-0"><strong>'.tr('Partita IVA').':</strong> '.(!empty($anagrafica->piva) ? $anagrafica->piva : tr('Non specificata')).'</p> |
29 | | - <p class="mb-0"><strong>'.tr('Codice fiscale').':</strong> '.(!empty($anagrafica->codice_fiscale) ? $anagrafica->codice_fiscale : tr('Non specificato')).'</p> |
30 | | - <p class="mb-0"><strong>'.tr('Telefono').':</strong> '.(!empty($anagrafica->telefono) ? $anagrafica->telefono : tr('Non specificato')).'</p> |
| 26 | + <div class="col-md-6"> |
| 27 | + <p class="mb-2"><i class="fa fa-building text-muted"></i> <strong>'.tr('Ragione sociale').':</strong> '.$anagrafica->ragione_sociale.'</p> |
| 28 | + <p class="mb-0"><i class="fa fa-id-card text-muted"></i> <strong>'.tr('Partita IVA').':</strong> '.(!empty($anagrafica->piva) ? $anagrafica->piva : '<em class="text-muted">'.tr('Non specificata').'</em>').'</p> |
| 29 | + </div> |
| 30 | + <div class="col-md-6"> |
| 31 | + <p class="mb-2"><i class="fa fa-credit-card text-muted"></i> <strong>'.tr('Codice fiscale').':</strong> '.(!empty($anagrafica->codice_fiscale) ? $anagrafica->codice_fiscale : '<em class="text-muted">'.tr('Non specificato').'</em>').'</p> |
| 32 | + <p class="mb-0"><i class="fa fa-phone text-muted"></i> <strong>'.tr('Telefono').':</strong> '.(!empty($anagrafica->telefono) ? $anagrafica->telefono : '<em class="text-muted">'.tr('Non specificato').'</em>').'</p> |
31 | 33 | </div> |
32 | 34 | </div> |
33 | 35 | </div> |
|
46 | 48 |
|
47 | 49 | echo ' |
48 | 50 | <div class="col-md-6 mb-3"> |
49 | | - <div class="alert alert-light"> |
50 | | - <h6><i class="fa fa-file-text-o"></i> '.tr('Ultimi _NUM_ Contratti', ['_NUM_' => $numero_documenti]).'</h6> |
51 | | - <ul class="list-unstyled">'; |
| 51 | + <div class="alert alert-light mb-0"> |
| 52 | + <h6 class="mb-2"><i class="fa fa-file-text-o text-primary"></i> <strong>'.tr('Ultimi _NUM_ Contratti', ['_NUM_' => $numero_documenti]).'</strong></h6>'; |
52 | 53 | if (!$contratti->isEmpty()) { |
| 54 | + echo ' |
| 55 | + <ul class="list-unstyled mb-0">'; |
53 | 56 | foreach ($contratti as $contratto) { |
54 | 57 | echo ' |
55 | | - <li class="mb-1"><i class="fa fa-angle-right"></i> '.Modules::link('Contratti', $contratto->id, $contratto->getReference().' ['.$contratto->stato->getTranslation('title').']: '.dateFormat($contratto->data_accettazione).' - '.dateFormat($contratto->data_conclusione)).'</li>'; |
| 58 | + <li class="mb-1"><i class="fa fa-angle-right text-muted"></i> '.Modules::link('Contratti', $contratto->id, $contratto->getReference().' ['.$contratto->stato->getTranslation('title').']: '.dateFormat($contratto->data_accettazione).' - '.dateFormat($contratto->data_conclusione)).'</li>'; |
56 | 59 | } |
| 60 | + echo ' |
| 61 | + </ul>'; |
57 | 62 | } else { |
58 | 63 | echo ' |
59 | | - <li>'.tr('Nessun contratto attivo per questo cliente').'</li>'; |
| 64 | + <p class="text-muted mb-0"><em><i class="fa fa-info-circle"></i> '.tr('Nessun contratto attivo per questo cliente').'</em></p>'; |
60 | 65 | } |
61 | 66 | echo ' |
62 | | - </ul> |
63 | 67 | </div> |
64 | 68 | </div>'; |
65 | 69 | } |
|
75 | 79 | ->latest()->take($numero_documenti)->get(); |
76 | 80 | echo ' |
77 | 81 | <div class="col-md-6 mb-3"> |
78 | | - <div class="alert alert-light"> |
79 | | - <h6><i class="fa fa-file-o"></i> '.tr('Ultimi _NUM_ Preventivi', ['_NUM_' => $numero_documenti]).'</h6> |
80 | | - <ul class="list-unstyled">'; |
| 82 | + <div class="alert alert-light mb-0"> |
| 83 | + <h6 class="mb-2"><i class="fa fa-file-o text-info"></i> <strong>'.tr('Ultimi _NUM_ Preventivi', ['_NUM_' => $numero_documenti]).'</strong></h6>'; |
81 | 84 | if (!$preventivi->isEmpty()) { |
| 85 | + echo ' |
| 86 | + <ul class="list-unstyled mb-0">'; |
82 | 87 | foreach ($preventivi as $preventivo) { |
83 | 88 | echo ' |
84 | | - <li class="mb-1"><i class="fa fa-angle-right"></i> '.Modules::link('Preventivi', $preventivo->id, $preventivo->getReference().' ['.$preventivo->stato->getTranslation('title').']').'</li>'; |
| 89 | + <li class="mb-1"><i class="fa fa-angle-right text-muted"></i> '.Modules::link('Preventivi', $preventivo->id, $preventivo->getReference().' ['.$preventivo->stato->getTranslation('title').']').'</li>'; |
85 | 90 | } |
| 91 | + echo ' |
| 92 | + </ul>'; |
86 | 93 | } else { |
87 | 94 | echo ' |
88 | | - <li>'.tr('Nessun preventivo attivo per questo cliente').'</li>'; |
| 95 | + <p class="text-muted mb-0"><em><i class="fa fa-info-circle"></i> '.tr('Nessun preventivo attivo per questo cliente').'</em></p>'; |
89 | 96 | } |
90 | 97 | echo ' |
91 | | - </ul> |
92 | 98 | </div> |
93 | 99 | </div>'; |
94 | 100 | } |
|
101 | 107 | ->latest()->take($numero_documenti)->get(); |
102 | 108 | echo ' |
103 | 109 | <div class="col-md-6 mb-3"> |
104 | | - <div class="alert alert-light"> |
105 | | - <h6><i class="fa fa-wrench"></i> '.tr('Ultime _NUM_ Attività', ['_NUM_' => $numero_documenti]).'</h6> |
106 | | - <ul class="list-unstyled">'; |
| 110 | + <div class="alert alert-light mb-0"> |
| 111 | + <h6 class="mb-2"><i class="fa fa-wrench text-warning"></i> <strong>'.tr('Ultime _NUM_ Attività', ['_NUM_' => $numero_documenti]).'</strong></h6>'; |
107 | 112 | if (!$interventi->isEmpty()) { |
| 113 | + echo ' |
| 114 | + <ul class="list-unstyled mb-0">'; |
108 | 115 | foreach ($interventi as $intervento) { |
109 | 116 | echo ' |
110 | | - <li class="mb-1"><i class="fa fa-angle-right"></i> '.Modules::link('Interventi', $intervento->id, $intervento->getReference().' ['.$intervento->stato->getTranslation('title').']').'</li>'; |
| 117 | + <li class="mb-1"><i class="fa fa-angle-right text-muted"></i> '.Modules::link('Interventi', $intervento->id, $intervento->getReference().' ['.$intervento->stato->getTranslation('title').']').'</li>'; |
111 | 118 | } |
| 119 | + echo ' |
| 120 | + </ul>'; |
112 | 121 | } else { |
113 | 122 | echo ' |
114 | | - <li>'.tr('Nessun intervento per questo cliente').'</li>'; |
| 123 | + <p class="text-muted mb-0"><em><i class="fa fa-info-circle"></i> '.tr('Nessuna attività per questo cliente').'</em></p>'; |
115 | 124 | } |
116 | 125 | echo ' |
117 | | - </ul> |
118 | 126 | </div> |
119 | 127 | </div>'; |
120 | 128 | } |
|
132 | 140 | ->latest()->take($numero_documenti)->get(); |
133 | 141 | echo ' |
134 | 142 | <div class="col-md-6 mb-3"> |
135 | | - <div class="alert alert-light"> |
136 | | - <h6><i class="fa fa-file-pdf-o"></i> '.tr('Ultime _NUM_ Fatture', ['_NUM_' => $numero_documenti]).'</h6> |
137 | | - <ul class="list-unstyled">'; |
| 143 | + <div class="alert alert-light mb-0"> |
| 144 | + <h6 class="mb-2"><i class="fa fa-file-pdf-o text-success"></i> <strong>'.tr('Ultime _NUM_ Fatture', ['_NUM_' => $numero_documenti]).'</strong></h6>'; |
138 | 145 | if (!$fatture->isEmpty()) { |
| 146 | + echo ' |
| 147 | + <ul class="list-unstyled mb-0">'; |
139 | 148 | foreach ($fatture as $fattura) { |
140 | 149 | $scadenze = $fattura->scadenze; |
141 | 150 | $da_pagare = $scadenze->sum('da_pagare') - $scadenze->sum('pagato'); |
142 | 151 | echo ' |
143 | | - <li class="mb-1"><i class="fa fa-angle-right"></i> '.Modules::link('Fatture di vendita', $fattura->id, $fattura->getReference().': '.moneyFormat($da_pagare)).'</li>'; |
| 152 | + <li class="mb-1"><i class="fa fa-angle-right text-muted"></i> '.Modules::link('Fatture di vendita', $fattura->id, $fattura->getReference().': '.moneyFormat($da_pagare)).'</li>'; |
144 | 153 | } |
| 154 | + echo ' |
| 155 | + </ul>'; |
145 | 156 | } else { |
146 | 157 | echo ' |
147 | | - <li>'.tr('Nessuna fattura attiva per questo cliente').'</li>'; |
| 158 | + <p class="text-muted mb-0"><em><i class="fa fa-info-circle"></i> '.tr('Nessuna fattura attiva per questo cliente').'</em></p>'; |
148 | 159 | } |
149 | 160 | echo ' |
150 | | - </ul> |
151 | 161 | </div> |
152 | 162 | </div>'; |
153 | 163 | } |
|
157 | 167 | if (!empty($note_anagrafica)) { |
158 | 168 | echo ' |
159 | 169 | <div class="col-md-12"> |
160 | | - <div class="alert alert-warning"> |
161 | | - <h6><i class="fa fa-sticky-note-o"></i> '.tr('Note interne sul cliente').'</h6> |
162 | | - <p class="mb-0">'.(!empty($note_anagrafica) ? $note_anagrafica : tr('Nessuna nota interna per questo cliente')).'</p> |
| 170 | + <div class="alert alert-warning mb-0"> |
| 171 | + <h6 class="mb-2"><i class="fa fa-sticky-note-o"></i> <strong>'.tr('Note interne sul cliente').'</strong></h6> |
| 172 | + <p class="mb-0">'.$note_anagrafica.'</p> |
163 | 173 | </div> |
164 | 174 | </div>'; |
165 | 175 | } |
|
0 commit comments