+# V 0.0.2 Mandator Account Transaction moved to lkn
+
+- modules Mandator Account Transaction are now symbolic links
+
# V 0.0.1 Initial commit
- base functionality
+++ /dev/null
-<?php
-
-namespace App\Http\Controllers;
-
-use App\Helpers\Helper;
-use App\Models\Account;
-use App\Models\Mandator;
-use App\Helpers\DbHelper;
-use App\Models\SProperty;
-use App\Helpers\Pagination;
-use App\Helpers\ViewHelper;
-use Illuminate\Http\Request;
-use Illuminate\Validation\Rule;
-use App\Helpers\ViewHelperLocal;
-use App\Helpers\ContextLaraKnife;
-use Illuminate\Support\Facades\DB;
-use Illuminate\Support\Facades\Route;
-use Illuminate\Support\Facades\Validator;
-
-class AccountController extends Controller
-{
- /**
- * Show the form for creating a new resource.
- */
- public function create(Mandator $mandator, Request $request)
- {
- if ($request->btnSubmit === 'btnCancel') {
- $rc = redirect("/account-index/$mandator->id");
- } else {
- $fields = $request->all();
- if (count($fields) === 0) {
- $fields = [
- 'name' => '',
- 'info' => '',
- 'mandator_id' => '',
- 'amount' => '0.00'
- ];
- }
- $fields['mandator'] = $mandator->name;
- $fields['mandator_id'] = $mandator->id;
- $context = new ContextLaraKnife($request, $fields);
- $rc = view('account.create', [
- 'context' => $context,
- ]);
- }
- return $rc;
- }
- /**
- * Show the form for editing the specified resource.
- */
- public function edit(Account $account, Request $request)
- {
- $rc = null;
- if ($request->btnSubmit === 'btnCancel') {
- $rc = redirect("/account-index/$account->mandator_id");
- } else {
- $fields = $request->all();
- if ($request->btnSubmit === 'btnStore') {
- $fields = $request->all();
- $validator = Validator::make($fields, ['name' => Rule::unique('accounts')->ignore($account->id)]);
- if ($validator->fails()) {
- $errors = $validator->errors();
- $rc = back()->withErrors($validator)->withInput();
- } else {
- $validated = $validator->validated();
- $validated['info'] = strip_tags($fields['info']);
- $account->update($validated);
- }
- }
- if ($rc == null) {
- if (count($fields) === 0) {
- $fields = [
- 'name' => $account->name,
- 'info' => $account->info,
- 'mandator_id' => $account->mandator_id,
- 'mandator' => Mandator::find($account->mandator_id)->name
- ];
- }
- $context = new ContextLaraKnife($request, $fields, $account);
- $navigationTabInfo = ViewHelperLocal::getNavigationTabInfo('account-edit', 0, $account->id);
- $rc = view('account.edit', [
- 'context' => $context,
- 'navTabsInfo' => $navigationTabInfo
- ]);
- }
- }
- return $rc;
- }
- /**
- * Remove the specified resource from storage.
- */
- public function destroy(Account $account, Request $request)
- {
- if ($request->btnSubmit === 'btnDelete') {
- $account->delete();
- }
- return redirect('/account-index');
- }
- /**
- * Display the database records of the resource.
- */
- public function index(Mandator $mandator, Request $request)
- {
- if ($request->btnSubmit === 'btnNew') {
- $url = "/account-create/$mandator->id";
- $rc = redirect($url);
- } else {
- $sql = "
-SELECT t0.*,
- t1.name as mandator
-FROM accounts t0
-LEFT JOIN mandators t1 ON t1.id=t0.mandator_id
-";
- $parameters = [];
- $fields = $request->all();
- if (count($fields) == 0) {
- $fields = [
- 'text' => '',
- '_sortParams' => 'name:asc;id:desc'
- ];
- } else {
- $conditions = [];
- ViewHelper::addConditionPattern($conditions, $parameters, 't0.name,t0.info', 'text');
- ViewHelper::addConditionPattern($conditions, $parameters, 'info');
- ViewHelper::addConditionConstComparison($conditions, $parameters, 'mandator_id', $mandator->id);
- $sql = DbHelper::addConditions($sql, $conditions);
- }
- $sql = DbHelper::addOrderBy($sql, $fields['_sortParams']);
- $pagination = new Pagination($sql, $parameters, $fields);
- $records = $pagination->records;
- $fields['mandator_id'] = $mandator->id;
- $context = new ContextLaraKnife($request, $fields);
- $navigationTabInfo = ViewHelperLocal::getNavigationTabInfo('mandator-edit', 1, $mandator->id);
- $rc = view('account.index', [
- 'context' => $context,
- 'records' => $records,
- 'pagination' => $pagination,
- 'navTabsInfo' => $navigationTabInfo
- ]);
- }
- return $rc;
- }
- /**
- * Returns the validation rules.
- * @return array<string, string> The validation rules.
- */
- private function rules(bool $isCreate = false): array
- {
- $rc = [
- 'name' => 'required',
- 'info' => '',
- 'mandator_id' => 'required',
- 'amount' => 'required'
- ];
- return $rc;
- }
- public static function routes()
- {
- Route::get('/account-index/{mandator}', [AccountController::class, 'index'])->middleware('auth');
- Route::post('/account-index/{mandator}', [AccountController::class, 'index'])->middleware('auth');
- Route::get('/account-create/{mandator}', [AccountController::class, 'create'])->middleware('auth');
- Route::put('/account-store/{mandator}', [AccountController::class, 'store'])->middleware('auth');
- Route::post('/account-edit/{account}', [AccountController::class, 'edit'])->middleware('auth');
- Route::get('/account-edit/{account}', [AccountController::class, 'edit'])->middleware('auth');
- Route::get('/account-show/{account}/delete', [AccountController::class, 'show'])->middleware('auth');
- Route::delete('/account-show/{account}/delete', [AccountController::class, 'destroy'])->middleware('auth');
- }
- /**
- * Display the specified resource.
- */
- public function show(Account $account, Request $request)
- {
- if ($request->btnSubmit === 'btnCancel') {
- $rc = redirect('/account-index')->middleware('auth');
- } else {
- $context = new ContextLaraKnife($request, null, $account);
- $rc = view('account.show', [
- 'context' => $context,
- 'mode' => 'delete'
- ]);
- }
- return $rc;
- }
-
- /**
- * Store a newly created resource in storage.
- */
- public function store(Mandator $mandator, Request $request)
- {
- $rc = null;
- if ($request->btnSubmit === 'btnStore') {
- $fields = $request->all();
- $validator = Validator::make($fields, $this->rules(true));
- if ($validator->fails()) {
- $rc = back()->withErrors($validator)->withInput();
- } else {
- $validated = $validator->validated();
- $validated['info'] = strip_tags($validated['info']);
- $validated['mandator_id'] = $mandator->id;
- Account::create($validated);
- }
- }
- if ($rc == null) {
- $rc = redirect("/account-index/$mandator->id");
- }
- return $rc;
- }
-}
--- /dev/null
+../../../vendor/hamatoma/laraknife/templates/Http/Controllers/AccountController.php
\ No newline at end of file
+++ /dev/null
-<?php
-
-namespace App\Http\Controllers;
-
-use App\Helpers\Helper;
-use App\Models\Mandator;
-use App\Helpers\DbHelper;
-use App\Models\SProperty;
-use App\Helpers\Pagination;
-use App\Helpers\ViewHelper;
-use Illuminate\Http\Request;
-use App\Helpers\ViewHelperLocal;
-use App\Helpers\ContextLaraKnife;
-use Illuminate\Support\Facades\DB;
-use Illuminate\Support\Facades\Route;
-use Illuminate\Support\Facades\Validator;
-
-class MandatorController extends Controller
-{
- /**
- * Show the form for creating a new resource.
- */
- public function create(Request $request)
- {
- if ($request->btnSubmit === 'btnCancel') {
- $rc = redirect('/mandator-index');
- } else {
- $fields = $request->all();
- if (count($fields) === 0) {
- $fields = [
- 'name' => '',
- 'info' => '',
- 'group_id' => ''
- ];
- }
- $optionsGroup = DbHelper::comboboxDataOfTable('groups', 'name', 'id', $fields['group_id'], __('<Please select>'));
- $context = new ContextLaraKnife($request, $fields);
- $rc = view('mandator.create', [
- 'context' => $context,
- 'optionsGroup' => $optionsGroup,
- ]);
- }
- return $rc;
- }
- /**
- * Show the form for editing the specified resource.
- */
- public function edit(Mandator $mandator, Request $request)
- {
- if ($request->btnSubmit === 'btnCancel') {
- $rc = redirect('/mandator-index');
- } else {
- $fields = $request->all();
- if (count($fields) === 0) {
- $fields = [
- 'name' => $mandator->name,
- 'info' => $mandator->info,
- 'group_id' => $mandator->group_id
- ];
- }
- $optionsGroup = DbHelper::comboboxDataOfTable('groups', 'name', 'id', $fields['group_id'], __('<Please select>'));
- $navigationTabInfo = ViewHelperLocal::getNavigationTabInfo('mandator-edit', 0, $mandator->id);
- $context = new ContextLaraKnife($request, null, $mandator);
- $rc = view('mandator.edit', [
- 'context' => $context,
- 'optionsGroup' => $optionsGroup,
- 'navTabsInfo' => $navigationTabInfo
- ]);
- }
- return $rc;
- }
- /**
- * Remove the specified resource from storage.
- */
- public function destroy(Mandator $mandator, Request $request)
- {
- if ($request->btnSubmit === 'btnDelete') {
- $mandator->delete();
- }
- return redirect('/mandator-index');
- }
- /**
- * Display the database records of the resource.
- */
- public function index(Request $request)
- {
- if ($request->btnSubmit === 'btnNew') {
- return redirect('/mandator-create');
- } else {
- $sql = "
-SELECT t0.*,
- t1.name as `group`
-FROM mandators t0
-LEFT JOIN groups t1 ON t1.id=t0.group_id
-";
- $parameters = [];
- $fields = $request->all();
- if (count($fields) == 0) {
- $fields = [
- 'text' => '',
- '_sortParams' => 'name:asc;id:asc'
- ];
- } else {
- $conditions = [];
- ViewHelper::addConditionPattern($conditions, $parameters, 't0.name,t0.info', 'text');
- $sql = DbHelper::addConditions($sql, $conditions);
- }
- $sql = DbHelper::addOrderBy($sql, $fields['_sortParams']);
- $pagination = new Pagination($sql, $parameters, $fields);
- $records = $pagination->records;
- $context = new ContextLaraKnife($request, $fields);
- return view('mandator.index', [
- 'context' => $context,
- 'records' => $records,
- 'pagination' => $pagination
- ]);
- }
- }
- /**
- * Returns the validation rules.
- * @return array<string, string> The validation rules.
- */
- private function rules(bool $isCreate=false): array
- {
- $rc = [
- 'name' => 'required',
- 'info' => '',
- 'group_id' => 'required'
- ];
- return $rc;
- }
- public static function routes()
- {
- Route::get('/mandator-index', [MandatorController::class, 'index'])->middleware('auth');
- Route::post('/mandator-index', [MandatorController::class, 'index'])->middleware('auth');
- Route::get('/mandator-create', [MandatorController::class, 'create'])->middleware('auth');
- Route::put('/mandator-store', [MandatorController::class, 'store'])->middleware('auth');
- Route::post('/mandator-edit/{mandator}', [MandatorController::class, 'edit'])->middleware('auth');
- Route::get('/mandator-edit/{mandator}', [MandatorController::class, 'edit'])->middleware('auth');
- Route::post('/mandator-update/{mandator}', [MandatorController::class, 'update'])->middleware('auth');
- Route::get('/mandator-show/{mandator}/delete', [MandatorController::class, 'show'])->middleware('auth');
- Route::delete('/mandator-show/{mandator}/delete', [MandatorController::class, 'destroy'])->middleware('auth');
- }
- /**
- * Display the specified resource.
- */
- public function show(Mandator $mandator, Request $request)
- {
- if ($request->btnSubmit === 'btnCancel') {
- $rc = redirect('/mandator-index')->middleware('auth');
- } else {
- $optionsGroup = DbHelper::comboboxDataOfTable('groups', 'name', 'id', $fields['group_id'], __('<Please select>'));
- $context = new ContextLaraKnife($request, null, $mandator);
- $rc = view('mandator.show', [
- 'context' => $context,
- 'optionsGroup' => $optionsGroup,
- 'mode' => 'delete'
- ]);
- }
- return $rc;
- }
-
- /**
- * Store a newly created resource in storage.
- */
- public function store(Request $request)
- {
- $rc = null;
- if ($request->btnSubmit === 'btnStore') {
- $fields = $request->all();
- $validator = Validator::make($fields, $this->rules(true));
- if ($validator->fails()) {
- $rc = back()->withErrors($validator)->withInput();
- } else {
- $validated = $validator->validated();
- $validated['info'] = strip_tags($validated['info']);
- Mandator::create($validated);
- }
- }
- if ($rc == null){
- $rc = redirect('/mandator-index');
- }
- return $rc;
- }
- /**
- * Update the specified resource in storage.
- */
- public function update(Mandator $mandator, Request $request)
- {
- $rc = null;
- if ($request->btnSubmit === 'btnStore') {
- $fields = $request->all();
- $validator = Validator::make($fields, $this->rules(false));
- if ($validator->fails()) {
- $rc = back()->withErrors($validator)->withInput();
- } else {
- $validated = $validator->validated();
- $validated['info'] = strip_tags($validated['info']);
- $mandator->update($validated);
- }
- }
- if ($rc == null){
- $rc = redirect('/mandator-index');
- }
- return $rc;
- }
-}
--- /dev/null
+../../../vendor/hamatoma/laraknife/templates/Http/Controllers/MandatorController.php
\ No newline at end of file
+++ /dev/null
-<?php
-
-namespace App\Http\Controllers;
-
-use App\Models\User;
-use App\Helpers\Helper;
-use App\Models\Account;
-use App\Models\Mandator;
-use App\Helpers\DbHelper;
-use App\Models\SProperty;
-use App\Helpers\Pagination;
-use App\Helpers\ViewHelper;
-use App\Models\Transaction;
-use App\Helpers\EmailHelper;
-use Illuminate\Http\Request;
-use App\Helpers\DateTimeHelper;
-use App\Helpers\ViewHelperLocal;
-use App\Helpers\ContextLaraKnife;
-use Illuminate\Support\Facades\DB;
-use Illuminate\Support\Facades\Route;
-use Illuminate\Support\Facades\Validator;
-
-class TransactionController extends Controller
-{
- /**
- * Show the form for creating a new resource.
- */
- public function create(Account $account, Request $request)
- {
- if ($request->btnSubmit === 'btnCancel') {
- $rc = redirect("/transaction-index/$account->id");
- } else {
- $fields = $request->all();
- if (count($fields) === 0) {
- $fields = [
- 'name' => '',
- 'info' => '',
- 'amount' => '0.00',
- 'transactiontype_scope' => '',
- 'transactionstate_scope' => 1331,
- 'date' => (new \DateTime('now'))->format('Y-m-d'),
- 'owner_id' => auth()->user()->id
- ];
- }
- $optionsTransactiontype = SProperty::optionsByScope('transactiontype', $fields['transactiontype_scope'], '-');
- $optionsTransactionstate = SProperty::optionsByScope('transactionstate', $fields['transactionstate_scope'], '-');
- $optionsOwner = DbHelper::comboboxDataOfTable('users', 'name', 'id', $fields['owner_id'], __('<Please select>'));
- $fields['account_id'] = $account->id;
- $fields['account'] = $account->name;
- $fields['mandator'] = Mandator::find($account->mandator_id)->name;
- $context = new ContextLaraKnife($request, $fields);
- $navigationTabInfo = ViewHelperLocal::getNavigationTabInfo('transaction-create', 0, $account->id);
- $rc = view('transaction.create', [
- 'context' => $context,
- 'optionsTransactiontype' => $optionsTransactiontype,
- 'optionsTransactionstate' => $optionsTransactionstate,
- 'optionsOwner' => $optionsOwner,
- 'navTabsInfo' => $navigationTabInfo
- ]);
- }
- return $rc;
- }
- /**
- * Show the form for editing the specified resource.
- */
- public function edit(Transaction $transaction, Request $request)
- {
- $rc = null;
- if ($request->btnSubmit === 'btnCancel') {
- $rc = redirect("/transaction-index/$transaction->account_id");
- } else {
- $fields = $request->all();
- if ($request->btnSubmit === 'btnStore') {
- $validator = Validator::make($fields, $this->rules(false));
- if ($validator->fails()) {
- $errors = $validator->errors();
- $rc = back()->withErrors($validator)->withInput();
- } else {
- $validated = $validator->validated();
- $validated['info'] = strip_tags($validated['info']);
- $transaction->update($validated);
- }
- }
- if (count($fields) === 0) {
- $fields = [
- 'name' => $transaction->name,
- 'info' => $transaction->info,
- 'amount' => $transaction->amount,
- 'transactiontype_scope' => $transaction->transactiontype_scope,
- 'transactionstate_scope' => $transaction->transactionstate_scope,
- 'date' => $transaction->date,
- ];
- }
- $optionsTransactiontype = SProperty::optionsByScope('transactiontype', $transaction->transactiontype_scope, '');
- $optionsTransactionstate = SProperty::optionsByScope('transactionstate', $transaction->transactionstate_scope, '');
- $id = $transaction->account_id;
- $account = Account::find($id);
- $fields['account_id'] = $account->id;
- $fields['account'] = $account->name;
- $fields['mandator'] = Mandator::find($account->mandator_id)->name;
- $context = new ContextLaraKnife($request, $fields, $transaction);
- $navigationTabInfo = ViewHelperLocal::getNavigationTabInfo('transaction-edit', 0, $transaction->id);
- $rc = view('transaction.edit', [
- 'context' => $context,
- 'optionsTransactiontype' => $optionsTransactiontype,
- 'optionsTransactionstate' => $optionsTransactionstate,
- 'navTabsInfo' => $navigationTabInfo
- ]);
- }
- return $rc;
- }
- public function editOwner(Transaction $transaction, Request $request)
- {
- if ($request->btnSubmit === 'btnCancel') {
- $rc = redirect("/transaction-index/$transaction->reference_id");
- } else {
- $fields = $request->all();
- if (count($fields) === 0) {
- $fields = [
- 'owner_id' => $transaction->owner_id,
- 'recipients' => '',
- ];
- }
- ViewHelper::adaptCheckbox($fields, 'withEmail');
- if ($request->btnSubmit === 'btnStore' && ($owner = $fields['owner_id']) != null) {
- $transaction->update(['owner_id' => $fields['owner_id']]);
- if ($fields['withEmail']) {
- $this->sendEmail($transaction->owner_id, $transaction);
- }
- }
- $optionsOwner = DbHelper::comboboxDataOfTable('users', 'name', 'id', $transaction->owner_id, __('<Please select>'));
- $navigationTabInfo = ViewHelperLocal::getNavigationTabInfo('transaction-edit', 1, $transaction->id, $transaction->options);
- $context = new ContextLaraKnife($request, null, $transaction);
- $rc = view('transaction.edit_owner', [
- 'context' => $context,
- 'optionsOwner' => $optionsOwner,
- 'navTabsInfo' => $navigationTabInfo
- ]);
- }
- return $rc;
- }
-
- /**
- * Remove the specified resource from storage.
- */
- public function destroy(Transaction $transaction, Request $request)
- {
- if ($request->btnSubmit === 'btnDelete') {
- $transaction->delete();
- }
- return redirect('/transaction-index');
- }
- /**
- * Display the database records of the resource.
- */
- public function index(Account $account, Request $request)
- {
- if ($request->btnSubmit === 'btnNew') {
- return redirect("/transaction-create/$account->id");
- } else {
- $sql = "
-SELECT t0.*,
- t1.name as transactiontype_scope,
- t2.name as transactionstate_scope,
- t3.name as owner
-FROM transactions t0
-LEFT JOIN sproperties t1 ON t1.id=t0.transactiontype_scope
-LEFT JOIN sproperties t2 ON t2.id=t0.transactionstate_scope
-LEFT JOIN users t3 ON t3.id=t0.owner_id
-";
- $parameters = [];
- $fields = $request->all();
- if (count($fields) == 0) {
- $from = DateTimeHelper::firstDayOfYear()->format('Y-m-d');
- $fields = [
- 'transactiontype' => '',
- 'transactionstate' => '',
- 'owner' => auth()->user()->id,
- 'text' => '',
- 'from' => $from,
- 'until' => '',
- '_sortParams' => 'date:desc;id:asc'
- ];
- } else {
- $conditions = [];
- ViewHelper::addConditionConstComparison($conditions, $parameters, 'account_id', $account->id);
- ViewHelper::addConditionComparism($conditions, $parameters, 'transactiontype_scope', 'transactiontype');
- ViewHelper::addConditionComparism($conditions, $parameters, 'transactionstate_scope', 'transactionstate');
- ViewHelper::addConditionComparism($conditions, $parameters, 'owner_id', 'owner');
- ViewHelper::addConditionPattern($conditions, $parameters, 'name,info', 'text');
- ViewHelper::addConditionComparism($conditions, $parameters, 'from', 'date', '>=');
- ViewHelper::addConditionComparism($conditions, $parameters, 'until', 'date', '<=');
- $sql = DbHelper::addConditions($sql, $conditions);
- }
- $sql = DbHelper::addOrderBy($sql, $fields['_sortParams']);
- $pagination = new Pagination($sql, $parameters, $fields);
- $records = $pagination->records;
- $optionsTransactiontype = SProperty::optionsByScope('transactiontype', $fields['transactiontype'], 'all');
- $optionsTransactionstate = SProperty::optionsByScope('transactionstate', $fields['transactionstate'], 'all');
- $optionsOwner = DbHelper::comboboxDataOfTable('users', 'name', 'id', $fields['owner'], __('<Please select>'));
- $fields['account_id'] = $account->id;
- $fields['mandator'] = Mandator::find($account->mandator_id)->name;
- $fields['account'] = $account->name;
- $context = new ContextLaraKnife($request, $fields);
- $navigationTabInfo = ViewHelperLocal::getNavigationTabInfo('account-edit', 1, $account->id);
- return view('transaction.index', [
- 'context' => $context,
- 'records' => $records,
- 'optionsTransactiontype' => $optionsTransactiontype,
- 'optionsTransactionstate' => $optionsTransactionstate,
- 'optionsOwner' => $optionsOwner,
- 'pagination' => $pagination,
- 'navTabsInfo' => $navigationTabInfo
- ]);
- }
- }
- /**
- * Returns the validation rules.
- * @return array<string, string> The validation rules.
- */
- private function rules(bool $isCreate = false): array
- {
- $rc = [
- 'name' => 'required',
- 'info' => '',
- 'amount' => 'required',
- 'transactiontype_scope' => 'required',
- 'transactionstate_scope' => 'required',
- 'date' => '',
- 'owner_id' => 'required'
- ];
- return $rc;
- }
- public static function routes()
- {
- Route::get('/transaction-index/{account}', [TransactionController::class, 'index'])->middleware('auth');
- Route::post('/transaction-index/{account}', [TransactionController::class, 'index'])->middleware('auth');
- Route::get('/transaction-create/{account}', [TransactionController::class, 'create'])->middleware('auth');
- Route::put('/transaction-store/{account}', [TransactionController::class, 'store'])->middleware('auth');
- Route::post('/transaction-edit/{transaction}', [TransactionController::class, 'edit'])->middleware('auth');
- Route::get('/transaction-edit/{transaction}', [TransactionController::class, 'edit'])->middleware('auth');
- Route::post('/transaction-editowner/{transaction}', [TransactionController::class, 'editOwner'])->middleware('auth');
- Route::get('/transaction-editowner/{transaction}', [TransactionController::class, 'editOwner'])->middleware('auth');
- Route::get('/transaction-show/{transaction}/delete', [TransactionController::class, 'show'])->middleware('auth');
- Route::delete('/transaction-show/{transaction}/delete', [TransactionController::class, 'destroy'])->middleware('auth');
- }
- /**
- * Display the specified resource.
- */
- public function show(Transaction $transaction, Request $request)
- {
- if ($request->btnSubmit === 'btnCancel') {
- $rc = redirect('/transaction-index')->middleware('auth');
- } else {
- $optionsTransactiontype = SProperty::optionsByScope('transactiontype', $transaction->transactiontype_scope, '');
- $optionsTransactionstate = SProperty::optionsByScope('transactionstate', $transaction->transactionstate_scope, '');
- $optionsAccount = DbHelper::comboboxDataOfTable('accounts', 'name', 'id', $fields['account_id'], __('<Please select>'));
- $optionsTwin = DbHelper::comboboxDataOfTable('transactions', 'name', 'id', $fields['twin_id'], __('<Please select>'));
- $optionsOwner = DbHelper::comboboxDataOfTable('users', 'name', 'id', $fields['owner_id'], __('<Please select>'));
- $context = new ContextLaraKnife($request, null, $transaction);
- $rc = view('transaction.show', [
- 'context' => $context,
- 'optionsTransactiontype' => $optionsTransactiontype,
- 'optionsTransactionstate' => $optionsTransactionstate,
- 'optionsAccount' => $optionsAccount,
- 'optionsTwin' => $optionsTwin,
- 'optionsOwner' => $optionsOwner,
- 'mode' => 'delete'
- ]);
- }
- return $rc;
- }
- private function sendEmail(int $userId, Transaction $transaction)
- {
- $user = User::find($userId);
- $account = Account::find($transaction->account_id);
- $mandator = Mandator::find($account->mandator_id);
- EmailHelper::sendMail('transaction.notification', $user->email, [
- 'name' => $user->name,
- 'title' => "$account->name $transaction->name",
- 'transaction' => $transaction->name,
- 'mandator' => $mandator->name,
- 'account' => $account->name,
- 'body' => $transaction->info,
- 'from' => auth()->user()->name,
- 'link' => ViewHelper::buildLink("/transaction-edit/$transaction->id")
- ]);
- }
-
- /**
- * Store a newly created resource in storage.
- */
- public function store(Account $account, Request $request)
- {
- $rc = null;
- if ($request->btnSubmit === 'btnStore') {
- $fields = $request->all();
- $validator = Validator::make($fields, $this->rules(true));
- if ($validator->fails()) {
- $rc = back()->withErrors($validator)->withInput();
- } else {
- $validated = $validator->validated();
- $validated['info'] = strip_tags($validated['info']);
- $validated['account_id'] = $account->id;
- $transaction = Transaction::create($validated);
- $rc = redirect("/transaction-edit/$transaction->id");
- }
- }
- if ($rc == null) {
- $rc = redirect("/transaction-index/$account->id");
- }
- return $rc;
- }
-}
--- /dev/null
+../../../vendor/hamatoma/laraknife/templates/Http/Controllers/TransactionController.php
\ No newline at end of file
+++ /dev/null
-<?php
-
-namespace App\Models;
-
-use Illuminate\Database\Eloquent\Collection;
-use Illuminate\Support\Facades\DB;
-use Hamatoma\Laraknife\ViewHelpers;
-use Illuminate\Database\Eloquent\Model;
-use Illuminate\Database\Eloquent\Factories\HasFactory;
-
-class Account extends Model
-{
- use HasFactory;
- protected $table = 'accounts';
- protected $fillable = [
- 'name',
- 'info',
- 'mandator_id',
- 'amount'
- ];
-}
--- /dev/null
+../../vendor/hamatoma/laraknife/templates/Models/Account.php
\ No newline at end of file
+++ /dev/null
-<?php
-
-namespace App\Models;
-
-use Illuminate\Database\Eloquent\Collection;
-use Illuminate\Support\Facades\DB;
-use Hamatoma\Laraknife\ViewHelpers;
-use Illuminate\Database\Eloquent\Model;
-use Illuminate\Database\Eloquent\Factories\HasFactory;
-
-class Mandator extends Model
-{
- use HasFactory;
- protected $table = 'mandators';
- protected $fillable = [
- 'name',
- 'info',
- 'group_id'
- ];
-}
--- /dev/null
+../../vendor/hamatoma/laraknife/templates/Models/Mandator.php
\ No newline at end of file
+++ /dev/null
-<?php
-
-namespace App\Models;
-
-use Illuminate\Database\Eloquent\Collection;
-use Illuminate\Support\Facades\DB;
-use Hamatoma\Laraknife\ViewHelpers;
-use Illuminate\Database\Eloquent\Model;
-use Illuminate\Database\Eloquent\Factories\HasFactory;
-
-class Transaction extends Model
-{
- use HasFactory;
- protected $table = 'transactions';
- protected $fillable = [
- 'name',
- 'info',
- 'amount',
- 'transactiontype_scope',
- 'transactionstate_scope',
- 'date',
- 'account_id',
- 'twin_id',
- 'owner_id'
- ];
-}
--- /dev/null
+../../vendor/hamatoma/laraknife/templates/Models/Transaction.php
\ No newline at end of file
"dist": {
"type": "path",
"url": "../laraknife",
- "reference": "4ecc6758222397052254570b11c0925539a5658d"
+ "reference": "9d4c22c089cf931d661ccc3f8125e054d47ca40b"
},
"require-dev": {
"phpunit/phpunit": "11.0.x-dev"
},
{
"name": "laravel/framework",
- "version": "v11.9.1",
+ "version": "v11.9.2",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
- "reference": "60167ce91c59ed5eea2ad4f2a7b6d686fb103ba7"
+ "reference": "2b3e8d75f10b0ed17416282946355dc026bf326c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laravel/framework/zipball/60167ce91c59ed5eea2ad4f2a7b6d686fb103ba7",
- "reference": "60167ce91c59ed5eea2ad4f2a7b6d686fb103ba7",
+ "url": "https://api.github.com/repos/laravel/framework/zipball/2b3e8d75f10b0ed17416282946355dc026bf326c",
+ "reference": "2b3e8d75f10b0ed17416282946355dc026bf326c",
"shasum": ""
},
"require": {
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
- "time": "2024-05-28T18:16:41+00:00"
+ "time": "2024-05-30T09:40:11+00:00"
},
{
"name": "laravel/prompts",
},
{
"name": "nesbot/carbon",
- "version": "3.4.0",
+ "version": "3.5.0",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
- "reference": "8eab8983c83c30e0bacbef8d311e3f3b8172727f"
+ "reference": "415782b7e48223342f1a616c16c45a95b15b2318"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/8eab8983c83c30e0bacbef8d311e3f3b8172727f",
- "reference": "8eab8983c83c30e0bacbef8d311e3f3b8172727f",
+ "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/415782b7e48223342f1a616c16c45a95b15b2318",
+ "reference": "415782b7e48223342f1a616c16c45a95b15b2318",
"shasum": ""
},
"require": {
"require-dev": {
"doctrine/dbal": "^3.6.3 || ^4.0",
"doctrine/orm": "^2.15.2 || ^3.0",
- "friendsofphp/php-cs-fixer": "^3.52.1",
+ "friendsofphp/php-cs-fixer": "^3.57.2",
"kylekatarnls/multi-tester": "^2.5.3",
"ondrejmirtes/better-reflection": "^6.25.0.4",
"phpmd/phpmd": "^2.15.0",
"phpstan/extension-installer": "^1.3.1",
- "phpstan/phpstan": "^1.10.65",
- "phpunit/phpunit": "^10.5.15",
+ "phpstan/phpstan": "^1.11.2",
+ "phpunit/phpunit": "^10.5.20",
"squizlabs/php_codesniffer": "^3.9.0"
},
"bin": [
"type": "tidelift"
}
],
- "time": "2024-05-24T14:26:34+00:00"
+ "time": "2024-06-03T17:25:54+00:00"
},
{
"name": "nette/schema",
},
{
"name": "symfony/clock",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/clock.git",
- "reference": "2008671acb4a30b01c453de193cf9c80549ebda6"
+ "reference": "fe47b7cf6a68c045c37928aa89a39d5eb9a2b37c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/clock/zipball/2008671acb4a30b01c453de193cf9c80549ebda6",
- "reference": "2008671acb4a30b01c453de193cf9c80549ebda6",
+ "url": "https://api.github.com/repos/symfony/clock/zipball/fe47b7cf6a68c045c37928aa89a39d5eb9a2b37c",
+ "reference": "fe47b7cf6a68c045c37928aa89a39d5eb9a2b37c",
"shasum": ""
},
"require": {
"time"
],
"support": {
- "source": "https://github.com/symfony/clock/tree/v7.0.7"
+ "source": "https://github.com/symfony/clock/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-04-18T09:32:20+00:00"
},
{
"name": "symfony/console",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "c981e0e9380ce9f146416bde3150c79197ce9986"
+ "reference": "5bcde9e0b2ea9bd9772bca17618365ea921c5707"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/c981e0e9380ce9f146416bde3150c79197ce9986",
- "reference": "c981e0e9380ce9f146416bde3150c79197ce9986",
+ "url": "https://api.github.com/repos/symfony/console/zipball/5bcde9e0b2ea9bd9772bca17618365ea921c5707",
+ "reference": "5bcde9e0b2ea9bd9772bca17618365ea921c5707",
"shasum": ""
},
"require": {
"terminal"
],
"support": {
- "source": "https://github.com/symfony/console/tree/v7.0.7"
+ "source": "https://github.com/symfony/console/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-05-17T10:55:18+00:00"
},
{
"name": "symfony/css-selector",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/css-selector.git",
- "reference": "b08a4ad89e84b29cec285b7b1f781a7ae51cf4bc"
+ "reference": "843f2f7ac5e4c5bf0ec77daef23ca6d4d8922adc"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/css-selector/zipball/b08a4ad89e84b29cec285b7b1f781a7ae51cf4bc",
- "reference": "b08a4ad89e84b29cec285b7b1f781a7ae51cf4bc",
+ "url": "https://api.github.com/repos/symfony/css-selector/zipball/843f2f7ac5e4c5bf0ec77daef23ca6d4d8922adc",
+ "reference": "843f2f7ac5e4c5bf0ec77daef23ca6d4d8922adc",
"shasum": ""
},
"require": {
"description": "Converts CSS selectors to XPath expressions",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/css-selector/tree/v7.0.7"
+ "source": "https://github.com/symfony/css-selector/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-04-18T09:32:20+00:00"
},
{
"name": "symfony/deprecation-contracts",
},
{
"name": "symfony/error-handler",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/error-handler.git",
- "reference": "cf97429887e40480c847bfeb6c3991e1e2c086ab"
+ "reference": "477d911900bf32fc43a675f78d4cbaedbb78378f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/error-handler/zipball/cf97429887e40480c847bfeb6c3991e1e2c086ab",
- "reference": "cf97429887e40480c847bfeb6c3991e1e2c086ab",
+ "url": "https://api.github.com/repos/symfony/error-handler/zipball/477d911900bf32fc43a675f78d4cbaedbb78378f",
+ "reference": "477d911900bf32fc43a675f78d4cbaedbb78378f",
"shasum": ""
},
"require": {
"description": "Provides tools to manage errors and ease debugging PHP code",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/error-handler/tree/v7.0.7"
+ "source": "https://github.com/symfony/error-handler/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-05-17T10:55:18+00:00"
},
{
"name": "symfony/event-dispatcher",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "db2a7fab994d67d92356bb39c367db115d9d30f9"
+ "reference": "522d2772d6c7bab843b0c52466dc7844622bacc2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/db2a7fab994d67d92356bb39c367db115d9d30f9",
- "reference": "db2a7fab994d67d92356bb39c367db115d9d30f9",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/522d2772d6c7bab843b0c52466dc7844622bacc2",
+ "reference": "522d2772d6c7bab843b0c52466dc7844622bacc2",
"shasum": ""
},
"require": {
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/event-dispatcher/tree/v7.0.7"
+ "source": "https://github.com/symfony/event-dispatcher/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-04-18T09:32:20+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
},
{
"name": "symfony/finder",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
- "reference": "4d58f0f4fe95a30d7b538d71197135483560b97c"
+ "reference": "fb6c2d65c3dbf7ad83201a4168d4510c8dddaac7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/4d58f0f4fe95a30d7b538d71197135483560b97c",
- "reference": "4d58f0f4fe95a30d7b538d71197135483560b97c",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/fb6c2d65c3dbf7ad83201a4168d4510c8dddaac7",
+ "reference": "fb6c2d65c3dbf7ad83201a4168d4510c8dddaac7",
"shasum": ""
},
"require": {
"description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/finder/tree/v7.0.7"
+ "source": "https://github.com/symfony/finder/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-28T11:44:19+00:00"
+ "time": "2024-04-28T18:29:00+00:00"
},
{
"name": "symfony/http-foundation",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
- "reference": "0194e064b8bdc29381462f790bab04e1cac8fdc8"
+ "reference": "f9c54a6b1697d0b3b3d541e89e7843cdb3c9bfb7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/http-foundation/zipball/0194e064b8bdc29381462f790bab04e1cac8fdc8",
- "reference": "0194e064b8bdc29381462f790bab04e1cac8fdc8",
+ "url": "https://api.github.com/repos/symfony/http-foundation/zipball/f9c54a6b1697d0b3b3d541e89e7843cdb3c9bfb7",
+ "reference": "f9c54a6b1697d0b3b3d541e89e7843cdb3c9bfb7",
"shasum": ""
},
"require": {
"description": "Defines an object-oriented layer for the HTTP specification",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/http-foundation/tree/v7.0.7"
+ "source": "https://github.com/symfony/http-foundation/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-05-20T16:41:11+00:00"
},
{
"name": "symfony/http-kernel",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-kernel.git",
- "reference": "e07bb9bd86e7cd8ba2d3d9c618eec9d1bbe06d25"
+ "reference": "7eb093ee3911354aa13704d757127535dd8d371f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/http-kernel/zipball/e07bb9bd86e7cd8ba2d3d9c618eec9d1bbe06d25",
- "reference": "e07bb9bd86e7cd8ba2d3d9c618eec9d1bbe06d25",
+ "url": "https://api.github.com/repos/symfony/http-kernel/zipball/7eb093ee3911354aa13704d757127535dd8d371f",
+ "reference": "7eb093ee3911354aa13704d757127535dd8d371f",
"shasum": ""
},
"require": {
"php": ">=8.2",
"psr/log": "^1|^2|^3",
+ "symfony/deprecation-contracts": "^2.5|^3",
"symfony/error-handler": "^6.4|^7.0",
"symfony/event-dispatcher": "^6.4|^7.0",
"symfony/http-foundation": "^6.4|^7.0",
"symfony/finder": "^6.4|^7.0",
"symfony/http-client-contracts": "^2.5|^3",
"symfony/process": "^6.4|^7.0",
- "symfony/property-access": "^6.4|^7.0",
+ "symfony/property-access": "^7.1",
"symfony/routing": "^6.4|^7.0",
- "symfony/serializer": "^6.4.4|^7.0.4",
+ "symfony/serializer": "^7.1",
"symfony/stopwatch": "^6.4|^7.0",
"symfony/translation": "^6.4|^7.0",
"symfony/translation-contracts": "^2.5|^3",
"description": "Provides a structured process for converting a Request into a Response",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/http-kernel/tree/v7.0.7"
+ "source": "https://github.com/symfony/http-kernel/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-29T12:20:25+00:00"
+ "time": "2024-05-31T07:46:30+00:00"
},
{
"name": "symfony/mailer",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/mailer.git",
- "reference": "4ff41a7c7998a88cfdc31b5841ef64d9246fc56a"
+ "reference": "1528f3fb85d1cbed8bf68a19d5428de662c29d7e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/mailer/zipball/4ff41a7c7998a88cfdc31b5841ef64d9246fc56a",
- "reference": "4ff41a7c7998a88cfdc31b5841ef64d9246fc56a",
+ "url": "https://api.github.com/repos/symfony/mailer/zipball/1528f3fb85d1cbed8bf68a19d5428de662c29d7e",
+ "reference": "1528f3fb85d1cbed8bf68a19d5428de662c29d7e",
"shasum": ""
},
"require": {
"description": "Helps sending emails",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/mailer/tree/v7.0.7"
+ "source": "https://github.com/symfony/mailer/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-05-31T07:45:05+00:00"
},
{
"name": "symfony/mime",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/mime.git",
- "reference": "3adbf110c306546f6f00337f421d2edca0e8d3c0"
+ "reference": "92d6b9b1217eebff2035577db505b7e1435ca78c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/mime/zipball/3adbf110c306546f6f00337f421d2edca0e8d3c0",
- "reference": "3adbf110c306546f6f00337f421d2edca0e8d3c0",
+ "url": "https://api.github.com/repos/symfony/mime/zipball/92d6b9b1217eebff2035577db505b7e1435ca78c",
+ "reference": "92d6b9b1217eebff2035577db505b7e1435ca78c",
"shasum": ""
},
"require": {
"mime-type"
],
"support": {
- "source": "https://github.com/symfony/mime/tree/v7.0.7"
+ "source": "https://github.com/symfony/mime/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-05-29T15:16:11+00:00"
},
{
"name": "symfony/polyfill-ctype",
},
{
"name": "symfony/process",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
- "reference": "3839e56b94dd1dbd13235d27504e66baf23faba0"
+ "reference": "56c8a1ea51eb70003fee94a78c7d6d0f44832ce7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/3839e56b94dd1dbd13235d27504e66baf23faba0",
- "reference": "3839e56b94dd1dbd13235d27504e66baf23faba0",
+ "url": "https://api.github.com/repos/symfony/process/zipball/56c8a1ea51eb70003fee94a78c7d6d0f44832ce7",
+ "reference": "56c8a1ea51eb70003fee94a78c7d6d0f44832ce7",
"shasum": ""
},
"require": {
"description": "Executes commands in sub-processes",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/process/tree/v7.0.7"
+ "source": "https://github.com/symfony/process/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-05-17T10:55:18+00:00"
},
{
"name": "symfony/routing",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/routing.git",
- "reference": "9f82bf7766ccc9c22ab7aeb9bebb98351483fa5b"
+ "reference": "0ec2f36fbd769467f98c9c02cea1b76ed117115d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/routing/zipball/9f82bf7766ccc9c22ab7aeb9bebb98351483fa5b",
- "reference": "9f82bf7766ccc9c22ab7aeb9bebb98351483fa5b",
+ "url": "https://api.github.com/repos/symfony/routing/zipball/0ec2f36fbd769467f98c9c02cea1b76ed117115d",
+ "reference": "0ec2f36fbd769467f98c9c02cea1b76ed117115d",
"shasum": ""
},
"require": {
"url"
],
"support": {
- "source": "https://github.com/symfony/routing/tree/v7.0.7"
+ "source": "https://github.com/symfony/routing/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-05-28T06:54:05+00:00"
},
{
"name": "symfony/service-contracts",
},
{
"name": "symfony/string",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
- "reference": "e405b5424dc2528e02e31ba26b83a79fd4eb8f63"
+ "reference": "6f41b185e742737917e6f2e3eca37767fba5f17a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/string/zipball/e405b5424dc2528e02e31ba26b83a79fd4eb8f63",
- "reference": "e405b5424dc2528e02e31ba26b83a79fd4eb8f63",
+ "url": "https://api.github.com/repos/symfony/string/zipball/6f41b185e742737917e6f2e3eca37767fba5f17a",
+ "reference": "6f41b185e742737917e6f2e3eca37767fba5f17a",
"shasum": ""
},
"require": {
"symfony/translation-contracts": "<2.5"
},
"require-dev": {
+ "symfony/emoji": "^7.1",
"symfony/error-handler": "^6.4|^7.0",
"symfony/http-client": "^6.4|^7.0",
"symfony/intl": "^6.4|^7.0",
"utf8"
],
"support": {
- "source": "https://github.com/symfony/string/tree/v7.0.7"
+ "source": "https://github.com/symfony/string/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-05-17T10:55:18+00:00"
},
{
"name": "symfony/translation",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
- "reference": "1515e03afaa93e6419aba5d5c9d209159317100b"
+ "reference": "583d18e461eada8270ca44b7d99f07abf1ab048e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/translation/zipball/1515e03afaa93e6419aba5d5c9d209159317100b",
- "reference": "1515e03afaa93e6419aba5d5c9d209159317100b",
+ "url": "https://api.github.com/repos/symfony/translation/zipball/583d18e461eada8270ca44b7d99f07abf1ab048e",
+ "reference": "583d18e461eada8270ca44b7d99f07abf1ab048e",
"shasum": ""
},
"require": {
"description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/translation/tree/v7.0.7"
+ "source": "https://github.com/symfony/translation/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-05-02T11:50:05+00:00"
},
{
"name": "symfony/translation-contracts",
},
{
"name": "symfony/uid",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/uid.git",
- "reference": "4f3a5d181999e25918586c8369de09e7814e7be2"
+ "reference": "3bbcb15f311b86f72486826ade080d8013231f96"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/uid/zipball/4f3a5d181999e25918586c8369de09e7814e7be2",
- "reference": "4f3a5d181999e25918586c8369de09e7814e7be2",
+ "url": "https://api.github.com/repos/symfony/uid/zipball/3bbcb15f311b86f72486826ade080d8013231f96",
+ "reference": "3bbcb15f311b86f72486826ade080d8013231f96",
"shasum": ""
},
"require": {
"uuid"
],
"support": {
- "source": "https://github.com/symfony/uid/tree/v7.0.7"
+ "source": "https://github.com/symfony/uid/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-04-18T09:32:20+00:00"
},
{
"name": "symfony/var-dumper",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
- "reference": "d1627b66fd87c8b4d90cabe5671c29d575690924"
+ "reference": "595e4a4bc2118e7f4884315a684678b9403d44a6"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/var-dumper/zipball/d1627b66fd87c8b4d90cabe5671c29d575690924",
- "reference": "d1627b66fd87c8b4d90cabe5671c29d575690924",
+ "url": "https://api.github.com/repos/symfony/var-dumper/zipball/595e4a4bc2118e7f4884315a684678b9403d44a6",
+ "reference": "595e4a4bc2118e7f4884315a684678b9403d44a6",
"shasum": ""
},
"require": {
"dump"
],
"support": {
- "source": "https://github.com/symfony/var-dumper/tree/v7.0.7"
+ "source": "https://github.com/symfony/var-dumper/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-18T09:29:19+00:00"
+ "time": "2024-05-28T06:54:05+00:00"
},
{
"name": "tijsverkoyen/css-to-inline-styles",
},
{
"name": "symfony/yaml",
- "version": "v7.0.7",
+ "version": "v7.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
- "reference": "0d3916ae69ea28b59d94b60c4f2b50f4e25adb5c"
+ "reference": "c5f718c94e3c37dd77b77484e6cf0b524b2d405e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/0d3916ae69ea28b59d94b60c4f2b50f4e25adb5c",
- "reference": "0d3916ae69ea28b59d94b60c4f2b50f4e25adb5c",
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/c5f718c94e3c37dd77b77484e6cf0b524b2d405e",
+ "reference": "c5f718c94e3c37dd77b77484e6cf0b524b2d405e",
"shasum": ""
},
"require": {
"description": "Loads and dumps YAML files",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/yaml/tree/v7.0.7"
+ "source": "https://github.com/symfony/yaml/tree/v7.1.0"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-04-28T11:44:19+00:00"
+ "time": "2024-04-28T18:29:00+00:00"
},
{
"name": "theseer/tokenizer",
+++ /dev/null
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
- /**
- * Run the migrations.
- */
- public function up(): void
- {
- Schema::create('mandators', function (Blueprint $table) {
- $table->id();
- $table->timestamps();
- $table->string('name')->unique();
- $table->text('info')->nullable();
- $table->foreignId('group_id')->nullable()->references('id')->on('groups');
- });
- }
-
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::dropIfExists('mandators');
- }
-};
--- /dev/null
+../../vendor/hamatoma/laraknife/templates/database/migrations/2024_05_28_174935_create_mandators_table.php
\ No newline at end of file
+++ /dev/null
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
- /**
- * Run the migrations.
- */
- public function up(): void
- {
- Schema::create('transactions', function (Blueprint $table) {
- $table->id();
- $table->timestamps();
- $table->string('name');
- $table->text('info')->nullable;
- $table->decimal('amount');
- $table->integer('transactiontype_scope');
- $table->integer('transactionstate_scope');
- $table->date('date')->nullable;
- $table->foreignId('account_id')->nullable()->references('id')->on('accounts');
- $table->foreignId('twin_id')->nullable()->references('id')->on('transactions');
- $table->foreignId('owner_id')->nullable()->references('id')->on('users');
- });
- }
-
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::dropIfExists('transactions');
- }
-};
+++ /dev/null
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
- /**
- * Run the migrations.
- */
- public function up(): void
- {
- Schema::create('accounts', function (Blueprint $table) {
- $table->id();
- $table->timestamps();
- $table->string('name');
- $table->text('info')->nullable();
- $table->decimal('amount');
- $table->foreignId('mandator_id')->nullable()->references('id')->on('mandators');
- });
- }
-
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::dropIfExists('accounts');
- }
-};
--- /dev/null
+../../vendor/hamatoma/laraknife/templates/database/migrations/2024_05_28_190658_create_accounts_table.php
\ No newline at end of file
--- /dev/null
+../../vendor/hamatoma/laraknife/templates/database/migrations/2024_05_28_204959_create_transactions_table.php
\ No newline at end of file
+++ /dev/null
-<?php
-
-namespace Database\Seeders;
-
-use App\Models\Module;
-use App\Models\Menuitem;
-use Illuminate\Database\Seeder;
-use Illuminate\Database\Console\Seeds\WithoutModelEvents;
-
-class MandatorSeeder extends Seeder
-{
- /**
- * Run the database seeds.
- */
- public function run(): void
- {
- Menuitem::insertIfNotExists('mandators', 'bi bi-safe');
- Module::insertIfNotExists('Mandator');
- }
-}
--- /dev/null
+../../vendor/hamatoma/laraknife/templates/database/seeders/MandatorSeeder.php
\ No newline at end of file
+++ /dev/null
-<?php
-
-namespace Database\Seeders;
-
-use App\Models\Module;
-use App\Models\Menuitem;
-use App\Models\SProperty;
-use Illuminate\Database\Seeder;
-use Illuminate\Database\Console\Seeds\WithoutModelEvents;
-
-class TransactionSeeder extends Seeder
-{
- /**
- * Run the database seeds.
- */
- public function run(): void
- {
- Menuitem::insertIfNotExists('transactions', 'bi bi-currency-euro');
- Module::insertIfNotExists('Transaction');
- SProperty::insertIfNotExists(1321, 'transactiontype', 'income', 10, 'I');
- SProperty::insertIfNotExists(1322, 'transactiontype', 'expense', 20, 'E');
- SProperty::insertIfNotExists(1322, 'transactiontype', 'move to account', 30, 'M');
- SProperty::insertIfNotExists(1322, 'transactiontype', 'move from account', 40, 'M');
- SProperty::insertIfNotExists(1331, 'transactionstate', 'open', 10, 'O');
- SProperty::insertIfNotExists(1332, 'transactionstate', 'done', 20, 'O');
- }
-}
--- /dev/null
+../../vendor/hamatoma/laraknife/templates/database/seeders/TransactionSeeder.php
\ No newline at end of file
--- /dev/null
+../../vendor/hamatoma/laraknife/resources/views/account
\ No newline at end of file
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="account-create" action="/account-store/{{ $context->valueOf('mandator_id') }}" method="POST">
- @csrf
- @method('PUT')
- <x-laraknife.panels.create title="{{ __('Creation of an Account') }}">
- <x-laraknife.forms.string position="alone" name="mandator_id" label="Mandator"
- value="{{ $context->valueOf('mandator') }}" width2="4" attribute="readonly" />
- <x-laraknife.forms.string position="first" name="name" label="Name" value="{{ $context->valueOf('name') }}"
- width2="4" />
- <x-laraknife.forms.string position="last" name="amount" label="Amount"
- value="{{ $context->valueOf('amount') }}" width2="4" />
- <x-laraknife.forms.text position="alone" name="info" label="Info" value="{{ $context->valueOf('info') }}"
- width2="10" rows="3" />
- </x-laraknife.panels.create>
- </form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="account-edit" action="/account-edit/{{ $context->model->id }}" method="POST">
- @csrf
- <x-laraknife.panels.standard title="{{ __('Change of an Account') }}" fieldset="false">
- <x-laraknife.layout.nav-tabs :info="$navTabsInfo" fieldset="true">
- <x-laraknife.forms.string position="alone" name="mandator" label="Mandator" value="{{ $context->valueOf('mandator') }}"
- width2="4" attribute="readonly"/>
- <x-laraknife.forms.string position="first" name="name" label="Name" value="{{ $context->valueOf('name') }}"
- width2="4" />
- <x-laraknife.forms.string position="last" name="amount" label="Amount"
- value="{{ $context->valueOf('amount') }}" width2="4" attribute="readonly" />
- <x-laraknife.forms.text position="alone" name="info" label="Info"
- value="{{ $context->valueOf('info') }}" width2="10" rows="3" />
- </x-laraknife.layout.nav-tabs>
- </x-laraknife.panels.standard>
- </form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="account-index" action="/account-index/{{ $context->valueOf('mandator_id')}}" method="POST">
- @csrf
- <x-laraknife.panels.standard title="{{ __('Accounts') }}" fieldset="false">
- <x-laraknife.layout.nav-tabs :info="$navTabsInfo" fieldset="true" button1Name="" button2Width1="8">
- <x-laraknife.panels.filter legend="{{ $pagination->legendText() }}">
- <x-laraknife.forms.string position="alone" name="text" label="Text"
- value="{{ $context->valueOf('text') }}" width2="4" />
- </x-laraknife.panels.filter>
- <x-laraknife.panels.index-button buttonType="new" />
- <x-laraknife.panels.sortable-table :context="$context" :pagination="$pagination">
- <thead>
- <tr>
- <th></th>
- <th sortId="name">{{ __('Name') }}</th>
- <th sortId="info">{{ __('Info') }}</th>
- <th class="lkn-align-right" sortId="amount">{{ __('Amount') }}</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- @foreach ($records as $account)
- <tr>
- <td><x-laraknife.icons.change-record module="account" no="{{ $account->id }}" /></td>
- <td>{{ $account->name }}</td>
- <td>{{ $account->info }}</td>
- <td class="lkn-align-right">{{ $account->amount }}</td>
- <td><x-laraknife.icons.delete-record module="account" no="{{ $account->id }}" /></td>
- </tr>
- @endforeach
- </tbody>
- </x-laraknife.panels.sortable-table>
- </x-laraknife.layout.nav-tabs>
- </x-laraknife.panels.standard>
- </form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="account-show" action="/account-show/{{ $context->model->id }}/{{ $mode }}" method="POST">
- @csrf
- @if($mode === 'delete')
- @method('DELETE')
- @endif
- <x-laraknife.panels.show title="{{ __($mode !== 'delete' ? 'A Account' : 'Deletion of a Account') }}" mode="{{$mode}}">
- <x-laraknife.forms.string position="first" name="id" label="Id" value="{{ $context->model->id }}" width2="4" attribute="readonly" />
- <x-laraknife.forms.combobox position="alone" name="mandator_id" label="Mandator" :options="$optionsMandator" width2="4" attribute="readonly"/>
- <x-laraknife.forms.text position="alone" name="info" label="Info" value="{{ $context->valueOf('info') }}" width2="4" attribute="readonly" rows="2" />
- <x-laraknife.forms.string position="alone" name="name" label="Name" value="{{ $context->valueOf('name') }}" width2="4" attribute="readonly" />
- </x-laraknife.panels.show>
- </form>
-@endsection
--- /dev/null
+../../vendor/hamatoma/laraknife/resources/views/mandator
\ No newline at end of file
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="mandator-create" action="/mandator-store" method="POST">
- @csrf
- @method('PUT')
- <x-laraknife.panels.create title="{{ __('Creation of a Mandator') }}">
- <x-laraknife.forms.string position="first" name="name" label="Name" value="{{ $context->valueOf('name') }}"
- width2="4" />
- <x-laraknife.forms.combobox position="last" name="group_id" label="Group" :options="$optionsGroup" width2="4" />
- <x-laraknife.forms.text position="alone" name="info" label="Info" value="{{ $context->valueOf('info') }}"
- width2="10" rows="3" />
- </x-laraknife.panels.create>
- </form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="mandator-edit" action="/mandator-update/{{ $context->model->id }}" method="POST">
- @csrf
- <x-laraknife.panels.standard title="{{ __('Change of a Mandator') }}" fieldset="false">
- <x-laraknife.layout.nav-tabs :info="$navTabsInfo" fieldset="true">
- <x-laraknife.forms.string position="first" name="name" label="Name" value="{{ $context->valueOf('name') }}"
- width2="4" />
- <x-laraknife.forms.combobox position="last" name="group_id" label="Group" :options="$optionsGroup"
- width2="4" />
- <x-laraknife.forms.text position="alone" name="info" label="Info"
- value="{{ $context->valueOf('info') }}" width2="10" rows="3" />
- </x-laraknife.layout.nav-tabs>
- </x-laraknife.panels.standard>
- </form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
-<form id="mandator-index" action="/mandator-index" method="POST">
- @csrf
- <x-laraknife.panels.index title="{{ __('Mandators') }}">
- <x-laraknife.panels.filter legend="{{ $pagination->legendText() }}">
- <x-laraknife.forms.string position="alone" name="text" label="Text" value="{{ $context->valueOf('text') }}" width2="4" rows="2" />
- </x-laraknife.panels.filter>
- <x-laraknife.panels.index-button buttonType="new"/>
- <x-laraknife.panels.sortable-table :context="$context" :pagination="$pagination">
- <thead>
- <tr>
- <th></th>
- <th sortId="name">{{__('Name')}}</th>
- <th sortId="info">{{__('Info')}}</th>
- <th sortId="group">{{__('Group')}}</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
-@foreach ($records as $mandator)
- <tr>
- <td><x-laraknife.icons.change-record module="mandator" no="{{ $mandator->id }}" /></td>
- <td>{{$mandator->name}}</td>
- <td>{{$mandator->info}}</td>
- <td>{{$mandator->group}}</td>
- <td><x-laraknife.icons.delete-record module="mandator" no="{{ $mandator->id }}" /></td>
- </tr>
-@endforeach
- </tbody>
- </x-laraknife.panels.sortable-table>
- </x-laraknife.panels.index>
-</form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="mandator-show" action="/mandator-show/{{ $context->model->id }}/{{ $mode }}" method="POST">
- @csrf
- @if($mode === 'delete')
- @method('DELETE')
- @endif
- <x-laraknife.panels.show title="{{ __($mode !== 'delete' ? 'A Mandator' : 'Deletion of a Mandator') }}" mode="{{$mode}}">
- <x-laraknife.forms.string position="first" name="id" label="Id" value="{{ $context->model->id }}" width2="4" attribute="readonly" />
- <x-laraknife.forms.combobox position="alone" name="group_id" label="Group" :options="$optionsGroup" width2="4" attribute="readonly"/>
- <x-laraknife.forms.text position="alone" name="info" label="Info" value="{{ $context->valueOf('info') }}" width2="4" attribute="readonly" rows="2" />
- <x-laraknife.forms.string position="alone" name="name" label="Name" value="{{ $context->valueOf('name') }}" width2="4" attribute="readonly" />
- </x-laraknife.panels.show>
- </form>
-@endsection
--- /dev/null
+../../vendor/hamatoma/laraknife/resources/views/transaction
\ No newline at end of file
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="transaction-create" action="/transaction-store/{{ $context->valueOf('account_id') }}" method="POST">
- @csrf
- @method('PUT')
- <x-laraknife.panels.standard title="{{ __('Creation of a Transaction') }}" fieldset="false">
- <x-laraknife.layout.nav-tabs :info="$navTabsInfo" fieldset="true">
- <x-laraknife.forms.string position="first" name="account" label="Account" value="{{ $context->valueOf('account') }}"
- width2="4" attribute="readonly"/>
- <x-laraknife.forms.string position="last" name="mandator" label="Mandator" value="{{ $context->valueOf('mandator') }}"
- width2="4" attribute="readonly"/>
- <x-laraknife.forms.string position="first" name="name" label="Name" value="{{ $context->valueOf('name') }}"
- width2="4" />
- <x-laraknife.forms.string type="date" position="last" name="date" label="Date"
- value="{{ $context->valueOf('date') }}" width2="4" />
- <x-laraknife.forms.combobox position="first" name="transactiontype_scope" label="Type" :options="$optionsTransactiontype"
- width2="4" />
- <x-laraknife.forms.combobox position="last" name="transactionstate_scope" label="Status" :options="$optionsTransactionstate"
- width2="4" />
- <x-laraknife.forms.string position="first" name="amount" label="Amount"
- value="{{ $context->valueOf('amount') }}" width2="4" />
- <x-laraknife.forms.combobox position="last" name="owner_id" label="Owner" :options="$optionsOwner"
- width2="4" />
- <x-laraknife.forms.text position="alone" name="info" label="Info"
- value="{{ $context->valueOf('info') }}" width2="10" rows="3" />
- </x-laraknife.layout.nav-tabs>
- </x-laraknife.panels.standard>
- </form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="transaction-edit" action="/transaction-edit/{{ $context->model->id }}" method="POST">
- @csrf
- <x-laraknife.panels.standard title="{{ __('Change of a Transaction') }}" fieldset="false">
- <x-laraknife.layout.nav-tabs :info="$navTabsInfo" fieldset="true">
- <x-laraknife.forms.string position="first" name="account" label="Account"
- value="{{ $context->valueOf('account') }}" width2="4" attribute="readonly" />
- <x-laraknife.forms.string position="last" name="mandator" label="Mandator"
- value="{{ $context->valueOf('mandator') }}" width2="4" attribute="readonly" />
- <x-laraknife.forms.string position="first" name="name" label="Name"
- value="{{ $context->valueOf('name') }}" width2="4" />
- <x-laraknife.forms.string type="date" position="last" name="date" label="Date"
- value="{{ $context->valueOf('date') }}" width2="4" />
- <x-laraknife.forms.string position="alone" name="amount" label="Amount"
- value="{{ $context->valueOf('amount') }}" width2="4" />
- <x-laraknife.forms.combobox position="first" name="transactiontype_scope" label="Type" :options="$optionsTransactiontype"
- width2="4" />
- <x-laraknife.forms.combobox position="last" name="transactionstate_scope" label="Status" :options="$optionsTransactionstate"
- width2="4" />
- <x-laraknife.forms.text position="alone" name="info" label="Info"
- value="{{ $context->valueOf('info') }}" width2="10" rows="3" />
- </x-laraknife.layout.nav-tabs>
- </x-laraknife.panels.standard>
- </form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="transaction-editowner" action="/transaction-editowner/{{ $context->model->id }}" method="POST">
- @csrf
- <x-laraknife.panels.standard title="{{ __('Change of a Transaction') }}" fieldset="false">
- <x-laraknife.layout.nav-tabs :info="$navTabsInfo" fieldset="true" button1Name="" button2Width1="8">
- <x-laraknife.forms.combobox position="first" name="owner_id" label="Owner" :options="$optionsOwner"
- value="{{ $context->valueOf('owner_id') }}" width2="4" />
- <x-laraknife.buttons.button-position position="last" name="btnStore" label="Store" width2="4" />
- <x-laraknife.forms.checkbox position="alone" name="withEmail" label="Send email notification" labelBelow="true" width1="2" />
- </x-laraknife.layout.nav-tabs>
- </x-laraknife.panels.edit>
- </form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="transaction-index" action="/transaction-index/{{ $context->valueOf('account_id') }}" method="POST">
- @csrf
- <x-laraknife.panels.standard title="{{ __('Transactions') }}" fieldset="false">
- <x-laraknife.layout.nav-tabs :info="$navTabsInfo" fieldset="true" button1Name="" button2Width1="8">
- <x-laraknife.forms.string position="first" name="mandator" label="Mandator"
- value="{{ $context->valueOf('mandator') }}" width2="4" attribute="readonly"/>
- <x-laraknife.forms.string position="last" name="account" label="Account"
- value="{{ $context->valueOf('account') }}" width2="4" attribute="readonly"/>
- <x-laraknife.panels.filter legend="{{ $pagination->legendText() }}">
- <x-laraknife.forms.combobox position="first" name="transactiontype" label="Type"
- :options="$optionsTransactiontype" class="lkn-autoupdate" width2="4" />
- <x-laraknife.forms.combobox position="last" name="transactionstate" label="Status"
- :options="$optionsTransactionstate" class="lkn-autoupdate" width2="4" />
- <x-laraknife.forms.string position="first" name="name" label="Text"
- value="{{ $context->valueOf('text') }}" width2="4" />
- <x-laraknife.forms.combobox position="last" name="owner" label="Owner" :options="$optionsOwner"
- class="lkn-autoupdate" width2="4" />
- <x-laraknife.forms.string type="date" position="first" name="from" label="From"
- value="{{ $context->valueOf('from') }}" width2="4" />
- <x-laraknife.forms.string type="date" position="last" name="until" label="To"
- value="{{ $context->valueOf('until') }}" width2="4" />
- </x-laraknife.panels.filter>
- <x-laraknife.panels.index-button buttonType="new" />
- <x-laraknife.panels.sortable-table :context="$context" :pagination="$pagination">
- <thead>
- <tr>
- <th></th>
- <th sortId="name">{{ __('Name') }}</th>
- <th sortId="info">{{ __('Info') }}</th>
- <th sortId="amount" class="lkn-align-right">{{ __('Amount') }}</th>
- <th sortId="transactiontype_scope">{{ __('Type') }}</th>
- <th sortId="transactionstate_scope">{{ __('Status') }}</th>
- <th sortId="date">{{ __('Date') }}</th>
- <th sortId="owner_id">{{ __('Owner') }}</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- @foreach ($records as $transaction)
- <tr>
- <td><x-laraknife.icons.change-record module="transaction" no="{{ $transaction->id }}" />
- </td>
- <td> {{ __($transaction->transactiontype_scope) }}</td>
- <td> {{ __($transaction->transactionstate_scope) }}</td>
- <td>{{ $transaction->name }}</td>
- <td>{{ $transaction->info }}</td>
- <td class="lkn-align-right">{{ $transaction->amount }}</td>
- <td>{{ $transaction->date }}</td>
- <td>{{ $transaction->owner }}</td>
- <td><x-laraknife.icons.delete-record module="transaction" no="{{ $transaction->id }}" />
- </td>
- </tr>
- @endforeach
- </tbody>
- </x-laraknife.panels.sortable-table>
- </x-laraknife.layout.nav-tabs>
- </x-laraknife.panels.standard>
- </form>
-@endsection
+++ /dev/null
-@extends('layouts.backend')
-
-@section('content')
- <form id="transaction-show" action="/transaction-show/{{ $context->model->id }}/{{ $mode }}" method="POST">
- @csrf
- @if($mode === 'delete')
- @method('DELETE')
- @endif
- <x-laraknife.panels.show title="{{ __($mode !== 'delete' ? 'A Transaction' : 'Deletion of a Transaction') }}" mode="{{$mode}}">
- <x-laraknife.forms.string position="first" name="id" label="Id" value="{{ $context->model->id }}" width2="4" attribute="readonly" />
- <x-laraknife.forms.combobox position="alone" name="transactiontype_scope" label="Transactiontype" :options="$optionsTransactiontype" width2="4" attribute="readonly"/>
- <x-laraknife.forms.combobox position="alone" name="transactionstate_scope" label="Transactionstate" :options="$optionsTransactionstate" width2="4" attribute="readonly"/>
- <x-laraknife.forms.combobox position="alone" name="account_id" label="Account" :options="$optionsAccount" width2="4" attribute="readonly"/>
- <x-laraknife.forms.combobox position="alone" name="twin_id" label="Twin" :options="$optionsTwin" width2="4" attribute="readonly"/>
- <x-laraknife.forms.combobox position="alone" name="owner_id" label="Owner" :options="$optionsOwner" width2="4" attribute="readonly"/>
- <x-laraknife.forms.text position="alone" name="info" label="Info" value="{{ $context->valueOf('info') }}" width2="4" attribute="readonly" rows="2" />
- <x-laraknife.forms.string position="alone" name="name" label="Name" value="{{ $context->valueOf('name') }}" width2="4" attribute="readonly" />
- <x-laraknife.string position="alone" name="amount" label="Amount" value="{{ $context->valueOf('amount') }}" width2="4" attribute="readonly" />
- <x-laraknife.string type="date" position="alone" name="date" label="Date" value="{{ $context->valueOf('date') }}" width2="4" attribute="readonly" />
- </x-laraknife.panels.show>
- </form>
-@endsection