@extends('layouts.app') @section('content')
{{ __('Profit & loss') }}

{{ 'Date: ' . date('Y-m-d') }}


{{ __('Income') }}

{{ __('User payment') }}
{{ auth()->user()->currency . $upay }}
{{ __('Resesller payment') }}
{{ auth()->user()->currency . $rpay }}
{{ __('Other income') }}
{{ auth()->user()->currency . $income }}

{{ __('Total income') }}
{{ auth()->user()->currency . ($income + $upay + $rpay) }}

{{ __('Expenses') }}

{{ __('Office expense') }}
{{ auth()->user()->currency . $expense }}
{{ __('Salary') }}
{{ auth()->user()->currency . $salary }}

{{ __('Total expense') }}
{{ auth()->user()->currency . ($expense + $salary) }}


{{ __('Profit') }}
{{ auth()->user()->currency . (($income + $upay + $rpay) - ($expense + $salary)) }}
@endsection