$suma = 0;
if ( is_array( $this -> _phrases ) ) foreach ( $this -> _phrases as $phrase )
{
$discount = '';
if ( $this -> _site['discount'] )
$discount = $this -> _site['discount'];
if ( $phrase['discount'] )
$discount = $phrase['discount'];
if ( is_array( $phrase['prices'] ) )
{
?>
= $phrase['phrase'];?> if ( $discount ):?>rabat = $discount;?>% endif;?>
if ( is_array( $phrase['prices'] ) )
{
$sum = 0;
?>
| Przedział |
Stawka |
Ilość dni |
Należność |
foreach ( $phrase['prices'] as $price )
{
$price_c = \S::number( $price['price'] - \S::number( $price['price'] * $discount / 100 ) );
?>
style="background: #efefef;" endif;?>>
| = $price['start'];?> - =$price['end'];?> |
class="discount" endif;?>>
= $price_c . ' PLN';?>
|
= $price['count'];?> |
= number_format( $price_c * $price['count'], 2, '.', ' ' ) . ' PLN';?>
|
$sum = $sum + $price_c * $price['count'];
$suma = $suma + $price_c * $price['count'];
}
?>
| suma: |
}
?>
}
}
echo '
';
if ( $suma )
{
?>
= number_format( $suma, 2, '.', ' ' ) . ' PLN';?>
= number_format( $suma * 1.23, 2, '.', ' ' ) . ' PLN';?>
}
?>