@php $total_year_rev = 0; $total_year_cost = 0; $total_year_gross = 0; $total_year_exp = 0; $total_year_ebitda = 0; $total_year_non_op_exp = 0; $total_year_nett_profit = 0; @endphp
Description | @foreach($periods as $period){{date('F, Y', strtotime(date('Y-d-m', strtotime('01/' . str_replace('-', '/', $period)))))}} | @endforeachTotal Year | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Summary | |||||||||||||
Revenue | @foreach($periods as $period){{ array_key_exists($period, $total_revenues) ? number_format($total_revenues[$period], 2) : 0}} | @endforeach{{number_format($total_year_rev, 2)}} | |||||||||||
Cost | @foreach($periods as $period){{ array_key_exists($period, $total_cost) ? number_format($total_cost[$period], 2) : 0}} | @endforeach{{number_format($total_year_cost, 2)}} | |||||||||||
Gross | @foreach($periods as $period){{ array_key_exists($period, $total_gross) ? number_format($total_gross[$period], 2) : 0}} | @endforeach{{number_format($total_year_gross, 2)}} | |||||||||||
Expenses | @foreach($periods as $period){{ array_key_exists($period, $total_expenses) ? number_format($total_expenses[$period], 2) : 0}} | @endforeach{{number_format($total_year_exp, 2)}} | |||||||||||
EBITDA | @foreach($periods as $period){{ array_key_exists($period, $EBITDA) ? number_format($EBITDA[$period], 2) : 0}} | @endforeach{{number_format($total_year_ebitda, 2)}} | |||||||||||
Non Operating Exp | @foreach($periods as $period){{ array_key_exists($period, $total_non_operating_exp) ? number_format($total_non_operating_exp[$period], 2) : 0}} | @endforeach{{number_format($total_year_non_op_exp, 2)}} | |||||||||||
Nett | @foreach($periods as $period){{ array_key_exists($period, $total_nett_profit) ? number_format($total_nett_profit[$period], 2) : 0}} | @endforeach{{number_format($total_year_nett_profit, 2)}} | |||||||||||
Revenue: | |||||||||||||
{{$item['description']}} | @foreach($periods as $period) @php $TCoaYear += array_key_exists($period, $item['value']) ? ($item['value'][$period]) : 0; @endphp{{ array_key_exists($period, $item['value']) ? number_format($item['value'][$period], 2) : 0}} | @endforeach{{number_format($TCoaYear, 2)}} | |||||||||||
Room Revenue | @foreach($periods as $period){{array_key_exists($period, $room_rev_total) ? number_format($room_rev_total[$period], 2) : ''}} | @endforeach||||||||||||
Food F{{'&'}}B | @foreach($periods as $period){{array_key_exists($period, $fb_food_total) ? number_format($fb_food_total[$period], 2) : ''}} | @endforeach||||||||||||
Beverages F{{'&'}}B | @foreach($periods as $period){{array_key_exists($period, $fb_bev_total) ? number_format($fb_bev_total[$period], 2) : ''}} | @endforeach||||||||||||
Other F{{'&'}}B | @foreach($periods as $period){{array_key_exists($period, $fb_other_total) ? number_format($fb_other_total[$period], 2) : ''}} | @endforeach||||||||||||
Other Revenue | @foreach($periods as $period){{ array_key_exists($period, $other_rev) ? number_format($other_rev[$period], 2) : ''}} | @endforeach||||||||||||
Total Revenue | @foreach($periods as $period) {{--{{ array_key_exists($period, $pendapatan_usaha) ? number_format($pendapatan_usaha[$period], 2) : ''}} | --}}{{ array_key_exists($period, $total_revenues) ? number_format($total_revenues[$period], 2) : 0}} | @php if (array_key_exists($period, $total_revenues)) { $total_year_rev += $total_revenues[$period]; } @endphp @endforeach{{number_format($total_year_rev, 2)}} | ||||||||||
Cost | |||||||||||||
{{$item['description']}} | @foreach($periods as $period) @php $TCoaYear_exp += array_key_exists($period, $item['value']) ? ($item['value'][$period]) : 0; @endphp{{ array_key_exists($period, $item['value']) ? number_format($item['value'][$period], 2) : 0}} | @endforeach{{number_format($TCoaYear_exp, 2)}} | |||||||||||
Total Cost | @foreach($periods as $period){{ array_key_exists($period, $total_cost) ? number_format($total_cost[$period], 2) : 0}} | @php if (array_key_exists($period, $total_cost)) { $total_year_cost += $total_cost[$period]; } @endphp @endforeach{{number_format($total_year_cost, 2)}} | |||||||||||
Gross Profit | @foreach($periods as $period){{ array_key_exists($period, $total_gross) ? number_format($total_gross[$period], 2) : 0}} | @php if (array_key_exists($period, $total_gross)) { $total_year_gross += $total_gross[$period]; } @endphp @endforeach{{number_format($total_year_gross, 2)}} | |||||||||||
{{$item['description']}} | @foreach($periods as $period){{ array_key_exists($period, $item['total']) ? number_format($item['total'][$period], 2) : ''}} | @endforeach||||||||||||
Total Cost {{'&'}} Expenses | @foreach($periods as $period) --}} {{--{{ array_key_exists($period, $total_exp_cost) ? number_format($total_exp_cost[$period], 2) : ''}} | --}} {{--{{ array_key_exists($period, $total_expenses) ? number_format($total_expenses[$period], 2) : 0}} | @php if (array_key_exists($period, $total_expenses)) { $total_year_cost += $total_expenses[$period]; } @endphp @endforeach{{number_format($total_year_cost, 2)}} | ||||||||||
Expense: | |||||||||||||
{{$item['description']}} | @foreach($periods as $period) @php $TCoaYear_exp += array_key_exists($period, $item['value']) ? ($item['value'][$period]) : 0; @endphp{{ array_key_exists($period, $item['value']) ? number_format($item['value'][$period], 2) : 0}} | @endforeach{{number_format($TCoaYear_exp, 2)}} | |||||||||||
Total Expenses | @foreach($periods as $period) {{--{{ array_key_exists($period, $total_exp_cost) ? number_format($total_exp_cost[$period], 2) : ''}} | --}}{{ array_key_exists($period, $total_expenses) ? number_format($total_expenses[$period], 2) : 0}} | @php if (array_key_exists($period, $total_expenses)) { $total_year_exp += $total_expenses[$period]; } @endphp @endforeach{{number_format($total_year_exp, 2)}} | ||||||||||
EBITDA(laba Operasional) | @foreach($periods as $period){{ array_key_exists($period, $EBITDA) ? number_format($EBITDA[$period], 2) : 0}} | @php if (array_key_exists($period, $EBITDA)) { $total_year_ebitda += $EBITDA[$period]; } @endphp @endforeach{{number_format($total_year_ebitda, 2)}} | |||||||||||
Non Operating Exp: | |||||||||||||
{{$item['description']}} | @foreach($periods as $period) @php $TCoaYear_exp += array_key_exists($period, $item['value']) ? ($item['value'][$period]) : 0; @endphp{{ array_key_exists($period, $item['value']) ? number_format($item['value'][$period], 2) : 0}} | @endforeach{{number_format($TCoaYear_exp, 2)}} | |||||||||||
Total Non Operating Exp | @foreach($periods as $period){{ array_key_exists($period, $total_non_operating_exp) ? number_format($total_non_operating_exp[$period], 2) : 0}} | @php if (array_key_exists($period, $total_non_operating_exp)) { $total_year_non_op_exp += $total_non_operating_exp[$period]; } @endphp @endforeach{{number_format($total_year_non_op_exp, 2)}} | |||||||||||
Nett Profit | @foreach($periods as $period){{ array_key_exists($period, $total_nett_profit) ? number_format($total_nett_profit[$period], 2) : 0}} | @php if (array_key_exists($period, $total_nett_profit)) { $total_year_nett_profit += $total_nett_profit[$period]; } @endphp @endforeach{{number_format($total_year_nett_profit, 2)}} | |||||||||||
Profit{{'/'}}Loss | @foreach($periods as $period) {{--{{array_key_exists($period, $profit_or_loss) ? number_format($profit_or_loss[$period], 2) : ''}} | --}}{{array_key_exists($period, $profit_or_loss) ? number_format($profit_or_loss[$period], 2) : 0}} | @endforeach @php $prof_loss_year = $total_year_rev - $total_year_cost; @endphp{{ number_format($prof_loss_year,0) }} | ||||||||||