@extends('layouts.app')
@section('title', 'Income Statement')
@section('content')
@if(isset($data['record']) && $data['record'])
Report generated based on all the orders that are marked with status "Complete".
Income Statement
From {{ $data['from_date'] }} to {{ $data['to_date'] }}
| Sales Revenue |
|
@foreach($data['record'] as $row)
| {{ $row->service->name }} |
{{ format_money($row->amount) }} |
@endforeach
| Total |
{{ format_money($data['total_revenue']) }} |
| (-) Expenses |
|
| Payments to staffs
|
{{ format_money($data['total_expense']) }}
|
| Total |
{{ format_money($data['total_expense']) }} |
| Net Income |
{{ format_money($data['income']) }} |
@endif
@if((!isset($data['record'])) && request('type') == 'requested')
No record found
@endif
@endsection
@push('scripts')
@endpush