updates to M3 module
This commit is contained in:
@@ -58,125 +58,35 @@
|
||||
// dump($callingProgramPacking);
|
||||
@endphp
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||
<meta name="description" content="" />
|
||||
<meta name="author" content="" />
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}" />
|
||||
<title>@yield('title') - {{ config('app.name', 'WMS') }}</title>
|
||||
|
||||
{{-- Use Core's favicon set so M3 keeps the same browser identity as WMS. --}}
|
||||
<link rel="icon" href="{{ asset('favicons/favicon.ico') }}" sizes="any">
|
||||
<link rel="icon" href="{{ asset('favicons/favicon.svg') }}" type="image/svg+xml">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('favicons/favicon-32x32.png') }}">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="{{ asset('favicons/favicon-192x192.png') }}">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('favicons/apple-touch-icon.png') }}">
|
||||
<link rel="manifest" href="{{ asset('favicons/site.webmanifest') }}">
|
||||
<meta name="application-name" content="{{ config('app.name') }}">
|
||||
<meta name="apple-mobile-web-app-title" content="{{ config('app.name') }}">
|
||||
<meta name="msapplication-config" content="{{ asset('favicons/browserconfig.xml') }}">
|
||||
|
||||
{{-- Load the same locally managed font family used by Core. --}}
|
||||
@fonts
|
||||
<x-layouts.app :title="trim($__env->yieldContent('title', 'M3'))">
|
||||
<div class="m3-core-page" data-m3-module>
|
||||
@include('m3::liberty-theme.partials.styles')
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/js/all.min.js" crossorigin="anonymous"></script>
|
||||
</head>
|
||||
<body class="sb-nav-fixed">
|
||||
@include('m3::liberty-theme.partials.top-navigation')
|
||||
<div id="layoutSidenav">
|
||||
@if ( !($pdfURL && $callingProgramPacking))
|
||||
@include('m3::liberty-theme.partials.left-navigation')
|
||||
@endif
|
||||
<link href="{{ route('m3.assets', ['path' => 'liberty-theme/css/m3-core-shell.css']) }}" rel="stylesheet" />
|
||||
|
||||
<div id="layoutSidenav_content">
|
||||
<main>
|
||||
<div id="page-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
@yield('breadcrumb')
|
||||
</div>
|
||||
<div class="page-btn">
|
||||
@yield('btn')
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
@if( $csr=='')
|
||||
@yield('content')
|
||||
@elseif( $csr=='Y' && $pdfURL)
|
||||
@yield('content')
|
||||
@else
|
||||
{!! '<h1 class="text-center">403 - Unauthorized</h1>' !!}
|
||||
@endif
|
||||
<!-- /.container-fluid -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /#page-wrapper -->
|
||||
</main>
|
||||
<footer class="py-4 bg-light mt-auto">
|
||||
@include('m3::liberty-theme.partials.footer')
|
||||
</footer>
|
||||
<div class="m3-core-header">
|
||||
<div>
|
||||
<p class="m3-core-eyebrow">M3 INTEGRATION</p>
|
||||
<h1 class="m3-core-title">@yield('title', 'M3')</h1>
|
||||
@if($WDWNAM !== '')
|
||||
<p class="m3-core-context">{{ $WDWNAM }}</p>
|
||||
@endif
|
||||
</div>
|
||||
<div class="m3-core-actions">@yield('btn')</div>
|
||||
</div>
|
||||
|
||||
@hasSection('breadcrumb')
|
||||
<div class="m3-core-breadcrumb">@yield('breadcrumb')</div>
|
||||
@endif
|
||||
|
||||
<section class="m3-core-content">
|
||||
@if($csr === '' || ($csr === 'Y' && $pdfURL))
|
||||
@yield('content')
|
||||
@else
|
||||
<div class="m3-core-alert">403 - Unauthorized</div>
|
||||
@endif
|
||||
</section>
|
||||
|
||||
@include('m3::liberty-theme.partials.scripts')
|
||||
@yield('scripts')
|
||||
</body>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#R428DPWSel").on('change', function() {
|
||||
var R428DPW = $(this).val();
|
||||
var R428US = '{{ $loggedUser }}';
|
||||
var currentWHS = $(this).find('option:selected').text();
|
||||
// console.log(R428DPW);
|
||||
// console.log(R428US);
|
||||
|
||||
var form_post2 = {
|
||||
R428DPW : R428DPW,
|
||||
R428US : R428US,
|
||||
_token : '{{ csrf_token() }}'
|
||||
};
|
||||
// console.log(form_post2);
|
||||
|
||||
$.ajax({
|
||||
url: "{{ route('m3.userprofileupdateajax') }}",
|
||||
type: "POST",
|
||||
data: form_post2,
|
||||
success: function(response) {
|
||||
if(response.success==true){
|
||||
Swal.fire({
|
||||
title: "Warehouse changed successfully",
|
||||
text: "",
|
||||
icon: "success",
|
||||
confirmButtonColor: "#3085d6"
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
window.location.reload();
|
||||
}
|
||||
});
|
||||
|
||||
// Swal.fire('Warehouse changed successfully');
|
||||
// $("#currentWHSPAN").html(currentWHS);
|
||||
}
|
||||
else{
|
||||
Swal.fire('Warehouse change Failed');
|
||||
}
|
||||
},
|
||||
error: function(error) {
|
||||
// console.log(error);
|
||||
// alert(error);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</html>
|
||||
</div>
|
||||
</x-layouts.app>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<nav class="m3-module-nav" aria-label="M3 navigation">
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.index') ? 'is-active' : '' }}" href="{{ route('m3.index') }}"><i class="fas fa-gauge-high"></i><span>Dashboard</span></a>
|
||||
@if($execUser !== 'Y')
|
||||
@if($csr !== 'Y')
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.replenishmentSettings.*') ? 'is-active' : '' }}" href="{{ route('m3.replenishmentSettings.index') }}"><i class="fas fa-arrows-rotate"></i><span>Replenishment</span></a>
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.M3ErrorsDisplay.*') ? 'is-active' : '' }}" href="{{ route('m3.M3ErrorsDisplay.index') }}"><i class="fas fa-list-check"></i><span>Transactions</span></a>
|
||||
@endif
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.M3GetPDFFromCache.*') ? 'is-active' : '' }}" href="{{ route('m3.M3GetPDFFromCache.index') }}"><i class="fas fa-file-pdf"></i><span>Documents</span></a>
|
||||
@if($csr !== 'Y')
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.userControl') ? 'is-active' : '' }}" href="{{ route('m3.userControl') }}"><i class="fas fa-users-gear"></i><span>Users</span></a>
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.palletQty') ? 'is-active' : '' }}" href="{{ route('m3.palletQty') }}"><i class="fas fa-boxes-stacked"></i><span>Part Data</span></a>
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.M3Delivery') ? 'is-active' : '' }}" href="{{ route('m3.M3Delivery') }}"><i class="fas fa-truck"></i><span>Delivery</span></a>
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.OrderLinesOfClosedOrder') ? 'is-active' : '' }}" href="{{ route('m3.OrderLinesOfClosedOrder') }}"><i class="fas fa-file-excel"></i><span>Closed Orders</span></a>
|
||||
@if($power_users === 'Y' || $admin_users === 'Y')
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.carrierMaint') ? 'is-active' : '' }}" href="{{ route('m3.carrierMaint') }}"><i class="fas fa-route"></i><span>Carriers</span></a>
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.userPickingStats4') || request()->routeIs('m3.userPickingStats5') ? 'is-active' : '' }}" href="{{ route('m3.userPickingStats4') }}"><i class="fas fa-chart-line"></i><span>Efficiency</span></a>
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.pendingClosure') ? 'is-active' : '' }}" href="{{ route('m3.pendingClosure') }}"><i class="fas fa-clock"></i><span>Pending Closure</span></a>
|
||||
@endif
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.ship-to.*') ? 'is-active' : '' }}" href="{{ route('m3.ship-to.index') }}"><i class="fas fa-warehouse"></i><span>Ship-to</span></a>
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.execsummary') || request()->routeIs('m3.execsummaryline') ? 'is-active' : '' }}" href="{{ route('m3.execsummary') }}"><i class="fas fa-chart-column"></i><span>KPI</span></a>
|
||||
<a class="m3-module-nav-link {{ request()->routeIs('m3.whsePerf*') ? 'is-active' : '' }}" href="{{ route('m3.whsePerf') }}"><i class="fas fa-chart-area"></i><span>OTTC</span></a>
|
||||
@endif
|
||||
@endif
|
||||
</nav>
|
||||
Reference in New Issue
Block a user