migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
<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>{{ __('Customer Name') }}</th>
|
||||
<th>{{ __('Target Amount') }}</th>
|
||||
<th>{{ __('Duration') }}</th>
|
||||
<th>{{ __('Sales') }}</th>
|
||||
<th>{{ __('Grade') }}</th>
|
||||
<th>{{ __('Commission') }}</th>
|
||||
<th>{{ __('Progress') }}</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>Kristin Watson</td>
|
||||
<td>$50,00,000</td>
|
||||
<td>1 Month</td>
|
||||
<td>
|
||||
$49,70,750
|
||||
</td>
|
||||
<td>B</td>
|
||||
<td>3%</td>
|
||||
<td>95%</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>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,138 @@
|
||||
@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>{{ __('Sales Commission') }}</h4>
|
||||
<a type="button"
|
||||
class="add-order-btn rounded-2"
|
||||
data-bs-toggle="modal"
|
||||
data-bs-target="#addSalesCommissionModal">
|
||||
<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">{{ __('Sales 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::sale-commissions.datas')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@push('modal')
|
||||
<div class="modal fade" id="addSalesCommissionModal" 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 Sales 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>{{__('Employee')}}</label>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="type" id="plan-type" required class="form-control table-select w-100">
|
||||
<option value="">{{ __('Select a employee') }}</option>
|
||||
<option value="employee"> {{__('employee')}}</option>
|
||||
<option value="employee"> {{__('employee')}}</option>
|
||||
<option value="employee"> {{__('employee')}}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label>{{ __('Sales Target') }}</label>
|
||||
<input type="text" name="short_desc" class="form-control" placeholder="{{ __('Ex: $100,00,0000') }}">
|
||||
</div>
|
||||
<div>
|
||||
<label>{{ __('Duration') }}</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="month"> {{__('Month')}}</option>
|
||||
<option value="year"> {{__('Year')}}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
</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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user