@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: @date($param['from']) - To: @date($param['to'])
@endif
@foreach ($transactions as $transaction) @endforeach
Date Customer Net Amount CIS
@date($transaction->date) {{ $transaction->customer ? $transaction->customer->company_name : '' }} @currency($transaction->sum_amount) @currency($transaction->sum_cis_deduction)
Total @currency(calculateTotalByAttribute($transactions, 'sum_amount')) @currency(calculateTotalByAttribute($transactions, 'sum_cis_deduction'))
@stop