@extends('layouts.report') @section('content')
@if($business)
{{ ucfirst($business->name) }}
{{ $transactions[0]->business->address }}
@else
All business
@endif

Transactions list (CIS)

@if(isset($params) && isset($params['from']) && isset($params['to']))
From: {{ Helper::formatDate($param['from']) }} - To: {{ Helper::formatDate($param['to']) }}
@endif
@foreach ($transactions as $transaction) @endforeach
Date Customer Net Amount CIS
{{ Helper::formatDate($transaction->date) }} {{ $transaction->customer ? $transaction->customer->company_name : '' }} {{ Helper::formatAmount($transaction->sum_amount) }} {{ Helper::formatAmount($transaction->sum_cis_deduction) }}
Total {{ Helper::formatAmount(Helper::calculateTotalByAttribute($transactions, 'sum_amount')) }} {{ Helper::formatAmount(Helper::calculateTotalByAttribute($transactions, 'sum_cis_deduction')) }}
@stop