ind ui
This commit is contained in:
parent
0d288a48b9
commit
babd5876c3
|
@ -18,6 +18,9 @@ class ExpensesDataTable extends DataTable
|
|||
->addColumn('amount', function ($data) {
|
||||
return format_currency($data->amount);
|
||||
})
|
||||
->addColumn('branch_id', function ($data) {
|
||||
return $data->branch ? $data->branch->name : '-';
|
||||
})
|
||||
->addColumn('action', function ($data) {
|
||||
return view('expense::expenses.partials.actions', compact('data'));
|
||||
});
|
||||
|
@ -57,9 +60,9 @@ class ExpensesDataTable extends DataTable
|
|||
->className('text-center align-middle'),
|
||||
|
||||
Column::make('branch_id')
|
||||
->title('Cabang')
|
||||
->className('text-center align-middle')
|
||||
->visible(false),
|
||||
->title('Branch')
|
||||
->data('branch_id')
|
||||
->className('text-center align-middle'),
|
||||
|
||||
Column::make('category.category_name')
|
||||
->title('Kategori')
|
||||
|
|
|
@ -38,6 +38,7 @@ class SaleController extends Controller
|
|||
if (!$branch_id) {
|
||||
throw new \Exception("Branch belum dipilih.");
|
||||
}
|
||||
$tax = Cart::instance('sale')->tax();
|
||||
$discount = Cart::instance('sale')->discount();
|
||||
|
||||
$total_amount = 0 - $discount ;
|
||||
|
@ -45,9 +46,6 @@ class SaleController extends Controller
|
|||
$total_amount += $item->options->sub_total; // sub_total sudah diskon
|
||||
}
|
||||
|
||||
$tax = Cart::instance('sale')->tax();
|
||||
|
||||
|
||||
// Total amount hanya total bersih + pajak
|
||||
//$total_amount = $total + $tax + $discount;
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ use Modules\Sale\Entities\Sale;
|
|||
use Modules\Sale\Entities\SaleDetails;
|
||||
use Modules\Sale\Entities\SalePayment;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class ProfitLossReport extends Component
|
||||
{
|
||||
|
|
|
@ -28,8 +28,8 @@ class SalesReport extends Component
|
|||
|
||||
public function mount($customers) {
|
||||
$this->customers = $customers;
|
||||
$this->month ;
|
||||
$this->year ;
|
||||
$this->month = now()->month;
|
||||
$this->year = now()->year;
|
||||
$this->customer_id = '';
|
||||
$this->sale_status = '';
|
||||
$this->payment_status = '';
|
||||
|
@ -37,43 +37,31 @@ class SalesReport extends Component
|
|||
}
|
||||
|
||||
public function render() {
|
||||
$query = Sale::query();
|
||||
|
||||
if ($this->year) {
|
||||
$query->whereYear('date', $this->year);
|
||||
}
|
||||
|
||||
if ($this->month) {
|
||||
$query->whereMonth('date', $this->month);
|
||||
}
|
||||
|
||||
$query->when($this->customer_id, function ($query) {
|
||||
return $query->where('customer_id', $this->customer_id);
|
||||
});
|
||||
|
||||
$query->when($this->customer_type, function ($query) {
|
||||
if ($this->customer_type === 'walk_in') {
|
||||
return $query->where('customer_id', 1);
|
||||
} elseif ($this->customer_type === 'member') {
|
||||
return $query->where('customer_id', '!=', 1);
|
||||
}
|
||||
});
|
||||
|
||||
$query->when($this->sale_status, function ($query) {
|
||||
return $query->where('status', $this->sale_status);
|
||||
});
|
||||
|
||||
$query->when($this->payment_status, function ($query) {
|
||||
return $query->where('payment_status', $this->payment_status);
|
||||
});
|
||||
|
||||
$sales = $query->orderBy('date', 'desc')->paginate(10);
|
||||
|
||||
$sales = Sale::whereYear('date', $this->year)
|
||||
->whereMonth('date', $this->month)
|
||||
->when($this->customer_id, function ($query) {
|
||||
return $query->where('customer_id', $this->customer_id);
|
||||
})
|
||||
->when($this->customer_type, function ($query) {
|
||||
if ($this->customer_type === 'walk_in') {
|
||||
return $query->where('customer_id', 1);
|
||||
} elseif ($this->customer_type === 'member') {
|
||||
return $query->where('customer_id', '!=', 1);
|
||||
}
|
||||
return $query;
|
||||
})
|
||||
->when($this->sale_status, function ($query) {
|
||||
return $query->where('status', $this->sale_status);
|
||||
})
|
||||
->when($this->payment_status, function ($query) {
|
||||
return $query->where('payment_status', $this->payment_status);
|
||||
})
|
||||
->orderBy('date', 'desc')->paginate(10);
|
||||
|
||||
return view('livewire.reports.sales-report', [
|
||||
'sales' => $sales
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
public function generateReport() {
|
||||
$this->validate();
|
||||
|
|
|
@ -15,48 +15,56 @@
|
|||
<div class="col-12">
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="card-body">
|
||||
<form method="GET" action="{{ route('home') }}">
|
||||
<div class="form-row">
|
||||
<div class="col-lg-4">
|
||||
<form wire:submit.prevent="filterData">
|
||||
<div class="row d-flex justify-content-between align-items-end">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="filterBulan"><h5>Bulan</h5></label>
|
||||
<select class="form-control" id="filterBulan" name="filterBulan">
|
||||
<label for="filterBulan">Bulan</label>
|
||||
<select wire:model="filterBulan" class="form-control" id="filterBulan" name="filterBulan">
|
||||
<option value="">Pilih Bulan</option>
|
||||
@foreach(range(1, 12) as $month)
|
||||
<option value="{{ str_pad($month, 2, '0', STR_PAD_LEFT) }}"
|
||||
{{ request('filterBulan') == str_pad($month, 2, '0', STR_PAD_LEFT) ? 'selected' : '' }}>
|
||||
{{ \Carbon\Carbon::create()->month($month)->translatedFormat('F') }}
|
||||
</option>
|
||||
@endforeach
|
||||
<option value="01">Januari</option>
|
||||
<option value="02">Februari</option>
|
||||
<option value="03">Maret</option>
|
||||
<option value="04">April</option>
|
||||
<option value="05">Mei</option>
|
||||
<option value="06">Juni</option>
|
||||
<option value="07">Juli</option>
|
||||
<option value="08">Agustus</option>
|
||||
<option value="09">September</option>
|
||||
<option value="10">Oktober</option>
|
||||
<option value="11">November</option>
|
||||
<option value="12">Desember</option>
|
||||
</select>
|
||||
@error('filterBulan')
|
||||
<span class="text-danger mt-1">{{ $message }}</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="filterTahun"><h5>Tahun</h5></label>
|
||||
<select class="form-control" id="filterTahun" name="filterTahun">
|
||||
<label for="filterTahun">Tahun</label>
|
||||
<select wire:model="filterTahun" class="form-control" id="filterTahun" name="filterTahun">
|
||||
<option value="">Pilih Tahun</option>
|
||||
@for ($year = now()->year; $year >= 2025; $year--)
|
||||
<option value="{{ $year }}" {{ request('filterTahun') == $year ? 'selected' : '' }}>
|
||||
{{ $year }}
|
||||
</option>
|
||||
@for ($year = date('Y'); $year >= 2025; $year--)
|
||||
<option value="{{ $year }}">{{ $year }}</option>
|
||||
@endfor
|
||||
</select>
|
||||
@error('filterTahun')
|
||||
<span class="text-danger mt-1">{{ $message }}</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 d-flex align-items-end">
|
||||
<div class="col d-flex align-items-end">
|
||||
<div class="form-group w-100">
|
||||
<button type="submit" class="btn btn-primary w-100">
|
||||
<i class="bi bi-funnel-fill"></i> Filter
|
||||
<span wire:target="filterData" wire:loading class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
|
||||
<i wire:loading.remove wire:target="filterData" class="bi bi-funnel-fill"></i>
|
||||
Filter
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -97,98 +97,3 @@
|
|||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{{-- <button class="c-header-toggler c-class-toggler d-lg-none mfe-auto" type="button" data-target="#sidebar" data-class="c-sidebar-show">
|
||||
<i class="bi bi-list" style="font-size: 2rem;"></i>
|
||||
</button>
|
||||
|
||||
<button class="c-header-toggler c-class-toggler mfs-3 d-md-down-none" type="button" data-target="#sidebar" data-class="c-sidebar-lg-show" responsive="true">
|
||||
<i class="bi bi-list" style="font-size: 2rem;"></i>
|
||||
</button>
|
||||
|
||||
<ul class="c-header-nav ml-auto">
|
||||
|
||||
</ul>
|
||||
<ul class="c-header-nav ml-auto mr-4">
|
||||
@can('access_branches')
|
||||
<li class="c-header-nav-item mr-3">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-outline-primary btn-pill dropdown-toggle" type="button" id="branchDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="bi bi-building mr-1"></i> {{ auth()->user()->active_branch ? auth()->user()->active_branch->name : 'Pilih Cabang' }}
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="branchDropdown">
|
||||
@foreach(\Modules\Branch\Entities\Branch::all() as $branch)
|
||||
<a class="dropdown-item {{ auth()->user()->active_branch && auth()->user()->active_branch->id === $branch->id ? 'active' : '' }}"
|
||||
href="{{ route('branch.switch', $branch->id) }}">
|
||||
{{ $branch->name }}
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endcan
|
||||
|
||||
@can('create_pos_sales')
|
||||
<li class="c-header-nav-item mr-3">
|
||||
<a class="btn btn-primary btn-pill {{ request()->routeIs('app.pos.index') ? 'disabled' : '' }}" href="{{ route('app.pos.index') }}">
|
||||
<i class="bi bi-cart mr-1"></i> POS System
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
|
||||
@can('show_notifications')
|
||||
<li class="c-header-nav-item dropdown d-md-down-none mr-2">
|
||||
<a class="c-header-nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="bi bi-bell" style="font-size: 20px;"></i>
|
||||
<span class="badge badge-pill badge-danger">
|
||||
@php
|
||||
$low_quantity_products = \Modules\Product\Entities\Product::select('id', 'product_code', 'product_name', 'product_stock_alert')
|
||||
->withSum('batches', 'qty', 'batches_sum_qty')
|
||||
->having('batches_sum_qty', '<=', DB::raw('product_stock_alert'))
|
||||
->get();
|
||||
echo $low_quantity_products->count();
|
||||
@endphp
|
||||
</span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right dropdown-menu-lg pt-0">
|
||||
<div class="dropdown-header bg-light">
|
||||
<strong>{{ $low_quantity_products->count() }} Notifications</strong>
|
||||
</div>
|
||||
@forelse($low_quantity_products as $product)
|
||||
<a class="dropdown-item" href="{{ route('products.show', $product->id) }}">
|
||||
<i class="bi bi-hash mr-1 text-primary"></i> Product: "{{ $product->product_name }}" is low in quantity!
|
||||
</a>
|
||||
@empty
|
||||
<a class="dropdown-item" href="#">
|
||||
<i class="bi bi-app-indicator mr-2 text-danger"></i> No notifications available.
|
||||
</a>
|
||||
@endforelse
|
||||
</div>
|
||||
</li>
|
||||
@endcan
|
||||
|
||||
<li class="c-header-nav-item dropdown">
|
||||
<a class="c-header-nav-link" data-toggle="dropdown" href="#" role="button"
|
||||
aria-haspopup="true" aria-expanded="false">
|
||||
<div class="c-avatar mr-2">
|
||||
<img class="c-avatar rounded-circle" src="{{ auth()->user()->getFirstMediaUrl('avatars') }}" alt="Profile Image">
|
||||
</div>
|
||||
<div class="d-flex flex-column">
|
||||
<span class="font-weight-bold">{{ auth()->user()->name }}</span>
|
||||
<span class="font-italic">Online <i class="bi bi-circle-fill text-success" style="font-size: 11px;"></i></span>
|
||||
</div>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right pt-0">
|
||||
<div class="dropdown-header bg-light py-2"><strong>Account</strong></div>
|
||||
<a class="dropdown-item" href="{{ route('profile.edit') }}">
|
||||
<i class="mfe-2 bi bi-person" style="font-size: 1.2rem;"></i> Profile
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
|
||||
<i class="mfe-2 bi bi-box-arrow-left" style="font-size: 1.2rem;"></i> Logout
|
||||
</a>
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
|
||||
@csrf
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
</ul> --}}
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
<li class="c-sidebar-nav-item {{ request()->routeIs('home') ? 'c-active' : '' }}">
|
||||
<a class="c-sidebar-nav-link" href="{{ route('home') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-house" style="line-height: 1;"></i> Home
|
||||
<i class="c-sidebar-nav-icon bi bi-house" style="line-height: 1;"></i> Beranda
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@can('access_branches')
|
||||
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown {{ request()->routeIs('branch.*') ? 'c-show' : '' }}">
|
||||
<a class="c-sidebar-nav-link c-sidebar-nav-dropdown-toggle" href="#">
|
||||
<i class="c-sidebar-nav-icon bi bi-building" style="line-height: 1;"></i> Branches
|
||||
<i class="c-sidebar-nav-icon bi bi-building" style="line-height: 1;"></i> Cabang
|
||||
</a>
|
||||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
@can('create_branches')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('branch.create') ? 'c-active' : '' }}" href="{{ route('branch.create') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Create Branch
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Tambah Cabang
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('branch.index') ? 'c-active' : '' }}" href="{{ route('branch.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> All Branches
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> Semua Cabang
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -29,32 +29,32 @@
|
|||
@can('access_products')
|
||||
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown {{ request()->routeIs('products.*') || request()->routeIs('product-categories.*') ? 'c-show' : '' }}">
|
||||
<a class="c-sidebar-nav-link c-sidebar-nav-dropdown-toggle" href="#">
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-bookmark" style="line-height: 1;"></i> Products
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-bookmark" style="line-height: 1;"></i> Produk
|
||||
</a>
|
||||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
@can('access_product_categories')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('product-categories.*') ? 'c-active' : '' }}" href="{{ route('product-categories.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-collection" style="line-height: 1;"></i> Categories
|
||||
<i class="c-sidebar-nav-icon bi bi-collection" style="line-height: 1;"></i> Kategori
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
@can('create_products')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('products.create') ? 'c-active' : '' }}" href="{{ route('products.create') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Create Product
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Tambah Produk
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('products.index') ? 'c-active' : '' }}" href="{{ route('products.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> All Products
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> Semua Produk
|
||||
</a>
|
||||
</li>
|
||||
@can('print_barcodes')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('barcode.print') ? 'c-active' : '' }}" href="{{ route('barcode.print') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-printer" style="line-height: 1;"></i> Print Barcode
|
||||
<i class="c-sidebar-nav-icon bi bi-printer" style="line-height: 1;"></i> Cetak Barcode
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
|
@ -65,19 +65,19 @@
|
|||
@can('access_adjustments')
|
||||
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown {{ request()->routeIs('adjustments.*') ? 'c-show' : '' }}">
|
||||
<a class="c-sidebar-nav-link c-sidebar-nav-dropdown-toggle" href="#">
|
||||
<i class="c-sidebar-nav-icon bi bi-clipboard-check" style="line-height: 1;"></i> Stock Adjustments
|
||||
<i class="c-sidebar-nav-icon bi bi-clipboard-check" style="line-height: 1;"></i> Penyesuaian Stok
|
||||
</a>
|
||||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
@can('create_adjustments')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('adjustments.create') ? 'c-active' : '' }}" href="{{ route('adjustments.create') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Create Adjustment
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Tambah Penyesuaian
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('adjustments.index') ? 'c-active' : '' }}" href="{{ route('adjustments.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> All Adjustments
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> Semua Penyesuaian
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -87,38 +87,35 @@
|
|||
@can('access_stock_transfers')
|
||||
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown {{ request()->routeIs('stocktransfers.*') ? 'c-show' : '' }}">
|
||||
<a class="c-sidebar-nav-link c-sidebar-nav-dropdown-toggle" href="#">
|
||||
<i class="c-sidebar-nav-icon bi bi-arrow-left-right" style="line-height: 1;"></i> Stock Transfers
|
||||
<i class="c-sidebar-nav-icon bi bi-arrow-left-right" style="line-height: 1;"></i> Transfer Stok
|
||||
</a>
|
||||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
@can('create_stock_transfers')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('stocktransfers.create') ? 'c-active' : '' }}" href="{{ route('stocktransfers.create') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Create Transfer
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Tambah Transfer
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('stocktransfers.index') ? 'c-active' : '' }}" href="{{ route('stocktransfers.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> All Transfers
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> Semua Transfer
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@endcan
|
||||
|
||||
{{--
|
||||
--}}
|
||||
|
||||
@can('access_purchases')
|
||||
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown {{ request()->routeIs('purchases.*') || request()->routeIs('purchase-payments*') ? 'c-show' : '' }}">
|
||||
<a class="c-sidebar-nav-link c-sidebar-nav-dropdown-toggle" href="#">
|
||||
<i class="c-sidebar-nav-icon bi bi-bag" style="line-height: 1;"></i> Purchases
|
||||
<i class="c-sidebar-nav-icon bi bi-bag" style="line-height: 1;"></i> Pembelian
|
||||
</a>
|
||||
@can('create_purchase')
|
||||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('purchases.create') ? 'c-active' : '' }}" href="{{ route('purchases.create') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Create Purchase
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Tambah Pembelian
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -126,7 +123,7 @@
|
|||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('purchases.index') ? 'c-active' : '' }}" href="{{ route('purchases.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> All Purchases
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> Semua Pembelian
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -136,13 +133,13 @@
|
|||
@can('access_sales')
|
||||
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown {{ request()->routeIs('sales.*') || request()->routeIs('sale-payments*') ? 'c-show' : '' }}">
|
||||
<a class="c-sidebar-nav-link c-sidebar-nav-dropdown-toggle" href="#">
|
||||
<i class="c-sidebar-nav-icon bi bi-receipt" style="line-height: 1;"></i> Sales
|
||||
<i class="c-sidebar-nav-icon bi bi-receipt" style="line-height: 1;"></i> Penjualan
|
||||
</a>
|
||||
@can('create_sales')
|
||||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('sales.create') ? 'c-active' : '' }}" href="{{ route('sales.create') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Create Sale
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Tambah Penjualan
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -150,7 +147,7 @@
|
|||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('sales.index') ? 'c-active' : '' }}" href="{{ route('sales.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> All Sales
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> Semua Penjualan
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -160,26 +157,26 @@
|
|||
@can('access_expenses')
|
||||
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown {{ request()->routeIs('expenses.*') || request()->routeIs('expense-categories.*') ? 'c-show' : '' }}">
|
||||
<a class="c-sidebar-nav-link c-sidebar-nav-dropdown-toggle" href="#">
|
||||
<i class="c-sidebar-nav-icon bi bi-wallet2" style="line-height: 1;"></i> Expenses
|
||||
<i class="c-sidebar-nav-icon bi bi-wallet2" style="line-height: 1;"></i> Pengeluaran
|
||||
</a>
|
||||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
@can('access_expense_categories')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('expense-categories.*') ? 'c-active' : '' }}" href="{{ route('expense-categories.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-collection" style="line-height: 1;"></i> Categories
|
||||
<i class="c-sidebar-nav-icon bi bi-collection" style="line-height: 1;"></i> Kategori
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
@can('create_expenses')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('expenses.create') ? 'c-active' : '' }}" href="{{ route('expenses.create') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Create Expense
|
||||
<i class="c-sidebar-nav-icon bi bi-journal-plus" style="line-height: 1;"></i> Tambah Pengeluaran
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('expenses.index') ? 'c-active' : '' }}" href="{{ route('expenses.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> All Expenses
|
||||
<i class="c-sidebar-nav-icon bi bi-journals" style="line-height: 1;"></i> Semua Pengeluaran
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -189,20 +186,20 @@
|
|||
@can('access_customers|access_suppliers')
|
||||
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown {{ request()->routeIs('customers.*') || request()->routeIs('suppliers.*') ? 'c-show' : '' }}">
|
||||
<a class="c-sidebar-nav-link c-sidebar-nav-dropdown-toggle" href="#">
|
||||
<i class="c-sidebar-nav-icon bi bi-people" style="line-height: 1;"></i> Parties
|
||||
<i class="c-sidebar-nav-icon bi bi-people" style="line-height: 1;"></i> Relasi
|
||||
</a>
|
||||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
@can('access_customers')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('customers.*') ? 'c-active' : '' }}" href="{{ route('customers.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-people-fill" style="line-height: 1;"></i> Customers
|
||||
<i class="c-sidebar-nav-icon bi bi-people-fill" style="line-height: 1;"></i> Pelanggan
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
@can('access_suppliers')
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('suppliers.*') ? 'c-active' : '' }}" href="{{ route('suppliers.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-people-fill" style="line-height: 1;"></i> Suppliers
|
||||
<i class="c-sidebar-nav-icon bi bi-people-fill" style="line-height: 1;"></i> Pemasok
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
|
@ -213,22 +210,22 @@
|
|||
@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
|
||||
<i class="c-sidebar-nav-icon bi bi-graph-up" style="line-height: 1;"></i> Laporan
|
||||
</a>
|
||||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
<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
|
||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Laporan Laba / Rugi
|
||||
</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
|
||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Laporan Penjualan
|
||||
</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
|
||||
<i class="c-sidebar-nav-icon bi bi-clipboard-data" style="line-height: 1;"></i> Laporan Pembelian
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -238,24 +235,19 @@
|
|||
@can('access_user_management')
|
||||
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown {{ request()->routeIs('roles*') ? 'c-show' : '' }}">
|
||||
<a class="c-sidebar-nav-link c-sidebar-nav-dropdown-toggle" href="#">
|
||||
<i class="c-sidebar-nav-icon bi bi-people" style="line-height: 1;"></i> User Management
|
||||
<i class="c-sidebar-nav-icon bi bi-people" style="line-height: 1;"></i> Manajemen Pengguna
|
||||
</a>
|
||||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('users.create') ? 'c-active' : '' }}" href="{{ route('users.create') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-person-plus" style="line-height: 1;"></i> Create User
|
||||
<i class="c-sidebar-nav-icon bi bi-person-plus" style="line-height: 1;"></i> Tambah Pengguna
|
||||
</a>
|
||||
</li>
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('users*') ? 'c-active' : '' }}" href="{{ route('users.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-person-lines-fill" style="line-height: 1;"></i> All Users
|
||||
<i class="c-sidebar-nav-icon bi bi-person-lines-fill" style="line-height: 1;"></i> Semua Pengguna
|
||||
</a>
|
||||
</li>
|
||||
{{-- <li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('roles*') ? 'c-active' : '' }}" href="{{ route('roles.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-key" style="line-height: 1;"></i> Roles & Permissions
|
||||
</a>
|
||||
</li> --}}
|
||||
</ul>
|
||||
</li>
|
||||
@endcan
|
||||
|
@ -263,13 +255,13 @@
|
|||
@can('access_currencies|access_settings')
|
||||
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown {{ request()->routeIs('currencies*') || request()->routeIs('units*') ? 'c-show' : '' }}">
|
||||
<a class="c-sidebar-nav-link c-sidebar-nav-dropdown-toggle" href="#">
|
||||
<i class="c-sidebar-nav-icon bi bi-gear" style="line-height: 1;"></i> Settings
|
||||
<i class="c-sidebar-nav-icon bi bi-gear" style="line-height: 1;"></i> Pengaturan
|
||||
</a>
|
||||
@can('access_units')
|
||||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('units*') ? 'c-active' : '' }}" href="{{ route('units.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-calculator" style="line-height: 1;"></i> Units
|
||||
<i class="c-sidebar-nav-icon bi bi-calculator" style="line-height: 1;"></i> Satuan
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -278,7 +270,7 @@
|
|||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('currencies*') ? 'c-active' : '' }}" href="{{ route('currencies.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-cash-stack" style="line-height: 1;"></i> Currencies
|
||||
<i class="c-sidebar-nav-icon bi bi-cash-stack" style="line-height: 1;"></i> Mata Uang
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -287,7 +279,7 @@
|
|||
<ul class="c-sidebar-nav-dropdown-items">
|
||||
<li class="c-sidebar-nav-item">
|
||||
<a class="c-sidebar-nav-link {{ request()->routeIs('settings*') ? 'c-active' : '' }}" href="{{ route('settings.index') }}">
|
||||
<i class="c-sidebar-nav-icon bi bi-sliders" style="line-height: 1;"></i> System Settings
|
||||
<i class="c-sidebar-nav-icon bi bi-sliders" style="line-height: 1;"></i> Pengaturan Sistem
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue