This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
contract Hello { | |
string greetingMessage; | |
constructor() { | |
greetingMessage = "Hello word"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//transfer\routes\api.php | |
<?php | |
use Illuminate\Http\Request; | |
use Illuminate\Database\Eloquent\Model; | |
class Balance extends Model{ | |
protected $fillable = ['account_nr','balance']; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
View.global('simplePagination', function (page,lastPage) { | |
const url = this.resolve('url') | |
const prevPage = ()=>{ | |
if(page == 1){ | |
return `<li class="page-item disabled"><span class="page-link">«</span></li>` | |
} | |
else{ | |
return `<li><a href="${url}?page=${parseInt(page) - 1}">«</a></li>` | |
} | |
} |