akaunting/resources/views/widgets/cash_flow.blade.php
2022-08-31 18:16:14 +03:00

54 lines
2.0 KiB
PHP

<div id="widget-{{ $class->model->id }}" class="w-full my-8 px-12">
@include($class->views['header'], ['header_class' => ''])
<div class="flex flex-col lg:flex-row mt-3">
<div class="w-full lg:w-11/12">
{!! $chart->container() !!}
</div>
<div class="w-full lg:w-1/12 mt-11 space-y-2">
<div class="flex flex-col items-center justify-between text-center">
<div class="flex justify-end lg:block text-lg">
<x-tooltip id="tooltip-cashflow-incoming" placement="top" message="{{ $totals['incoming_exact'] }}">
{{ $totals['incoming_for_humans'] }}
</x-tooltip>
</div>
<span class="text-green text-xs">
{{ trans('general.incoming') }}
</span>
<span class="material-icons mt-2">remove</span>
</div>
<div class="flex flex-col items-center justify-between">
<div class="flex justify-end lg:block text-lg">
<x-tooltip id="tooltip-cashflow-outgoing" placement="top" message="{{ $totals['outgoing_exact'] }}">
{{ $totals['outgoing_for_humans'] }}
</x-tooltip>
</div>
<span class="text-rose text-xs">
{{ trans('general.outgoing') }}
</span>
<span class="material-icons mt-2">drag_handle</span>
</div>
<div class="flex flex-col items-center justify-between">
<div class="flex justify-end lg:block text-lg">
<x-tooltip id="tooltip-cashflow-profit" placement="top" message="{{ $totals['profit_exact'] }}">
{{ $totals['profit_for_humans'] }}
</x-tooltip>
</div>
<span class="text-purple text-xs">{{ trans_choice('general.profits', 1) }}</span>
</div>
</div>
</div>
</div>
@push('body_scripts')
{!! $chart->script() !!}
@endpush