2023-07-23 08:33:37 +02:00
|
|
|
@extends('layout.v2')
|
2023-07-12 07:07:06 +02:00
|
|
|
@section('vite')
|
2023-07-23 08:26:12 +02:00
|
|
|
@vite(['resources/assets/v2/sass/app.scss', 'resources/assets/v2/dashboard.js'])
|
2023-07-12 07:07:06 +02:00
|
|
|
@endsection
|
2023-07-11 14:42:57 +02:00
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="app-content">
|
|
|
|
<!--begin::Container-->
|
|
|
|
<div class="container-fluid">
|
2023-07-15 15:25:04 +02:00
|
|
|
@include('partials.dashboard.boxes')
|
2023-07-23 07:10:31 +02:00
|
|
|
<!-- row with account data -->
|
2023-08-04 19:10:49 +02:00
|
|
|
<div>
|
|
|
|
<div class="row" x-data="accounts">
|
2023-07-26 07:08:00 +02:00
|
|
|
<div class="col-xl-8 col-lg-12 col-sm-12 col-xs-12">
|
|
|
|
<div class="row mb-2">
|
|
|
|
<div class="col">
|
2023-07-24 18:58:35 +02:00
|
|
|
|
2023-07-26 07:08:00 +02:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<h3 class="card-title"><a href="{{ route('accounts.index',['asset']) }}"
|
|
|
|
title="{{ __('firefly.yourAccounts') }}">{{ __('firefly.yourAccounts') }}</a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<div id="account-chart"></div>
|
|
|
|
<p class="text-end">
|
|
|
|
<template x-if="autoConversion">
|
|
|
|
<button type="button" @click="switchAutoConversion"
|
|
|
|
class="btn btn-outline-info btm-sm">
|
|
|
|
<span
|
|
|
|
class="fa-solid fa-comments-dollar"></span> {{ __('firefly.disable_auto_convert') }}
|
|
|
|
</button>
|
|
|
|
</template>
|
|
|
|
<template x-if="!autoConversion">
|
|
|
|
<button type="button" @click="switchAutoConversion"
|
|
|
|
class="btn btn-outline-info btm-sm">
|
|
|
|
<span
|
|
|
|
class="fa-solid fa-comments-dollar"></span> {{ __('firefly.enable_auto_convert') }}
|
|
|
|
</button>
|
|
|
|
</template>
|
|
|
|
</p>
|
|
|
|
</div>
|
2023-07-24 18:58:35 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2023-07-23 07:10:31 +02:00
|
|
|
</div>
|
2023-08-04 19:10:49 +02:00
|
|
|
<div class="row mb-2" x-data="budgets">
|
2023-07-26 07:08:00 +02:00
|
|
|
<div class="col">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2023-08-01 12:27:55 +02:00
|
|
|
<h3 class="card-title"><a href="{{ route('budgets.index') }}"
|
|
|
|
title="{{ __('firefly.go_to_budgets') }}">{{ __('firefly.go_to_budgets') }}</a>
|
2023-07-26 07:08:00 +02:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<div id="budget-chart"></div>
|
|
|
|
</div>
|
2023-07-24 18:58:35 +02:00
|
|
|
</div>
|
|
|
|
|
2023-07-26 07:08:00 +02:00
|
|
|
</div>
|
2023-07-23 07:10:31 +02:00
|
|
|
</div>
|
2023-07-26 07:08:00 +02:00
|
|
|
<div class="row mb-2">
|
|
|
|
<div class="col">
|
2023-07-24 18:58:35 +02:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2023-07-26 07:08:00 +02:00
|
|
|
<h3 class="card-title"><a href="{{ route('accounts.index',['asset']) }}"
|
|
|
|
title="{{ __('firefly.yourAccounts') }}">cat</a>
|
2023-07-24 18:58:35 +02:00
|
|
|
</h3>
|
|
|
|
</div>
|
2023-07-26 07:08:00 +02:00
|
|
|
<div class="card-body">
|
|
|
|
<div id="category-chart"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-xl-4 col-lg-12 col-sm-12 col-xs-12">
|
|
|
|
<div class="row">
|
|
|
|
<template x-for="account in accountList">
|
2023-08-04 19:10:49 +02:00
|
|
|
<div class="col-12 mb-2" x-model="account">
|
2023-07-26 07:08:00 +02:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<h3 class="card-title">
|
|
|
|
<a :href="'{{ route('accounts.show','') }}/' + account.id"
|
|
|
|
x-text="account.name"></a>
|
|
|
|
|
|
|
|
<span class="small text-muted">(<span
|
|
|
|
x-text="account.balance"></span>)</span>
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="card-body p-0">
|
|
|
|
<table class="table table-sm">
|
|
|
|
<tbody>
|
|
|
|
<template x-for="group in account.groups">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<template x-if="group.title">
|
2023-07-24 18:58:35 +02:00
|
|
|
<span><a
|
|
|
|
:href="'{{route('transactions.show', '') }}/' + group.id"
|
|
|
|
x-text="group.title"></a><br/></span>
|
2023-07-26 07:08:00 +02:00
|
|
|
</template>
|
|
|
|
<template x-for="transaction in group.transactions">
|
2023-07-24 18:58:35 +02:00
|
|
|
<span>
|
|
|
|
<template x-if="group.title">
|
|
|
|
<span>-
|
|
|
|
<span
|
|
|
|
x-text="transaction.description"></span><br>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
<template x-if="!group.title">
|
|
|
|
<span><a
|
|
|
|
:href="'{{route('transactions.show', '') }}/' + group.id"
|
|
|
|
x-text="transaction.description"></a><br>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
</span>
|
2023-07-26 07:08:00 +02:00
|
|
|
</template>
|
|
|
|
</td>
|
|
|
|
<td style="width:30%;" class="text-end">
|
|
|
|
<template x-if="group.title">
|
|
|
|
<span><br/></span>
|
|
|
|
</template>
|
|
|
|
<template x-for="transaction in group.transactions">
|
2023-07-24 18:58:35 +02:00
|
|
|
<span>
|
|
|
|
<span x-text="transaction.amount"></span><br>
|
|
|
|
</span>
|
2023-07-26 07:08:00 +02:00
|
|
|
</template>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2023-07-24 18:58:35 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-07-26 07:08:00 +02:00
|
|
|
</template>
|
|
|
|
</div>
|
2023-07-24 18:58:35 +02:00
|
|
|
</div>
|
2023-07-11 14:42:57 +02:00
|
|
|
|
2023-07-26 07:08:00 +02:00
|
|
|
</div>
|
2023-07-23 07:10:31 +02:00
|
|
|
</div>
|
2023-08-04 19:10:49 +02:00
|
|
|
<!-- row with budget chart -->
|
|
|
|
|
2023-07-11 14:42:57 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endsection
|