migrate to gtea from bistbucket

This commit is contained in:
2026-03-15 17:08:23 +07:00
commit 129ca2260c
3716 changed files with 566316 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
<div class="responsive-table m-0">
<table class="table" id="datatable">
<thead>
<tr>
@usercan('categories.delete')
<th class="w-60">
<div class="d-flex align-items-center gap-3">
<input type="checkbox" class="select-all-delete multi-delete">
</div>
</th>
@endusercan
<th>{{ __('SL') }}.</th>
<th>{{ __('Grade') }}</th>
<th>{{ __('Commission ') }}</th>
<th>{{ __('Sales Target') }}</th>
<th>{{ __('Status') }}</th>
<th>{{ __('Action') }}</th>
</tr>
</thead>
<tbody id="business-category-data">
<tr>
<td class="w-60 checkbox">
<input type="checkbox" name="ids[]" class="delete-checkbox-item multi-delete"
value="">
</td>
<td>{{__('1') }}</td>
<td>{{__('A') }}</td>
<td>{{__('10%') }}</td>
<td>{{__('100,00,0000') }}</td>
<td>
<label class="switch m-0">
<input type="checkbox" name="allow_multibranch" class="change-text">
<span class="slider round"></span>
</label>
</td>
<td>
<div class="dropdown table-action">
<button type="button" data-bs-toggle="dropdown">
<i class="far fa-ellipsis-v"></i>
</button>
<ul class="dropdown-menu">
<li>
<a href="#" data-bs-toggle="modal">
<i class="fal fa-eye"></i>
{{ __('View') }}
</a>
</li>
<li>
<a href="#">
<i class="fal fa-edit"></i>
{{ __('Edit') }}
</a>
</li>
<li>
<a href="#" class="confirm-action">
<i class="fal fa-trash-alt"></i>
{{ __('Delete') }}
</a>
</li>
</ul>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="mt-3">
</div>

View File

@@ -0,0 +1,44 @@
<table class="table table-bordered">
<thead>
<tr>
<th class="text-start">{{ __('Assets') }}</th>
<th class="text-end">{{ __('Payment In') }}</th>
</tr>
</thead>
<tbody id="">
@foreach ($asset_datas as $data)
@php
$product_asset_value = 0;
if ($data->product_type == 'single' || $data->product_type == 'variant') {
foreach ($data->stocks as $stock) {
$product_asset_value += $stock->productStock * $stock->productPurchasePrice;
}
} elseif ($data->product_type == 'combo') {
foreach ($data->combo_products as $combo_product) {
if ($combo_product->stock) {
$product_asset_value +=
$combo_product->stock->productStock * $combo_product->purchase_price;
}
}
}
@endphp
<tr>
<td class="text-start loss-profit-tbody">
{{ $data->source == 'product' ? $data->productName : $data->name }}</td>
<td class="text-end loss-profit-tbody">
{{ $data->source == 'product'
? currency_format($product_asset_value, currency: business_currency())
: currency_format($data->balance, currency: business_currency()) }}
</td>
</tr>
@endforeach
@if ($asset_datas->count() > 0)
<tr class="fw-bold">
<td colspan="1" class="text-start bottom-net-profit">{{ __('Total') }}</td>
<td class="text-end bottom-net-profit">
{{ currency_format($total_asset, currency: business_currency()) }}</td>
</tr>
@endif
</tbody>
</table>

View File

@@ -0,0 +1,130 @@
@extends('layouts.business.master')
@section('title')
{{ __('Commission List') }}
@endsection
@section('main_content')
<div class="erp-table-section">
<div class="container-fluid">
<div class="card">
<div class="card-bodys">
<div class="table-header p-16 d-print-none">
<h4>{{ __('Set Commission') }}</h4>
<a type="button"
class="add-order-btn rounded-2"
data-bs-toggle="modal"
data-bs-target="#addSetCommissionModal">
<i class="fas fa-plus-circle me-1"></i> {{ __("Add Target") }}
</a>
</div>
<div class="table-header justify-content-center border-0 d-none d-block d-print-block text-center">
@include('business::print.header')
<h4 class="mt-2">{{ __('Set Commission') }}</h4>
</div>
{{-- search bar --}}
<div class="loss-profit-container d-print-none">
<div class="table-top-form">
<form action="{{ route('business.balance-sheet.index') }}" method="GET"
class="filter-form" table="#set-commission-data">
<div class="d-flex align-items-center gap-3 flex-wrap table-top-left">
<div class="gpt-up-down-arrow position-relative">
<select name="per_page" class="form-control">
<option value="20">{{ __('Show 20') }}</option>
<option value="50">{{ __('Show 50') }}</option>
<option value="100">{{ __('Show 100') }}</option>
<option value="500">{{ __('Show 500') }}</option>
</select>
<span></span>
</div>
<div class="table-search position-relative">
<input type="text" name="search" class="form-control" placeholder="{{ __('Search...') }}" value="{{ request('search') }}">
<span class="position-absolute">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M14.582 14.582L18.332 18.332" stroke="#4D4D4D" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M16.668 9.16797C16.668 5.02584 13.3101 1.66797 9.16797 1.66797C5.02584 1.66797 1.66797 5.02584 1.66797 9.16797C1.66797 13.3101 5.02584 16.668 9.16797 16.668C13.3101 16.668 16.668 13.3101 16.668 9.16797Z" stroke="#4D4D4D" stroke-width="1.25" stroke-linejoin="round"/>
</svg>
</span>
</div>
</div>
</form>
<div class="table-top-btn-group d-print-none p-2">
<ul>
<li>
<a href="{{ route('business.balance-sheet.excel') }}">
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
</a>
</li>
<li>
<a href="{{ route('business.balance-sheet.csv') }}">
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
</a>
</li>
<li>
<a target="blank" href="{{ route('business.balance-sheet.pdf') }}">
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
</a>
</li>
<li>
<a onclick="window.print()" class="print-window">
<img src="{{ asset('assets/images/logo/printer.svg') }}" alt="">
</a>
</li>
</ul>
</div>
</div>
</div>
<div id="set-commission-data">
@include('business::commissions.datas')
</div>
</div>
</div>
</div>
@endsection
@push('modal')
<div class="modal fade" id="addSetCommissionModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-md modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{{ __("Add Set Commission") }}</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<div class="order-form-section">
<div class="row">
<div>
<label>{{ __('Grade ') }}</label>
<input type="text" name="short_desc" class="form-control" placeholder="{{ __('Enter grade name') }}">
</div>
<div class="">
<label>{{ __('Commission') }}</label>
<div class="d-flex align-items-center text-select-container ">
<input type="text" name="subscriptionName" required class="form-control" placeholder="{{ __('Ex: 5') }}">
<div class="gpt-up-down-arrow position-relative">
<select name="type" id="plan-type" required class="form-control table-select w-100">
<option value="percentage"> {{__('Percentage')}}</option>
<option value="percentage"> {{__('Percentage ')}}</option>
</select>
<span></span>
</div>
</div>
</div>
<div>
<label>{{ __('Sales Target') }}</label>
<input type="text" name="short_desc" class="form-control" placeholder="{{ __('Ex: $100,00,0000') }}">
</div>
</div>
</div>
</div>
<div class="button-group text-center">
<button type="reset" class="theme-btn border-btn m-2">{{ __('Cancel') }}</button>
<button class="theme-btn m-2 submit-btn">{{ __('Send') }}</button>
</div>
</div>
</div>
</div>
@endpush

View File

@@ -0,0 +1,76 @@
@extends('layouts.business.pdf.pdf_layout')
@section('pdf_title')
<div class="table-header justify-content-center border-0 d-print-block text-center">
@include('business::print.header')
<h4 style="text-align: center; margin: 0; padding: 0; font-size: 16px;">
{{ __('Balance Sheet Report') }}
</h4>
</div>
@endsection
@section('pdf_content')
<table width="100%" cellpadding="6" cellspacing="0"
style="border-collapse: collapse; border:1px solid gainsboro; font-size:12px;">
<thead>
<tr style="background-color: #C52127; color:white;">
<th style="font-size:12px; border:1px solid gainsboro; color: white">
{{ __('Assets') }}
</th>
<th style="font-size:12px; border:1px solid gainsboro; color: white">
{{ __('Payment In') }}
</th>
</tr>
</thead>
<tbody>
@foreach($asset_datas as $data)
@php
$product_asset_value = 0;
if($data->source === 'product') {
if($data->product_type == 'single' || $data->product_type == 'variant') {
foreach($data->stocks as $stock) {
$product_asset_value += $stock->productStock * $stock->productPurchasePrice;
}
}
elseif($data->product_type == 'combo') {
foreach($data->combo_products as $combo_product) {
if($combo_product->stock) {
$product_asset_value += $combo_product->stock->productStock * $combo_product->purchase_price;
}
}
}
}
@endphp
<tr style="background-color: {{ $loop->even ? '#F5F5F5' : '#FFFFFF' }};">
<td style="border:1px solid gainsboro; text-align:center;">
{{ $data->source == 'product' ? $data->productName : $data->name }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">
@if($data->source == 'product')
{{ currency_format($product_asset_value, currency: business_currency()) }}
@else
{{ currency_format($data->balance, currency: business_currency()) }}
@endif
</td>
</tr>
@endforeach
</tbody>
@if ($asset_datas->count() > 0)
<tr style="background-color:#C52127; color:white; font-weight:bold;">
<td style="border:1px solid gainsboro; text-align:center; color: white">
{{ __('Total') }}
</td>
<td style="border:1px solid gainsboro; text-align:center; color: white; font-weight: 600;">
{{ currency_format($total_asset, currency: business_currency()) }}
</td>
</tr>
@endif
</table>
@endsection