migrate to gtea from bistbucket
This commit is contained in:
0
Modules/WarehouseAddon/resources/views/.gitkeep
Normal file
0
Modules/WarehouseAddon/resources/views/.gitkeep
Normal file
@@ -0,0 +1,22 @@
|
||||
<div class="modal fade" id="multi-delete-modal" tabindex="-1" aria-labelledby="multi-delete-modal-label" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="text-end">
|
||||
<button type="button" class="btn-close m-3 mb-0" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body pt-0">
|
||||
<div class="delete-modal">
|
||||
<h5>{{ __('Are You Sure?') }}</h5>
|
||||
<p>{{ __("You want to delete everything!") }}</p>
|
||||
</div>
|
||||
<div class="multiple-button-group">
|
||||
<button class="btn reset-btn" data-bs-dismiss="modal">{{ __('Cancel') }}</button>
|
||||
<form id="dynamic-delete-form" method="POST" class="ajaxform_instant_reload">
|
||||
@csrf
|
||||
<button class="btn theme-btn submit-btn create-all-delete" type="submit">{{ __('Yes, Delete It!') }}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,60 @@
|
||||
<div class="modal fade common-validation-modal" id="warehouses-create-modal">
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h1 class="modal-title fs-5">{{ __('Create Warehouse') }}</h1>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="personal-info">
|
||||
<form action="{{ route('warehouse.warehouses.store') }}" method="post" class="ajaxform_instant_reload">
|
||||
@csrf
|
||||
<div class="row">
|
||||
@if((moduleCheck('MultiBranchAddon') && multibranch_active()) && !auth()->user()->active_branch_id)
|
||||
<div class="col-lg-6 mb-2">
|
||||
<label>{{ __('Branch') }}</label>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="branch_id" class="form-control table-select w-100 role">
|
||||
<option value=""> {{ __('Select one') }}</option>
|
||||
@foreach ($branches as $branch)
|
||||
<option value="{{ $branch->id }}"> {{ ucfirst($branch->name) }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="col-lg-6 mb-2">
|
||||
<label>{{ __('Name') }}</label>
|
||||
<input type="text" name="name" class="form-control" placeholder="{{ __('Enter name') }}" required>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<label>{{ __('Phone') }}</label>
|
||||
<input type="text" name="phone" class="form-control" placeholder="{{ __('Enter phone') }}">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<label>{{ __('Email') }}</label>
|
||||
<input type="text" name="email" class="form-control" placeholder="{{ __('Enter email') }}">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<label>{{ __('Address') }}</label>
|
||||
<input type="text" name="address" class="form-control" placeholder="{{ __('Enter address') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="button-group text-center mt-5">
|
||||
<button type="reset" class="theme-btn border-btn m-2">{{ __('Reset') }}</button>
|
||||
@usercan('warehouses.create')
|
||||
<button class="theme-btn m-2 submit-btn">{{ __('Save') }}</button>
|
||||
@endusercan
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,99 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
@usercan('warehouses.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>
|
||||
@if (moduleCheck('MultiBranchAddon') && multibranch_active())
|
||||
<th class="text-start">{{ __('Branch') }}</th>
|
||||
@endif
|
||||
<th class="text-start">{{ __('Name') }}</th>
|
||||
<th class="text-start">{{ __('Phone') }}</th>
|
||||
<th class="text-start">{{ __('Email') }}</th>
|
||||
<th class="text-start">{{ __('Address') }}</th>
|
||||
<th class="text-start">{{ __('Stock Qty') }}</th>
|
||||
<th class="text-start">{{ __('Stock Value') }}</th>
|
||||
<th>{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($warehouses as $warehouse)
|
||||
<tr>
|
||||
@usercan('warehouses.delete')
|
||||
<td class="w-60 checkbox">
|
||||
<input type="checkbox" name="ids[]" class="delete-checkbox-item multi-delete"
|
||||
value="{{ $warehouse->id }}">
|
||||
</td>
|
||||
@endusercan
|
||||
<td>{{ ($warehouses->currentPage() - 1) * $warehouses->perPage() + $loop->iteration }}</td>
|
||||
@if (moduleCheck('MultiBranchAddon') && multibranch_active())
|
||||
<td class="text-start">{{ $warehouse->branch->name ?? '' }}</td>
|
||||
@endif
|
||||
<td class="text-start">{{ $warehouse->name }}</td>
|
||||
<td class="text-start">{{ $warehouse->phone }}</td>
|
||||
<td class="text-start">{{ $warehouse->email }}</td>
|
||||
<td class="text-start">{{ $warehouse->address }}</td>
|
||||
<td class="text-start">{{ $warehouse->total_qty }}</td>
|
||||
<td class="text-start">{{ currency_format($warehouse->total_value, currency: business_currency()) }}</td>
|
||||
|
||||
<td class="d-print-none">
|
||||
<div class="dropdown table-action">
|
||||
<button type="button" data-bs-toggle="dropdown">
|
||||
<i class="far fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
|
||||
@usercan('warehouses.read')
|
||||
<li>
|
||||
<a href="#warehouse-view" class="warehouse-view-btn" data-bs-toggle="modal"
|
||||
data-warehouse-name="{{ $warehouse->name }}"
|
||||
data-branch-name="{{ $warehouse->branch->name ?? '' }}"
|
||||
data-warehouse-email="{{ $warehouse->email }}"
|
||||
data-warehouse-phone="{{ $warehouse->phone }}"
|
||||
data-warehouse-address="{{ $warehouse->address }}">
|
||||
<i class="fal fa-eye"></i>
|
||||
{{ __('View') }}
|
||||
</a>
|
||||
</li>
|
||||
@endusercan
|
||||
|
||||
@usercan('warehouses.update')
|
||||
<li>
|
||||
<a href="#warehouses-edit-modal" data-bs-toggle="modal" class="warehouse-edit-btn"
|
||||
data-url="{{ route('warehouse.warehouses.update', $warehouse->id) }}"
|
||||
data-name="{{ $warehouse->name }}"
|
||||
data-branch-id="{{ $warehouse->branch->id ?? '' }}"
|
||||
data-phone="{{ $warehouse->phone }}" data-email="{{ $warehouse->email }}"
|
||||
data-address="{{ $warehouse->address }}">
|
||||
<i class="fal fa-edit"></i></i>{{ __('Edit') }}
|
||||
</a>
|
||||
</li>
|
||||
@endusercan
|
||||
|
||||
@usercan('warehouses.delete')
|
||||
<li>
|
||||
<a href="{{ route('warehouse.warehouses.destroy', $warehouse->id) }}"
|
||||
class="confirm-action" data-method="DELETE">
|
||||
<i class="fal fa-trash-alt"></i>
|
||||
{{ __('Delete') }}
|
||||
</a>
|
||||
</li>
|
||||
@endusercan
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
{{ $warehouses->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
@@ -0,0 +1,63 @@
|
||||
<div class="modal fade common-validation-modal" id="warehouses-edit-modal">
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h1 class="modal-title fs-5">{{ __('Edit Warehouse') }}</h1>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="personal-info">
|
||||
<form action="" method="post" enctype="multipart/form-data" class="ajaxform_instant_reload warehouseUpdateForm">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="row">
|
||||
@if((moduleCheck('MultiBranchAddon') && multibranch_active()) && !auth()->user()->active_branch_id)
|
||||
<div class="col-lg-6 mb-2">
|
||||
<label>{{ __('Branch') }}</label>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="branch_id" id="branch_id" class="form-control table-select w-100 role">
|
||||
<option value=""> {{ __('Select one') }}</option>
|
||||
@foreach ($branches as $branch)
|
||||
<option value="{{ $branch->id }}"> {{ ucfirst($branch->name) }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="col-lg-6 mb-2">
|
||||
<label>{{ __('Name') }}</label>
|
||||
<input type="text" name="name" id="name" class="form-control" placeholder="{{ __('Enter name') }}" required>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<label>{{ __('Phone') }}</label>
|
||||
<input type="text" name="phone" id="phone" class="form-control" placeholder="{{ __('Enter phone') }}">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<label>{{ __('Email') }}</label>
|
||||
<input type="text" name="email" id="email" class="form-control" placeholder="{{ __('Enter email') }}">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<label>{{ __('Address') }}</label>
|
||||
<input type="text" name="address" id="address" class="form-control" placeholder="{{ __('Enter address') }}">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="button-group text-center mt-5">
|
||||
<a href="{{ route('warehouse.warehouses.index') }}" class="theme-btn border-btn m-2">{{ __('Cancel') }}</a>
|
||||
@usercan('warehouses.update')
|
||||
<button class="theme-btn m-2 submit-btn">{{ __('Save') }}</button>
|
||||
@endusercan
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,84 @@
|
||||
@extends('layouts.business.master')
|
||||
|
||||
@section('title')
|
||||
{{ __('Warehouses 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">
|
||||
<h4>{{ __('Warehouses List') }}</h4>
|
||||
@usercan('warehouses.create')
|
||||
<a type="button" href="#warehouses-create-modal" data-bs-toggle="modal" class="add-order-btn rounded-2"><i class="fas fa-plus-circle me-1"></i>{{ __('Add new') }}</a>
|
||||
@endusercan
|
||||
</div>
|
||||
|
||||
<div class="table-top-form p-16-0">
|
||||
<form action="{{ route('warehouse.warehouses.index') }}" method="GET" class="filter-form" table="#warehouses-data">
|
||||
|
||||
<div class="table-top-left d-flex gap-3 margin-lr-16 flex-wrap">
|
||||
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="per_page" class="form-control">
|
||||
<option @selected(request('per_page') == 20) value="20">{{ __('Show 20') }}</option>
|
||||
<option @selected(request('per_page') == 50) value="50">{{ __('Show 50') }}</option>
|
||||
<option @selected(request('per_page') == 100) value="100">{{ __('Show 100') }}</option>
|
||||
<option @selected(request('per_page') == 500) value="500">{{ __('Show 500') }}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
|
||||
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
|
||||
<div class="table-search position-relative">
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="branch_id" class="form-control">
|
||||
<option value="">{{ __('Select Branch') }}</option>
|
||||
@foreach ($branches as $branch)
|
||||
<option value="{{ $branch->id }}" @selected(request('branch_id') == $branch->id)>{{ $branch->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<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>
|
||||
</div>
|
||||
|
||||
<div class="delete-item delete-show d-none">
|
||||
<div class="delete-item-show">
|
||||
<p class="fw-bold"><span class="selected-count"></span> {{ __('items show') }}</p>
|
||||
<button data-bs-toggle="modal" class="trigger-modal" data-bs-target="#multi-delete-modal" data-url="{{ route('warehouse.warehouses.delete-all') }}">{{ __('Delete') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="warehouses-data">
|
||||
@include('warehouseaddon::warehouse.datas')
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('modal')
|
||||
@include('warehouseaddon::component.delete-modal')
|
||||
@include('warehouseaddon::warehouse.create')
|
||||
@include('warehouseaddon::warehouse.edit')
|
||||
@include('warehouseaddon::warehouse.view')
|
||||
@endpush
|
||||
@@ -0,0 +1,86 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> {{ __('SL') }}. </th>
|
||||
<th> {{ __('Image') }} </th>
|
||||
<th> {{ __('Product Name') }} </th>
|
||||
<th class="d-print-none"> {{ __('Code') }} </th>
|
||||
<th> {{ __('Brand') }} </th>
|
||||
<th> {{ __('Category') }} </th>
|
||||
<th> {{ __('Warehouse') }} </th>
|
||||
<th> {{ __('Unit') }} </th>
|
||||
<th> {{ __('Purchase price') }}</th>
|
||||
<th> {{ __('Sale price') }}</th>
|
||||
<th> {{ __('Stock') }}</th>
|
||||
<th> {{ __('Rack') }}</th>
|
||||
<th> {{ __('Shelf') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($products as $product)
|
||||
@php
|
||||
$nonEmptyStock = $product->stocks->firstWhere('productStock', '>', 0);
|
||||
$fallbackStock = $product->stocks->first(); // fallback if no stock > 0
|
||||
$stock = $nonEmptyStock ?? $fallbackStock;
|
||||
|
||||
$latestPurchasePrice = $stock?->productPurchasePrice ?? 0;
|
||||
$latestSalePrice = $stock?->productSalePrice ?? 0;
|
||||
$latestWholeSalePrice = $stock?->productWholeSalePrice ?? 0;
|
||||
$latestDealerPrice = $stock?->productDealerPrice ?? 0;
|
||||
$productStock = $product->total_stock ?? 0;
|
||||
@endphp
|
||||
<tr>
|
||||
|
||||
<td>{{ ($products->currentPage() - 1) * $products->perPage() + $loop->iteration }}</td>
|
||||
|
||||
<td><img src="{{ asset($product->productPicture ?? 'assets/images/logo/upload2.jpg') }}"
|
||||
alt="Img" class="table-product-img"></td>
|
||||
|
||||
<td class="d-print-none">
|
||||
@php
|
||||
$stocks = $product->stocks->map(function ($batch) use ($product) {
|
||||
$hasWeight = $product->category ? $product->category->variationWeight : false;
|
||||
return [
|
||||
'id' => $batch->id,
|
||||
'batch_no' => $batch->batch_no,
|
||||
'expire_date' => $batch->expire_date ? formatted_date($batch->expire_date) : 'N/A',
|
||||
'productStock' => $batch->productStock ?? 0,
|
||||
'productSalePrice' => $batch->productSalePrice ?? 0,
|
||||
'productPurchasePrice' => $batch->productPurchasePrice ?? 0,
|
||||
'productWholeSalePrice' => $batch->productWholeSalePrice ?? 0,
|
||||
'productDealerPrice' => $batch->productDealerPrice ?? 0,
|
||||
'warehouse' => $batch->warehouse->name ?? '',
|
||||
'rack' => $product->rack->name ?? '',
|
||||
'shelf' => $product->shelf->name ?? '',
|
||||
'weight' => $hasWeight ? $product->weight : null,
|
||||
'showWeight' => $hasWeight ? 1 : 0,
|
||||
];
|
||||
});
|
||||
@endphp
|
||||
<a href="javascript:void(0);" class="stock-view-data text-primary"
|
||||
data-stocks='@json($stocks)'>
|
||||
{{ $product->productName }}
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<td>{{ $product->productCode }}</td>
|
||||
<td>{{ $product->brand->brandName ?? '' }}</td>
|
||||
<td>{{ $product->category->categoryName ?? '' }}</td>
|
||||
<td>{{ $fallbackStock->warehouse->name ?? '' }}</td>
|
||||
<td>{{ $product->unit->unitName ?? '' }}</td>
|
||||
<td>{{ currency_format($latestPurchasePrice, currency: business_currency()) }}</td>
|
||||
<td>{{ currency_format($latestSalePrice, currency: business_currency()) }}</td>
|
||||
<td class="{{ $product->total_stock <= $product->alert_qty ? 'text-danger' : 'text-success' }}">
|
||||
{{ $product->total_stock }}</td>
|
||||
<td>{{ $product->rack->name ?? '' }}</td>
|
||||
<td>{{ $product->shelf->name ?? '' }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
{{ $products->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
@@ -0,0 +1,74 @@
|
||||
@extends('layouts.business.master')
|
||||
|
||||
@section('title')
|
||||
{{ __('Product List') }}
|
||||
@endsection
|
||||
|
||||
@php
|
||||
$modules = product_setting()->modules ?? [];
|
||||
@endphp
|
||||
|
||||
@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">
|
||||
<h4>{{ __('Product List') }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="table-top-form p-16-0">
|
||||
<form action="{{ route('warehouse.warehouses.product') }}" method="GET" class="filter-form" table="#product-data">
|
||||
|
||||
<div class="table-top-left d-flex gap-3 margin-l-16">
|
||||
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="per_page" class="form-control">
|
||||
<option @selected(request('per_page') == 20) value="20">{{ __('Show 20') }}</option>
|
||||
<option @selected(request('per_page') == 50) value="50">{{ __('Show 50') }}</option>
|
||||
<option @selected(request('per_page') == 100) value="100">{{ __('Show 100') }}</option>
|
||||
<option @selected(request('per_page') == 500) 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>
|
||||
</div>
|
||||
|
||||
<div id="product-data">
|
||||
@include('warehouseaddon::warehouse.products.datas')
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@usercan('stocks.price')
|
||||
<input type="hidden" id="canStockPrice" value="1">
|
||||
@endusercan
|
||||
<input type="hidden" id="canStockPrice" value="0">
|
||||
<input type="hidden" id="show_expire_date" value="{{ is_module_enabled($modules, 'show_expire_date') ? 1 : 0 }}">
|
||||
<input type="hidden" id="warehouse_module_check" value="{{ moduleCheck('WarehouseAddon') ? 1 : 0 }}">
|
||||
<input type="hidden" id="show_weight" value="{{ is_module_enabled($modules, 'show_weight') ? 1 : 0 }}">
|
||||
<input type="hidden" id="show_warehouse" value="{{ is_module_enabled($modules, 'show_warehouse') ? 1 : 0 }}">
|
||||
<input type="hidden" id="show_rack" value="{{ is_module_enabled($modules, 'show_rack') ? 1 : 0 }}">
|
||||
<input type="hidden" id="show_shelf" value="{{ is_module_enabled($modules, 'show_shelf') ? 1 : 0 }}">
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@push('modal')
|
||||
@include('warehouseaddon::warehouse.products.stock-modal')
|
||||
@endpush
|
||||
@@ -0,0 +1,53 @@
|
||||
<div class="modal fade p-0" id="stock-modal-view" >
|
||||
<div class="modal-dialog modal-dialog-centered modal-xl">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h1 class="modal-title fs-5">{{ __('View Stock') }}</h1>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body order-form-section">
|
||||
<div class="costing-list">
|
||||
<div class="table-responsive mt-3">
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('Batch') }}</th>
|
||||
<th>{{ __('Stock') }}</th>
|
||||
@usercan('stocks.price')
|
||||
<th>{{ __('Purchase Price') }}</th>
|
||||
@endusercan
|
||||
<th>{{ __('MRP') }}</th>
|
||||
<th>{{ __('WholeSale Price') }}</th>
|
||||
<th>{{ __('Dealer Price') }}</th>
|
||||
@if (is_module_enabled($modules, 'show_expire_date'))
|
||||
<th>{{ __('Expire Date') }}</th>
|
||||
@endif
|
||||
@if (moduleCheck('WarehouseAddon') && is_module_enabled($modules, 'show_warehouse'))
|
||||
<th>{{ __('Warehouse') }}</th>
|
||||
@endif
|
||||
@if (is_module_enabled($modules, 'show_weight'))
|
||||
<th id="weight-header" class="d-none">{{ __('Weight') }}</th>
|
||||
@endif
|
||||
@if (is_module_enabled($modules, 'show_rack'))
|
||||
<th>{{ __('Rack') }}</th>
|
||||
@endif
|
||||
@if (is_module_enabled($modules, 'show_shelf'))
|
||||
<th>{{ __('Shelf') }}</th>
|
||||
@endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="stocks-table-data">
|
||||
{{-- Filled via jQuery --}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
<div class="modal fade p-0" id="warehouse-view">
|
||||
<div class="modal-dialog modal-dialog-centered modal-md">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h1 class="modal-title fs-5">{{ __('View') }}</h1>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body order-form-section">
|
||||
<div class="">
|
||||
<table class="info-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ __('Name') }}</td>
|
||||
<td>:</td>
|
||||
<td id="warehouseName"></td>
|
||||
</tr>
|
||||
|
||||
@if(auth()->user()->accessToMultiBranch())
|
||||
<tr>
|
||||
<td>{{ __('Branch') }}</td>
|
||||
<td>:</td>
|
||||
<td id="branchName"></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Phone') }}</td>
|
||||
<td>:</td>
|
||||
<td id="warehousePhone"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('Email') }}</td>
|
||||
<td>:</td>
|
||||
<td id="warehouseEmail"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('Address') }}</td>
|
||||
<td>:</td>
|
||||
<td id="warehouseAddress"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user