migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<div class="modal fade common-validation-modal" id="branches-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 Branch') }}</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('multibranch.branches.store') }}" method="post" enctype="multipart/form-data"
|
||||
class="ajaxform_instant_reload">
|
||||
@csrf
|
||||
<div class="row">
|
||||
<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 mb-2">
|
||||
<label>{{ __('Phone') }}</label>
|
||||
<input type="number" name="phone" class="form-control" placeholder="{{ __('Enter phone') }}">
|
||||
</div>
|
||||
<div class="col-lg-6 mb-2">
|
||||
<label>{{ __('Email') }}</label>
|
||||
<input type="email" name="email" class="form-control" placeholder="{{ __('Enter email') }}">
|
||||
</div>
|
||||
<div class="col-lg-6 mb-2">
|
||||
<label>{{ __('Address') }}</label>
|
||||
<input type="text" name="address" class="form-control" placeholder="{{ __('Enter address') }}">
|
||||
</div>
|
||||
<div class="col-lg-6 mb-2">
|
||||
<label>{{ __('Opening Balance') }}</label>
|
||||
<input type="number" name="branchOpeningBalance" class="form-control" placeholder="{{ __('Enter balance') }}">
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<label>{{__('Description')}}</label>
|
||||
<textarea name="description" class="form-control" placeholder="{{ __('Enter description') }}"></textarea>
|
||||
</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('branches.create')
|
||||
<button class="theme-btn m-2 submit-btn">{{ __('Save') }}</button>
|
||||
@endusercan
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,123 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
@usercan('branches.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 class="text-start">{{ __('Name') }}</th>
|
||||
<th class="text-start">{{ __('Phone') }}</th>
|
||||
<th class="text-start">{{ __('Email') }}</th>
|
||||
<th class="text-start">{{ __('Address') }}</th>
|
||||
<th>{{ __('Status') }}</th>
|
||||
<th>{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($branches as $branch)
|
||||
<tr>
|
||||
@usercan('branches.delete')
|
||||
<td class="w-60 checkbox">
|
||||
<input type="checkbox" name="ids[]" class="delete-checkbox-item multi-delete"
|
||||
value="{{ $branch->id }}">
|
||||
</td>
|
||||
@endusercan
|
||||
<td>{{ ($branches->currentPage() - 1) * $branches->perPage() + $loop->iteration }}</td>
|
||||
<td class="text-start">
|
||||
<a href="{{ route('multibranch.switch-branch', $branch->id) }}" class="text-primary fw-bold">
|
||||
{{ $branch->name }}
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-start">{{ $branch->phone }}</td>
|
||||
<td class="text-start">{{ $branch->email }}</td>
|
||||
<td class="text-start">{{ $branch->address }}</td>
|
||||
<td>
|
||||
<label class="switch">
|
||||
<input type="checkbox" {{ $branch->status == 1 ? 'checked' : '' }} class="status"
|
||||
data-url="{{ route('multibranch.branches.status', $branch->id) }}">
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
</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">
|
||||
<li>
|
||||
@usercan('branches.update')
|
||||
<a href="#branches-edit-modal" data-bs-toggle="modal" class="branches-edit-btn"
|
||||
data-url="{{ route('multibranch.branches.update', $branch->id) }}"
|
||||
data-name="{{ $branch->name }}" data-phone="{{ $branch->phone }}"
|
||||
data-email="{{ $branch->email }}" data-address="{{ $branch->address }}"
|
||||
data-opening-balance="{{ $branch->branchOpeningBalance }}"
|
||||
data-remaining-balance="{{ $branch->branchRemainingBalance }}"
|
||||
data-desc="{{ $branch->description }}">
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M12.1606 3.73679L13.2119 2.68547C13.7925 2.10484 14.7339 2.10484 15.3145 2.68547C15.8951 3.2661 15.8951 4.20748 15.3145 4.78811L14.2632 5.83943M12.1606 3.73679L8.23515 7.66222C7.4512 8.4462 7.05919 8.83815 6.79228 9.31582C6.52535 9.7935 6.2568 10.9214 6 12C7.07857 11.7432 8.2065 11.4746 8.68418 11.2077C9.16185 10.9408 9.5538 10.5488 10.3378 9.76485L14.2632 5.83943M12.1606 3.73679L14.2632 5.83943"
|
||||
stroke="#4B5563" stroke-width="1.2" stroke-linecap="round"
|
||||
stroke-linejoin="round" />
|
||||
<path
|
||||
d="M15.75 9C15.75 12.1819 15.75 13.773 14.7615 14.7615C13.773 15.75 12.1819 15.75 9 15.75C5.81802 15.75 4.22703 15.75 3.23851 14.7615C2.25 13.773 2.25 12.1819 2.25 9C2.25 5.81802 2.25 4.22703 3.23851 3.23851C4.22703 2.25 5.81802 2.25 9 2.25"
|
||||
stroke="#4B5563" stroke-width="1.2" stroke-linecap="round" />
|
||||
</svg>
|
||||
{{ __('Edit') }}
|
||||
</a>
|
||||
@endusercan
|
||||
</li>
|
||||
<li>
|
||||
@usercan('branches.update')
|
||||
<a href="{{ route('multibranch.switch-branch', $branch->id) }}"
|
||||
class="branches-edit-btn">
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M5.99902 5.9018V5.51033C5.99902 4.43153 6.76472 3.50454 7.82411 3.30081L13.0741 2.2912C14.4618 2.02435 15.749 3.08765 15.749 4.50071V13.5C15.749 14.9131 14.4618 15.9763 13.0741 15.7095L7.82411 14.6999C6.76473 14.4962 5.99902 13.5692 5.99902 12.4904V12.0989"
|
||||
stroke="#4B5563" stroke-width="1.25" stroke-linecap="square" />
|
||||
<path d="M9.74899 11.25L11.999 8.99998L9.74899 6.75M11.624 8.99998H2.24902"
|
||||
stroke="#4B5563" stroke-width="1.25" stroke-linecap="square" />
|
||||
</svg>
|
||||
{{ __('Login') }}
|
||||
</a>
|
||||
@endusercan
|
||||
</li>
|
||||
<li>
|
||||
@usercan('branches.delete')
|
||||
<a href="{{ route('multibranch.branches.destroy', $branch->id) }}"
|
||||
class="confirm-action" data-method="DELETE">
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M14.625 4.125L14.1602 11.6438C14.0414 13.5648 13.9821 14.5253 13.5006 15.2159C13.2625 15.5573 12.956 15.8455 12.6005 16.062C11.8816 16.5 10.9192 16.5 8.99452 16.5C7.06734 16.5 6.10372 16.5 5.38429 16.0612C5.0286 15.8443 4.722 15.5556 4.48401 15.2136C4.00266 14.5219 3.94459 13.5601 3.82846 11.6364L3.375 4.125"
|
||||
stroke="#4B5563" stroke-width="1.2" stroke-linecap="round" />
|
||||
<path d="M6.75 8.80078H11.25" stroke="#4B5563" stroke-width="1.2"
|
||||
stroke-linecap="round" />
|
||||
<path d="M7.875 11.7422H10.125" stroke="#4B5563" stroke-width="1.2"
|
||||
stroke-linecap="round" />
|
||||
<path
|
||||
d="M2.25 4.125H15.75M12.0416 4.125L11.5297 3.0688C11.1896 2.3672 11.0195 2.01639 10.7261 1.79761C10.6611 1.74908 10.5922 1.7059 10.5201 1.66852C10.1953 1.5 9.80542 1.5 9.02572 1.5C8.22645 1.5 7.82685 1.5 7.49662 1.67559C7.42343 1.71451 7.35359 1.75943 7.28783 1.80988C6.99109 2.03753 6.82533 2.40116 6.49381 3.12844L6.03955 4.125"
|
||||
stroke="#4B5563" stroke-width="1.2" stroke-linecap="round" />
|
||||
</svg>
|
||||
{{ __('Delete') }}
|
||||
</a>
|
||||
@endusercan
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
{{ $branches->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
@@ -0,0 +1,54 @@
|
||||
<div class="modal fade common-validation-modal" id="branches-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 Branch') }}</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 branchUpdateForm">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="row">
|
||||
<div class="col-lg-6 mb-2">
|
||||
<label>{{ __('Name') }}</label>
|
||||
<input type="text" name="name" id="brnch_name" class="form-control" placeholder="{{ __('Enter name') }}" required>
|
||||
</div>
|
||||
<div class="col-lg-6 mb-2">
|
||||
<label>{{ __('Phone') }}</label>
|
||||
<input type="number" name="phone" id="brnch_phone" class="form-control" placeholder="{{ __('Enter phone') }}">
|
||||
</div>
|
||||
<div class="col-lg-6 mb-2">
|
||||
<label>{{ __('Email') }}</label>
|
||||
<input type="email" name="email" id="brnch_email" class="form-control" placeholder="{{ __('Enter email') }}">
|
||||
</div>
|
||||
<div class="col-lg-6 mb-2">
|
||||
<label>{{ __('Address') }}</label>
|
||||
<input type="text" name="address" id="brnch_address" class="form-control" placeholder="{{ __('Enter address') }}">
|
||||
</div>
|
||||
<div class="col-lg-6 mb-2">
|
||||
<label>{{ __('Opening Balance') }}</label>
|
||||
<input type="number" name="branchOpeningBalance" id="opening_balance" class="form-control" placeholder="{{ __('Enter balance') }}">
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<label>{{__('Description')}}</label>
|
||||
<textarea name="description" id="brnch_desc" class="form-control" placeholder="{{ __('Enter description') }}"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="button-group text-center mt-5">
|
||||
<a href="{{ route('multibranch.branches.index') }}" class="theme-btn border-btn m-2">{{ __('Cancel') }}</a>
|
||||
@usercan('branches.update')
|
||||
<button class="theme-btn m-2 submit-btn">{{ __('Save') }}</button>
|
||||
@endusercan
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,104 @@
|
||||
@extends('layouts.business.master')
|
||||
|
||||
@section('title')
|
||||
{{ __('Branch List') }}
|
||||
@endsection
|
||||
|
||||
@section('main_content')
|
||||
<div class="erp-table-section">
|
||||
<div class="container-fluid">
|
||||
@if (session('error'))
|
||||
<div class="alert alert-dismissible fade show text-center mb-3 text-white gradient-alert" role="alert">
|
||||
<b class="text-light">{{__('Note')}}:</b> {{ session('error') }}
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="alert-box" id="alertBox">
|
||||
<ul class="alert-list">
|
||||
<li>
|
||||
<svg width="7" height="7" viewBox="0 0 7 7" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M3.50488 6.5957C2.98926 6.5957 2.51838 6.46999 2.09224 6.21857C1.66611 5.96289 1.3252 5.62198 1.06951 5.19584C0.818093 4.76971 0.692383 4.29883 0.692383 3.7832C0.692383 3.26331 0.818093 2.79243 1.06951 2.37056C1.3252 1.94442 1.66611 1.60564 2.09224 1.35422C2.51838 1.09854 2.98926 0.970703 3.50488 0.970703C4.02477 0.970703 4.49565 1.09854 4.91753 1.35422C5.34366 1.60564 5.68244 1.94442 5.93386 2.37056C6.18954 2.79243 6.31738 3.26331 6.31738 3.7832C6.31738 4.29883 6.18954 4.76971 5.93386 5.19584C5.68244 5.62198 5.34366 5.96289 4.91753 6.21857C4.49565 6.46999 4.02477 6.5957 3.50488 6.5957Z" fill="black"/>
|
||||
</svg>
|
||||
{{__('Previously, you didn’t have a branch section. So, when you create your first branch, another branch will be created automatically using your company/business name.')}} <br>
|
||||
<i><span class="fw-bold">{{__('Example')}}:</span> {{__('If your company/business name is')}} <span class="fw-bold">{{__('Acnoo')}},</span> {{__('when you create your first branch, another branch will automatically be created with the name')}} <span class="fw-bold">{{__('Acnoo')}}.</span></i>
|
||||
</li>
|
||||
<li>
|
||||
<svg width="7" height="7" viewBox="0 0 7 7" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M3.50488 6.5957C2.98926 6.5957 2.51838 6.46999 2.09224 6.21857C1.66611 5.96289 1.3252 5.62198 1.06951 5.19584C0.818093 4.76971 0.692383 4.29883 0.692383 3.7832C0.692383 3.26331 0.818093 2.79243 1.06951 2.37056C1.3252 1.94442 1.66611 1.60564 2.09224 1.35422C2.51838 1.09854 2.98926 0.970703 3.50488 0.970703C4.02477 0.970703 4.49565 1.09854 4.91753 1.35422C5.34366 1.60564 5.68244 1.94442 5.93386 2.37056C6.18954 2.79243 6.31738 3.26331 6.31738 3.7832C6.31738 4.29883 6.18954 4.76971 5.93386 5.19584C5.68244 5.62198 5.34366 5.96289 4.91753 6.21857C4.49565 6.46999 4.02477 6.5957 3.50488 6.5957Z" fill="black"/>
|
||||
</svg>
|
||||
{{__('All your previous data will be assigned to the automatically created branch')}} (<span class="fw-bold">{{__('Acnoo')}}</span> {{__('in this example')}}).
|
||||
</li>
|
||||
<li>
|
||||
<svg width="7" height="7" viewBox="0 0 7 7" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M3.50488 6.5957C2.98926 6.5957 2.51838 6.46999 2.09224 6.21857C1.66611 5.96289 1.3252 5.62198 1.06951 5.19584C0.818093 4.76971 0.692383 4.29883 0.692383 3.7832C0.692383 3.26331 0.818093 2.79243 1.06951 2.37056C1.3252 1.94442 1.66611 1.60564 2.09224 1.35422C2.51838 1.09854 2.98926 0.970703 3.50488 0.970703C4.02477 0.970703 4.49565 1.09854 4.91753 1.35422C5.34366 1.60564 5.68244 1.94442 5.93386 2.37056C6.18954 2.79243 6.31738 3.26331 6.31738 3.7832C6.31738 4.29883 6.18954 4.76971 5.93386 5.19584C5.68244 5.62198 5.34366 5.96289 4.91753 6.21857C4.49565 6.46999 4.02477 6.5957 3.50488 6.5957Z" fill="black"/>
|
||||
</svg>
|
||||
{{__('You cannot delete the automatically created branch. This is because if a branch is deleted, it is removed from every section, making it impossible to filter branch data. Therefore, the automatically created branch cannot be deleted.')}}</li>
|
||||
</ul>
|
||||
<span class="alert-close-btn">×</span>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-bodys">
|
||||
<div class="table-header p-16">
|
||||
<h4>{{ __('Branch List') }}</h4>
|
||||
<a type="button" href="#branches-create-modal" data-bs-toggle="modal"
|
||||
class="add-order-btn rounded-2 {{ Route::is('multibranch.branches.create') ? 'active' : '' }}"
|
||||
@usercan('branches.create')
|
||||
class="btn btn-primary"><i class="fas fa-plus-circle me-1"></i>{{ __('Add new Branch') }}</a>
|
||||
@endusercan
|
||||
</div>
|
||||
|
||||
<div class="table-top-form p-16-0">
|
||||
<form action="{{ route('multibranch.branches.index') }}" method="GET" class="filter-form" table="#branches-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 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('multibranch.branches.delete-all') }}">{{ __('Delete') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="branches-data">
|
||||
@include('multibranchaddon::branches.datas')
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('modal')
|
||||
@include('multibranchaddon::component.delete-modal')
|
||||
@include('multibranchaddon::branches.create')
|
||||
@include('multibranchaddon::branches.edit')
|
||||
@endpush
|
||||
|
||||
|
||||
@push('js')
|
||||
<script src="{{ asset('assets/js/custom/custom-alart.js') }}"></script>
|
||||
@endpush
|
||||
@@ -0,0 +1,215 @@
|
||||
@extends('layouts.business.master')
|
||||
|
||||
@section('title')
|
||||
{{ __('Overview') }}
|
||||
@endsection
|
||||
|
||||
@section('main_content')
|
||||
<div class="container-fluid m-h-100">
|
||||
<div class="row gpt-dashboard-chart mb-30">
|
||||
<div class="col-md-12 col-lg-12 col-xl-8">
|
||||
<div class="card new-card dashboard-card border-0 p-0">
|
||||
<div class="dashboard-chart">
|
||||
<h4>{{ __('Revenue Statistic') }}</h4>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select class="form-control overview-year">
|
||||
@for ($i = date('Y'); $i >= 2022; $i--)
|
||||
<option @selected($i == date('Y')) value="{{ $i }}">{{ $i }}
|
||||
</option>
|
||||
@endfor
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body pt-0">
|
||||
<div class="d-flex align-items-center justify-content-center gap-3 pb-2">
|
||||
<div class="d-flex align-items-center gap-1">
|
||||
<div class="income-bulet2"></div>
|
||||
<p>{{__('Profit')}}: <strong class="profit-value">0</strong></p>
|
||||
</div>
|
||||
<div class="d-flex align-items-center gap-1">
|
||||
<div class="expense-bulet2"></div>
|
||||
<p>{{__('Loss')}}: <strong class="loss-value">0</strong></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<canvas id="branchRevenueChart"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-12 col-xl-4">
|
||||
<div class="card new-card dashboard-card border-0 p-0 statement-container">
|
||||
<div class="dashboard-chart">
|
||||
<h4>{{ __('Statement') }}</h4>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select class="form-control overview-loss-profit-year">
|
||||
@for ($i = date('Y'); $i >= 2022; $i--)
|
||||
<option @selected($i == date('Y')) value="{{ $i }}">{{ $i }}
|
||||
</option>
|
||||
@endfor
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body pt-0">
|
||||
<div class="profit-loss-content">
|
||||
<canvas id="profitLossChart"></canvas>
|
||||
</div>
|
||||
<div class="d-flex align-items-center justify-content-center gap-3 pb-2 mt-4">
|
||||
<div class="d-flex align-items-center gap-1">
|
||||
<div class="income-bulet"></div>
|
||||
<p>{{__('Income')}}: <strong class="profit">0</strong></p>
|
||||
</div>
|
||||
<div class="d-flex align-items-center gap-1">
|
||||
<div class="expense-bulet"></div>
|
||||
<p>{{__('Expense')}}: <strong class="loss">0</strong></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row gpt-dashboard-chart mb-30">
|
||||
|
||||
<div class="col-md-12 col-lg-12 col-xl-8">
|
||||
<div class="card new-card dashboard-card border-0 p-0">
|
||||
<div class="dashboard-chart">
|
||||
<h4>{{ __('Branch Wise Sales') }}</h4>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select class="form-control branch-wise-sales-year">
|
||||
@for ($i = date('Y'); $i >= 2022; $i--)
|
||||
<option @selected($i == date('Y')) value="{{ $i }}">{{ $i }}
|
||||
</option>
|
||||
@endfor
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="responsive-table branch-overview-table vatlist-body mt-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th>{{ __('Branch') }}</th>
|
||||
<th>{{ __('Total Sales') }}</th>
|
||||
<th>{{ __('Paid') }}</th>
|
||||
<th>{{ __('Due') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="sale-data">
|
||||
{{-- Dynamic data come --}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 col-lg-12 col-xl-4">
|
||||
<div class="card new-card dashboard-card border-0 statement-container p-0">
|
||||
<div class="dashboard-chart mb-1">
|
||||
<h4>{{ __('Expire Product') }}</h4>
|
||||
</div>
|
||||
<div class="responsive-table branch-overview-table vatlist-body mt-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th>{{ __('Branch') }}</th>
|
||||
<th>{{ __('Qty') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="vat-data">
|
||||
@foreach ($branches_expired_products as $branch)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $branch->name }}</td>
|
||||
<td><div class="text-primary">{{ $branch->expired_stocks_count }}</div></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row gpt-dashboard-chart">
|
||||
<div class="col-md-12 col-lg-12 col-xl-8">
|
||||
<div class="card new-card dashboard-card border-0 p-0">
|
||||
<div class="dashboard-chart">
|
||||
<h4>{{ __('Branch Wise Purchases') }}</h4>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select class="form-control batch-wise-purchases-year">
|
||||
@for ($i = date('Y'); $i >= 2022; $i--)
|
||||
<option @selected($i == date('Y')) value="{{ $i }}">{{ $i }}
|
||||
</option>
|
||||
@endfor
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="responsive-table branch-overview-table vatlist-body mt-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th>{{ __('Branch') }}</th>
|
||||
<th>{{ __('Total Purchase') }}</th>
|
||||
<th>{{ __('Paid') }}</th>
|
||||
<th>{{ __('Due') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="purchase-data">
|
||||
{{-- Dynamic data --}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@if(moduleCheck('HrmAddon'))
|
||||
<div class="col-md-12 col-lg-12 col-xl-4">
|
||||
<div class="card new-card dashboard-card statement-container border-0 p-0">
|
||||
<div class="dashboard-chart">
|
||||
<h4>{{ __('Employee Overview') }}</h4>
|
||||
</div>
|
||||
<div class="responsive-table branch-overview-table vatlist-body mt-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th>{{ __('Branch') }}</th>
|
||||
<th>{{ __('Staffs') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="vat-data">
|
||||
@foreach ($branches as $branch)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $branch->name }}</td>
|
||||
<td>{{ $branch->employees_count }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" value="{{ route('multibranch.charts.income-expense') }}" id="incomeExpenseRoute">
|
||||
<input type="hidden" value="{{ route('multibranch.charts.sale-purchase') }}" id="salePurchaseChartRoute">
|
||||
<input type="hidden" value="{{ route('multibranch.branch.wise.sales') }}" id="branchWiseSaleRoute">
|
||||
<input type="hidden" value="{{ route('multibranch.branch.wise.purchases') }}" id="branchWisePurchaseRoute">
|
||||
@endsection
|
||||
|
||||
|
||||
@push('js')
|
||||
<script src="{{ asset('assets/js/chart.min.js') }}"></script>
|
||||
<script src="{{ asset('assets/plugins/custom/branch-overview.js') }}"></script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user