Updated: README.md & Permissions Seeder
This commit is contained in:
parent
a5b28237ba
commit
d59148531b
|
|
@ -9,39 +9,31 @@ use Illuminate\Support\Facades\Gate;
|
||||||
class ReportsController extends Controller
|
class ReportsController extends Controller
|
||||||
{
|
{
|
||||||
|
|
||||||
public function profitLossReport() {
|
public function __construct() {
|
||||||
abort_if(Gate::denies('access_profit_loss_report'), 403);
|
abort_if(Gate::denies('access_reports'), 403);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function profitLossReport() {
|
||||||
return view('reports::profit-loss.index');
|
return view('reports::profit-loss.index');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function paymentsReport() {
|
public function paymentsReport() {
|
||||||
abort_if(Gate::denies('access_payments_report'), 403);
|
|
||||||
|
|
||||||
return view('reports::payments.index');
|
return view('reports::payments.index');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function salesReport() {
|
public function salesReport() {
|
||||||
abort_if(Gate::denies('access_sales_report'), 403);
|
|
||||||
|
|
||||||
return view('reports::sales.index');
|
return view('reports::sales.index');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function purchasesReport() {
|
public function purchasesReport() {
|
||||||
abort_if(Gate::denies('access_purchases_report'), 403);
|
|
||||||
|
|
||||||
return view('reports::purchases.index');
|
return view('reports::purchases.index');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function salesReturnReport() {
|
public function salesReturnReport() {
|
||||||
abort_if(Gate::denies('access_sales_return_report'), 403);
|
|
||||||
|
|
||||||
return view('reports::sales-return.index');
|
return view('reports::sales-return.index');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function purchasesReturnReport() {
|
public function purchasesReturnReport() {
|
||||||
abort_if(Gate::denies('access_purchases_return_report'), 403);
|
|
||||||
|
|
||||||
return view('reports::purchases-return.index');
|
return view('reports::purchases-return.index');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ class SettingDatabaseSeeder extends Seeder
|
||||||
'notification_email' => 'notification@test.com',
|
'notification_email' => 'notification@test.com',
|
||||||
'default_currency_id' => 1,
|
'default_currency_id' => 1,
|
||||||
'default_currency_position' => 'prefix',
|
'default_currency_position' => 'prefix',
|
||||||
'footer_text' => 'Triangle Pos © 2021 || Developed by <strong><a target="_blank" href="https://fahim.codes">Fahim Anzam</a></strong>',
|
'footer_text' => 'Triangle Pos © 2021 || Developed by <strong><a target="_blank" href="https://fahimanzam.me">Fahim Anzam</a></strong>',
|
||||||
'company_address' => 'Tangail, Bangladesh'
|
'company_address' => 'Tangail, Bangladesh'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,8 @@ class PermissionsTableSeeder extends Seeder
|
||||||
'delete_purchase_returns',
|
'delete_purchase_returns',
|
||||||
//Purchase Return Payments
|
//Purchase Return Payments
|
||||||
'access_purchase_return_payments',
|
'access_purchase_return_payments',
|
||||||
|
//Reports
|
||||||
|
'access_reports',
|
||||||
//Currencies
|
//Currencies
|
||||||
'access_currencies',
|
'access_currencies',
|
||||||
'create_currencies',
|
'create_currencies',
|
||||||
|
|
|
||||||
|
|
@ -782,6 +782,27 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Reports -->
|
||||||
|
<div class="col-lg-4 col-md-6 mb-3">
|
||||||
|
<div class="card h-100 border-0 shadow">
|
||||||
|
<div class="card-header">
|
||||||
|
Reports
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-6">
|
||||||
|
<div class="custom-control custom-switch">
|
||||||
|
<input type="checkbox" class="custom-control-input"
|
||||||
|
id="access_reports" name="permissions[]"
|
||||||
|
value="access_reports" {{ $role->hasPermissionTo('access_reports') ? 'checked' : '' }}>
|
||||||
|
<label class="custom-control-label" for="access_reports">Access</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<div class="col-lg-4 col-md-6 mb-3">
|
<div class="col-lg-4 col-md-6 mb-3">
|
||||||
<div class="card h-100 border-0 shadow">
|
<div class="card h-100 border-0 shadow">
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||

|

|
||||||
>This Project is ready for Testing & also for Production. (Only Reports are not available right now).
|
> This Project is ready for Production. If you find any bug or have any suggestion please create an Issue.
|
||||||
|
|
||||||
# Installation
|
# Local Installation
|
||||||
|
|
||||||
- run `` git clone https://github.com/FahimAnzamDip/triangle-pos.git ``
|
- run `` git clone https://github.com/FahimAnzamDip/triangle-pos.git ``
|
||||||
- run ``composer update ``
|
- run ``composer update ``
|
||||||
|
|
@ -15,13 +15,14 @@
|
||||||
- run `` php artisan serve ``
|
- run `` php artisan serve ``
|
||||||
- then visit `` http://localhost:8000 or http://127.0.0.1:8000 ``.
|
- then visit `` http://localhost:8000 or http://127.0.0.1:8000 ``.
|
||||||
|
|
||||||
|
> **Important Note:** "Triangle POS" uses Laravel Snappy Package for PDFs. If you are using Linux then no configuration is needed. But in other Operating Systems please refer to [Laravel Snappy Documentation](https://github.com/barryvdh/laravel-snappy).
|
||||||
|
|
||||||
# Admin Credentials
|
# Admin Credentials
|
||||||
> Email: admin@test.com || Password: 12345678
|
> Email: admin@test.com || Password: 12345678
|
||||||
|
|
||||||
## Demo
|
## Demo
|
||||||

|

|
||||||
[Live Link] (https://soon.will.be.available)
|
**Live Demo:** https://soon.will.be.available
|
||||||
|
|
||||||
## Triangle POS Features
|
## Triangle POS Features
|
||||||
|
|
||||||
|
|
@ -37,7 +38,7 @@
|
||||||
- **Product Multiple Images**
|
- **Product Multiple Images**
|
||||||
- **Multiple Currency Settings**
|
- **Multiple Currency Settings**
|
||||||
- **System Settings**
|
- **System Settings**
|
||||||
- **Various Reports (Upcoming)**
|
- **Reports**
|
||||||
|
|
||||||
# License
|
# License
|
||||||
**[Creative Commons Attribution 4.0 cc-by-4.0](https://creativecommons.org/licenses/by/4.0/)**
|
**[Creative Commons Attribution 4.0 cc-by-4.0](https://creativecommons.org/licenses/by/4.0/)**
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 215 KiB After Width: | Height: | Size: 215 KiB |
|
|
@ -233,54 +233,42 @@
|
||||||
</li>
|
</li>
|
||||||
@endcan
|
@endcan
|
||||||
|
|
||||||
@can('access_sales_report|access_purchases_report|access_sales_return_report|access_purchases_return_report|access_payments_reports|access_profit_loss_report')
|
@can('access_reports')
|
||||||
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown {{ request()->routeIs('*-report.index') ? 'c-show' : '' }}">
|
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown {{ request()->routeIs('*-report.index') ? 'c-show' : '' }}">
|
||||||
<a class="c-sidebar-nav-link c-sidebar-nav-dropdown-toggle" href="#">
|
<a class="c-sidebar-nav-link c-sidebar-nav-dropdown-toggle" href="#">
|
||||||
<i class="c-sidebar-nav-icon bi bi-graph-up" style="line-height: 1;"></i> Reports
|
<i class="c-sidebar-nav-icon bi bi-graph-up" style="line-height: 1;"></i> Reports
|
||||||
</a>
|
</a>
|
||||||
<ul class="c-sidebar-nav-dropdown-items">
|
<ul class="c-sidebar-nav-dropdown-items">
|
||||||
@can('access_profit_loss_report')
|
<li class="c-sidebar-nav-item">
|
||||||
<li class="c-sidebar-nav-item">
|
<a class="c-sidebar-nav-link {{ request()->routeIs('profit-loss-report.index') ? 'c-active' : '' }}" href="{{ route('profit-loss-report.index') }}">
|
||||||
<a class="c-sidebar-nav-link {{ request()->routeIs('profit-loss-report.index') ? 'c-active' : '' }}" href="{{ route('profit-loss-report.index') }}">
|
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Profit / Loss Report
|
||||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Profit / Loss Report
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<li class="c-sidebar-nav-item">
|
||||||
@endcan
|
<a class="c-sidebar-nav-link {{ request()->routeIs('payments-report.index') ? 'c-active' : '' }}" href="{{ route('payments-report.index') }}">
|
||||||
@can('access_payments_report')
|
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Payments Report
|
||||||
<li class="c-sidebar-nav-item">
|
</a>
|
||||||
<a class="c-sidebar-nav-link {{ request()->routeIs('payments-report.index') ? 'c-active' : '' }}" href="{{ route('payments-report.index') }}">
|
</li>
|
||||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Payments Report
|
<li class="c-sidebar-nav-item">
|
||||||
</a>
|
<a class="c-sidebar-nav-link {{ request()->routeIs('sales-report.index') ? 'c-active' : '' }}" href="{{ route('sales-report.index') }}">
|
||||||
</li>
|
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Sales Report
|
||||||
@endcan
|
</a>
|
||||||
@can('access_sales_report')
|
</li>
|
||||||
<li class="c-sidebar-nav-item">
|
<li class="c-sidebar-nav-item">
|
||||||
<a class="c-sidebar-nav-link {{ request()->routeIs('sales-report.index') ? 'c-active' : '' }}" href="{{ route('sales-report.index') }}">
|
<a class="c-sidebar-nav-link {{ request()->routeIs('purchases-report.index') ? 'c-active' : '' }}" href="{{ route('purchases-report.index') }}">
|
||||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Sales Report
|
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Purchases Report
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@endcan
|
<li class="c-sidebar-nav-item">
|
||||||
@can('access_purchases_report')
|
<a class="c-sidebar-nav-link {{ request()->routeIs('sales-return-report.index') ? 'c-active' : '' }}" href="{{ route('sales-return-report.index') }}">
|
||||||
<li class="c-sidebar-nav-item">
|
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Sales Return Report
|
||||||
<a class="c-sidebar-nav-link {{ request()->routeIs('purchases-report.index') ? 'c-active' : '' }}" href="{{ route('purchases-report.index') }}">
|
</a>
|
||||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Purchases Report
|
</li>
|
||||||
</a>
|
<li class="c-sidebar-nav-item">
|
||||||
</li>
|
<a class="c-sidebar-nav-link {{ request()->routeIs('purchases-return-report.index') ? 'c-active' : '' }}" href="{{ route('purchases-return-report.index') }}">
|
||||||
@endcan
|
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Purchases Return Report
|
||||||
@can('access_sales_return_report')
|
</a>
|
||||||
<li class="c-sidebar-nav-item">
|
</li>
|
||||||
<a class="c-sidebar-nav-link {{ request()->routeIs('sales-return-report.index') ? 'c-active' : '' }}" href="{{ route('sales-return-report.index') }}">
|
|
||||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Sales Return Report
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
@endcan
|
|
||||||
@can('access_purchases_return_report')
|
|
||||||
<li class="c-sidebar-nav-item">
|
|
||||||
<a class="c-sidebar-nav-link {{ request()->routeIs('purchases-return-report.index') ? 'c-active' : '' }}" href="{{ route('purchases-return-report.index') }}">
|
|
||||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Purchases Return Report
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
@endcan
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@endcan
|
@endcan
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue