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
|
||||
{
|
||||
|
||||
public function profitLossReport() {
|
||||
abort_if(Gate::denies('access_profit_loss_report'), 403);
|
||||
public function __construct() {
|
||||
abort_if(Gate::denies('access_reports'), 403);
|
||||
}
|
||||
|
||||
public function profitLossReport() {
|
||||
return view('reports::profit-loss.index');
|
||||
}
|
||||
|
||||
public function paymentsReport() {
|
||||
abort_if(Gate::denies('access_payments_report'), 403);
|
||||
|
||||
return view('reports::payments.index');
|
||||
}
|
||||
|
||||
public function salesReport() {
|
||||
abort_if(Gate::denies('access_sales_report'), 403);
|
||||
|
||||
return view('reports::sales.index');
|
||||
}
|
||||
|
||||
public function purchasesReport() {
|
||||
abort_if(Gate::denies('access_purchases_report'), 403);
|
||||
|
||||
return view('reports::purchases.index');
|
||||
}
|
||||
|
||||
public function salesReturnReport() {
|
||||
abort_if(Gate::denies('access_sales_return_report'), 403);
|
||||
|
||||
return view('reports::sales-return.index');
|
||||
}
|
||||
|
||||
public function purchasesReturnReport() {
|
||||
abort_if(Gate::denies('access_purchases_return_report'), 403);
|
||||
|
||||
return view('reports::purchases-return.index');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class SettingDatabaseSeeder extends Seeder
|
|||
'notification_email' => 'notification@test.com',
|
||||
'default_currency_id' => 1,
|
||||
'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'
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,6 +105,8 @@ class PermissionsTableSeeder extends Seeder
|
|||
'delete_purchase_returns',
|
||||
//Purchase Return Payments
|
||||
'access_purchase_return_payments',
|
||||
//Reports
|
||||
'access_reports',
|
||||
//Currencies
|
||||
'access_currencies',
|
||||
'create_currencies',
|
||||
|
|
|
|||
|
|
@ -782,6 +782,27 @@
|
|||
</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 -->
|
||||
<div class="col-lg-4 col-md-6 mb-3">
|
||||
<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 ``composer update ``
|
||||
|
|
@ -15,13 +15,14 @@
|
|||
- run `` php artisan serve ``
|
||||
- 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
|
||||
> Email: admin@test.com || Password: 12345678
|
||||
|
||||
## Demo
|
||||

|
||||
[Live Link] (https://soon.will.be.available)
|
||||
**Live Demo:** https://soon.will.be.available
|
||||
|
||||
## Triangle POS Features
|
||||
|
||||
|
|
@ -37,7 +38,7 @@
|
|||
- **Product Multiple Images**
|
||||
- **Multiple Currency Settings**
|
||||
- **System Settings**
|
||||
- **Various Reports (Upcoming)**
|
||||
- **Reports**
|
||||
|
||||
# License
|
||||
**[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>
|
||||
@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' : '' }}">
|
||||
<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
|
||||
</a>
|
||||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
@can('access_profit_loss_report')
|
||||
<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') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Profit / Loss Report
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
@can('access_payments_report')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('payments-report.index') ? 'c-active' : '' }}" href="{{ route('payments-report.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Payments Report
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
@can('access_sales_report')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('sales-report.index') ? 'c-active' : '' }}" href="{{ route('sales-report.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Sales Report
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
@can('access_purchases_report')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<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> Purchases Report
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
@can('access_sales_return_report')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<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
|
||||
<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') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Profit / Loss Report
|
||||
</a>
|
||||
</li>
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('payments-report.index') ? 'c-active' : '' }}" href="{{ route('payments-report.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Payments Report
|
||||
</a>
|
||||
</li>
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('sales-report.index') ? 'c-active' : '' }}" href="{{ route('sales-report.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Sales Report
|
||||
</a>
|
||||
</li>
|
||||
<li class="c-sidebar-nav-item">
|
||||
<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> Purchases Report
|
||||
</a>
|
||||
</li>
|
||||
<li class="c-sidebar-nav-item">
|
||||
<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>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
@endcan
|
||||
|
|
|
|||
Loading…
Reference in New Issue