phases one of time logged now with log display
This commit is contained in:
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-analytics">
|
<div class="container-fluid py-4 module-page module-analytics">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Analytics"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Analytics"
|
|
||||||
description="Display KPIs, warehouse performance trends, executive summaries, and OTTC analysis."
|
description="Display KPIs, warehouse performance trends, executive summaries, and OTTC analysis."
|
||||||
icon="fa-solid fa-chart-line"
|
icon="fa-solid fa-chart-line" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">Analytics workbench</h2>
|
<h2 class="h5 mb-1">Analytics workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>KPI1 Bar</td>
|
<td>KPI1 Bar</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>KPI1 Line</td>
|
<td>KPI1 Line</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>OTTC</td>
|
<td>OTTC</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Warehouse Performance</td>
|
<td>Warehouse Performance</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-audit">
|
<div class="container-fluid py-4 module-page module-audit">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Audit"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Audit"
|
|
||||||
description="Review activity logs, data changes, interface events, and administrative actions."
|
description="Review activity logs, data changes, interface events, and administrative actions."
|
||||||
icon="fa-solid fa-clipboard-check"
|
icon="fa-solid fa-clipboard-check" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">Audit workbench</h2>
|
<h2 class="h5 mb-1">Audit workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Activity Log</td>
|
<td>Activity Log</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Data Changes</td>
|
<td>Data Changes</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>API Audit</td>
|
<td>API Audit</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>User Actions</td>
|
<td>User Actions</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
@@ -10,11 +11,14 @@
|
|||||||
{{-- <link rel="stylesheet" href="{{ mix('css/audittrail.css') }}"> --}}
|
{{-- <link rel="stylesheet" href="{{ mix('css/audittrail.css') }}"> --}}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);" aria-hidden="true"></div>
|
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);"
|
||||||
|
aria-hidden="true"></div>
|
||||||
@yield('content')
|
@yield('content')
|
||||||
|
|
||||||
{{-- Laravel Mix - JS File --}}
|
{{-- Laravel Mix - JS File --}}
|
||||||
{{-- <script src="{{ mix('js/audittrail.js') }}"></script> --}}
|
{{-- <script src="{{ mix('js/audittrail.js') }}"></script> --}}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-carrier-management">
|
<div class="container-fluid py-4 module-page module-carrier-management">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Carrier Management"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Carrier Management"
|
|
||||||
description="Maintain carriers, services, and shipment routing master data."
|
description="Maintain carriers, services, and shipment routing master data."
|
||||||
icon="fa-solid fa-id-card"
|
icon="fa-solid fa-id-card" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">Carrier Management workbench</h2>
|
<h2 class="h5 mb-1">Carrier Management workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Carrier Directory</td>
|
<td>Carrier Directory</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Carrier Service Levels</td>
|
<td>Carrier Service Levels</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Carrier Rules</td>
|
<td>Carrier Rules</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Carrier Audit</td>
|
<td>Carrier Audit</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-configuration">
|
<div class="container-fluid py-4 module-page module-configuration">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Configuration"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Configuration"
|
|
||||||
description="Centralise system settings, warehouse defaults, interface flags, and feature switches."
|
description="Centralise system settings, warehouse defaults, interface flags, and feature switches."
|
||||||
icon="fa-solid fa-sliders"
|
icon="fa-solid fa-sliders" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">Configuration workbench</h2>
|
<h2 class="h5 mb-1">Configuration workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>System Settings</td>
|
<td>System Settings</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Feature Flags</td>
|
<td>Feature Flags</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Warehouse Defaults</td>
|
<td>Warehouse Defaults</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Interface Settings</td>
|
<td>Interface Settings</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,63 +1,91 @@
|
|||||||
@php
|
@php
|
||||||
$required = '<span class="text-red-600 dark:text-red-400">*</span>';
|
$required = '<span class="text-red-600 dark:text-red-400">*</span>';
|
||||||
$textInput = 'mt-2 min-h-11 w-full rounded-xl border-zinc-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100';
|
$textInput =
|
||||||
$textareaInput = 'mt-2 min-h-28 w-full rounded-xl border-zinc-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100';
|
'mt-2 min-h-11 w-full rounded-xl border-zinc-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100';
|
||||||
|
$textareaInput =
|
||||||
|
'mt-2 min-h-28 w-full rounded-xl border-zinc-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100';
|
||||||
$labelClass = 'text-sm font-semibold text-zinc-900 dark:text-zinc-100';
|
$labelClass = 'text-sm font-semibold text-zinc-900 dark:text-zinc-100';
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<div class="grid gap-5 md:grid-cols-3">
|
<div class="grid gap-5 md:grid-cols-3">
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="alpha2">Alpha-2 {!! $required !!}</label>
|
<label class="{{ $labelClass }}" for="alpha2">Alpha-2 {!! $required !!}</label>
|
||||||
<input id="alpha2" name="alpha2" maxlength="2" value="{{ old('alpha2', $country->alpha2) }}" class="{{ $textInput }} uppercase" placeholder="GB" />
|
<input id="alpha2" name="alpha2" maxlength="2" value="{{ old('alpha2', $country->alpha2) }}"
|
||||||
@error('alpha2')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }} uppercase" placeholder="GB" />
|
||||||
|
@error('alpha2')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="alpha3">Alpha-3 {!! $required !!}</label>
|
<label class="{{ $labelClass }}" for="alpha3">Alpha-3 {!! $required !!}</label>
|
||||||
<input id="alpha3" name="alpha3" maxlength="3" value="{{ old('alpha3', $country->alpha3) }}" class="{{ $textInput }} uppercase" placeholder="GBR" />
|
<input id="alpha3" name="alpha3" maxlength="3" value="{{ old('alpha3', $country->alpha3) }}"
|
||||||
@error('alpha3')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }} uppercase" placeholder="GBR" />
|
||||||
|
@error('alpha3')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="numeric">Numeric {!! $required !!}</label>
|
<label class="{{ $labelClass }}" for="numeric">Numeric {!! $required !!}</label>
|
||||||
<input id="numeric" name="numeric" maxlength="3" value="{{ old('numeric', $country->numeric) }}" class="{{ $textInput }}" placeholder="826" />
|
<input id="numeric" name="numeric" maxlength="3" value="{{ old('numeric', $country->numeric) }}"
|
||||||
@error('numeric')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" placeholder="826" />
|
||||||
|
@error('numeric')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="name">Canonical ISO name {!! $required !!}</label>
|
<label class="{{ $labelClass }}" for="name">Canonical ISO name {!! $required !!}</label>
|
||||||
<input id="name" name="name" value="{{ old('name', $country->name) }}" class="{{ $textInput }}" />
|
<input id="name" name="name" value="{{ old('name', $country->name) }}" class="{{ $textInput }}" />
|
||||||
@error('name')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
@error('name')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="official_name">Official name</label>
|
<label class="{{ $labelClass }}" for="official_name">Official name</label>
|
||||||
<input id="official_name" name="official_name" value="{{ old('official_name', $country->official_name) }}" class="{{ $textInput }}" />
|
<input id="official_name" name="official_name" value="{{ old('official_name', $country->official_name) }}"
|
||||||
@error('official_name')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" />
|
||||||
|
@error('official_name')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="common_name">Common name</label>
|
<label class="{{ $labelClass }}" for="common_name">Common name</label>
|
||||||
<input id="common_name" name="common_name" value="{{ old('common_name', $country->common_name) }}" class="{{ $textInput }}" />
|
<input id="common_name" name="common_name" value="{{ old('common_name', $country->common_name) }}"
|
||||||
@error('common_name')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" />
|
||||||
|
@error('common_name')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="display_name">Display name override</label>
|
<label class="{{ $labelClass }}" for="display_name">Display name override</label>
|
||||||
<input id="display_name" name="display_name" value="{{ old('display_name', $country->display_name) }}" class="{{ $textInput }}" />
|
<input id="display_name" name="display_name" value="{{ old('display_name', $country->display_name) }}"
|
||||||
@error('display_name')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" />
|
||||||
|
@error('display_name')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="native_name">Native name</label>
|
<label class="{{ $labelClass }}" for="native_name">Native name</label>
|
||||||
<input id="native_name" name="native_name" value="{{ old('native_name', $country->native_name) }}" class="{{ $textInput }}" />
|
<input id="native_name" name="native_name" value="{{ old('native_name', $country->native_name) }}"
|
||||||
@error('native_name')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" />
|
||||||
|
@error('native_name')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="capital">Capital</label>
|
<label class="{{ $labelClass }}" for="capital">Capital</label>
|
||||||
<input id="capital" name="capital" value="{{ old('capital', $country->capital) }}" class="{{ $textInput }}" />
|
<input id="capital" name="capital" value="{{ old('capital', $country->capital) }}"
|
||||||
@error('capital')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" />
|
||||||
|
@error('capital')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -68,40 +96,59 @@
|
|||||||
<label class="{{ $labelClass }}" for="iso_status">ISO lifecycle status {!! $required !!}</label>
|
<label class="{{ $labelClass }}" for="iso_status">ISO lifecycle status {!! $required !!}</label>
|
||||||
<select id="iso_status" name="iso_status" class="{{ $textInput }}">
|
<select id="iso_status" name="iso_status" class="{{ $textInput }}">
|
||||||
@foreach (\Modules\Countries\Support\Iso3166::statuses() as $status)
|
@foreach (\Modules\Countries\Support\Iso3166::statuses() as $status)
|
||||||
<option value="{{ $status }}" @selected(old('iso_status', $country->iso_status ?? 'official') === $status)>{{ str($status)->replace('_', ' ')->title() }}</option>
|
<option value="{{ $status }}" @selected(old('iso_status', $country->iso_status ?? 'official') === $status)>
|
||||||
|
{{ str($status)->replace('_', ' ')->title() }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
@error('iso_status')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
@error('iso_status')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="sovereignty_status">Sovereignty status</label>
|
<label class="{{ $labelClass }}" for="sovereignty_status">Sovereignty status</label>
|
||||||
<input id="sovereignty_status" name="sovereignty_status" value="{{ old('sovereignty_status', $country->sovereignty_status) }}" class="{{ $textInput }}" />
|
<input id="sovereignty_status" name="sovereignty_status"
|
||||||
@error('sovereignty_status')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
value="{{ old('sovereignty_status', $country->sovereignty_status) }}" class="{{ $textInput }}" />
|
||||||
|
@error('sovereignty_status')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="continent">Continent</label>
|
<label class="{{ $labelClass }}" for="continent">Continent</label>
|
||||||
<input id="continent" name="continent" value="{{ old('continent', $country->continent) }}" class="{{ $textInput }}" />
|
<input id="continent" name="continent" value="{{ old('continent', $country->continent) }}"
|
||||||
@error('continent')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" />
|
||||||
|
@error('continent')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="region">Region</label>
|
<label class="{{ $labelClass }}" for="region">Region</label>
|
||||||
<input id="region" name="region" value="{{ old('region', $country->region) }}" class="{{ $textInput }}" />
|
<input id="region" name="region" value="{{ old('region', $country->region) }}"
|
||||||
@error('region')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" />
|
||||||
|
@error('region')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="subregion">Subregion</label>
|
<label class="{{ $labelClass }}" for="subregion">Subregion</label>
|
||||||
<input id="subregion" name="subregion" value="{{ old('subregion', $country->subregion) }}" class="{{ $textInput }}" />
|
<input id="subregion" name="subregion" value="{{ old('subregion', $country->subregion) }}"
|
||||||
@error('subregion')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" />
|
||||||
|
@error('subregion')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="intermediate_region">Intermediate region</label>
|
<label class="{{ $labelClass }}" for="intermediate_region">Intermediate region</label>
|
||||||
<input id="intermediate_region" name="intermediate_region" value="{{ old('intermediate_region', $country->intermediate_region) }}" class="{{ $textInput }}" />
|
<input id="intermediate_region" name="intermediate_region"
|
||||||
@error('intermediate_region')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
value="{{ old('intermediate_region', $country->intermediate_region) }}"
|
||||||
|
class="{{ $textInput }}" />
|
||||||
|
@error('intermediate_region')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -111,110 +158,162 @@
|
|||||||
<div class="mt-4 grid gap-5 md:grid-cols-3">
|
<div class="mt-4 grid gap-5 md:grid-cols-3">
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="flag_emoji">Flag emoji</label>
|
<label class="{{ $labelClass }}" for="flag_emoji">Flag emoji</label>
|
||||||
<input id="flag_emoji" name="flag_emoji" value="{{ old('flag_emoji', $country->flag_emoji) }}" class="{{ $textInput }}" />
|
<input id="flag_emoji" name="flag_emoji" value="{{ old('flag_emoji', $country->flag_emoji) }}"
|
||||||
@error('flag_emoji')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" />
|
||||||
|
@error('flag_emoji')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="calling_code">Calling code</label>
|
<label class="{{ $labelClass }}" for="calling_code">Calling code</label>
|
||||||
<input id="calling_code" name="calling_code" value="{{ old('calling_code', $country->calling_code) }}" class="{{ $textInput }}" placeholder="+44" />
|
<input id="calling_code" name="calling_code" value="{{ old('calling_code', $country->calling_code) }}"
|
||||||
@error('calling_code')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" placeholder="+44" />
|
||||||
|
@error('calling_code')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="tld">Top-level domain</label>
|
<label class="{{ $labelClass }}" for="tld">Top-level domain</label>
|
||||||
<input id="tld" name="tld" value="{{ old('tld', $country->tld) }}" class="{{ $textInput }}" placeholder=".uk" />
|
<input id="tld" name="tld" value="{{ old('tld', $country->tld) }}"
|
||||||
@error('tld')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" placeholder=".uk" />
|
||||||
|
@error('tld')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="currency_code">Currency code</label>
|
<label class="{{ $labelClass }}" for="currency_code">Currency code</label>
|
||||||
<input id="currency_code" name="currency_code" maxlength="3" value="{{ old('currency_code', $country->currency_code) }}" class="{{ $textInput }} uppercase" placeholder="GBP" />
|
<input id="currency_code" name="currency_code" maxlength="3"
|
||||||
@error('currency_code')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
value="{{ old('currency_code', $country->currency_code) }}" class="{{ $textInput }} uppercase"
|
||||||
|
placeholder="GBP" />
|
||||||
|
@error('currency_code')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="currency_name">Currency name</label>
|
<label class="{{ $labelClass }}" for="currency_name">Currency name</label>
|
||||||
<input id="currency_name" name="currency_name" value="{{ old('currency_name', $country->currency_name) }}" class="{{ $textInput }}" />
|
<input id="currency_name" name="currency_name"
|
||||||
@error('currency_name')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
value="{{ old('currency_name', $country->currency_name) }}" class="{{ $textInput }}" />
|
||||||
|
@error('currency_name')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="currency_symbol">Currency symbol</label>
|
<label class="{{ $labelClass }}" for="currency_symbol">Currency symbol</label>
|
||||||
<input id="currency_symbol" name="currency_symbol" value="{{ old('currency_symbol', $country->currency_symbol) }}" class="{{ $textInput }}" />
|
<input id="currency_symbol" name="currency_symbol"
|
||||||
@error('currency_symbol')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
value="{{ old('currency_symbol', $country->currency_symbol) }}" class="{{ $textInput }}" />
|
||||||
|
@error('currency_symbol')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="latitude">Latitude</label>
|
<label class="{{ $labelClass }}" for="latitude">Latitude</label>
|
||||||
<input id="latitude" name="latitude" type="number" step="0.0000001" value="{{ old('latitude', $country->latitude) }}" class="{{ $textInput }}" />
|
<input id="latitude" name="latitude" type="number" step="0.0000001"
|
||||||
@error('latitude')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
value="{{ old('latitude', $country->latitude) }}" class="{{ $textInput }}" />
|
||||||
|
@error('latitude')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="longitude">Longitude</label>
|
<label class="{{ $labelClass }}" for="longitude">Longitude</label>
|
||||||
<input id="longitude" name="longitude" type="number" step="0.0000001" value="{{ old('longitude', $country->longitude) }}" class="{{ $textInput }}" />
|
<input id="longitude" name="longitude" type="number" step="0.0000001"
|
||||||
@error('longitude')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
value="{{ old('longitude', $country->longitude) }}" class="{{ $textInput }}" />
|
||||||
|
@error('longitude')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="sort_order">Sort order</label>
|
<label class="{{ $labelClass }}" for="sort_order">Sort order</label>
|
||||||
<input id="sort_order" name="sort_order" type="number" min="0" value="{{ old('sort_order', $country->sort_order ?? 0) }}" class="{{ $textInput }}" />
|
<input id="sort_order" name="sort_order" type="number" min="0"
|
||||||
@error('sort_order')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
value="{{ old('sort_order', $country->sort_order ?? 0) }}" class="{{ $textInput }}" />
|
||||||
|
@error('sort_order')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="ioc_code">IOC code</label>
|
<label class="{{ $labelClass }}" for="ioc_code">IOC code</label>
|
||||||
<input id="ioc_code" name="ioc_code" value="{{ old('ioc_code', $country->ioc_code) }}" class="{{ $textInput }} uppercase" />
|
<input id="ioc_code" name="ioc_code" value="{{ old('ioc_code', $country->ioc_code) }}"
|
||||||
@error('ioc_code')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }} uppercase" />
|
||||||
|
@error('ioc_code')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="fifa_code">FIFA code</label>
|
<label class="{{ $labelClass }}" for="fifa_code">FIFA code</label>
|
||||||
<input id="fifa_code" name="fifa_code" value="{{ old('fifa_code', $country->fifa_code) }}" class="{{ $textInput }} uppercase" />
|
<input id="fifa_code" name="fifa_code" value="{{ old('fifa_code', $country->fifa_code) }}"
|
||||||
@error('fifa_code')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }} uppercase" />
|
||||||
|
@error('fifa_code')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="postal_code_format">Postal-code format</label>
|
<label class="{{ $labelClass }}" for="postal_code_format">Postal-code format</label>
|
||||||
<input id="postal_code_format" name="postal_code_format" value="{{ old('postal_code_format', $country->postal_code_format) }}" class="{{ $textInput }}" />
|
<input id="postal_code_format" name="postal_code_format"
|
||||||
@error('postal_code_format')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
value="{{ old('postal_code_format', $country->postal_code_format) }}"
|
||||||
|
class="{{ $textInput }}" />
|
||||||
|
@error('postal_code_format')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="md:col-span-3">
|
<div class="md:col-span-3">
|
||||||
<label class="{{ $labelClass }}" for="flag_svg_url">Flag SVG URL</label>
|
<label class="{{ $labelClass }}" for="flag_svg_url">Flag SVG URL</label>
|
||||||
<input id="flag_svg_url" name="flag_svg_url" value="{{ old('flag_svg_url', $country->flag_svg_url) }}" class="{{ $textInput }}" />
|
<input id="flag_svg_url" name="flag_svg_url" value="{{ old('flag_svg_url', $country->flag_svg_url) }}"
|
||||||
@error('flag_svg_url')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" />
|
||||||
|
@error('flag_svg_url')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="md:col-span-3">
|
<div class="md:col-span-3">
|
||||||
<label class="{{ $labelClass }}" for="flag_png_url">Flag PNG URL</label>
|
<label class="{{ $labelClass }}" for="flag_png_url">Flag PNG URL</label>
|
||||||
<input id="flag_png_url" name="flag_png_url" value="{{ old('flag_png_url', $country->flag_png_url) }}" class="{{ $textInput }}" />
|
<input id="flag_png_url" name="flag_png_url" value="{{ old('flag_png_url', $country->flag_png_url) }}"
|
||||||
@error('flag_png_url')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" />
|
||||||
|
@error('flag_png_url')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-8 border-t border-zinc-200 pt-6 dark:border-zinc-800">
|
<div class="mt-8 border-t border-zinc-200 pt-6 dark:border-zinc-800">
|
||||||
<h2 class="text-base font-semibold text-zinc-900 dark:text-zinc-100">JSON metadata</h2>
|
<h2 class="text-base font-semibold text-zinc-900 dark:text-zinc-100">JSON metadata</h2>
|
||||||
<p class="mt-1 text-sm text-zinc-500 dark:text-zinc-400">Use valid JSON. Examples: languages as <code class="rounded bg-zinc-100 px-1 dark:bg-zinc-800">["en"]</code>, timezones as <code class="rounded bg-zinc-100 px-1 dark:bg-zinc-800">["Europe/London"]</code>.</p>
|
<p class="mt-1 text-sm text-zinc-500 dark:text-zinc-400">Use valid JSON. Examples: languages as <code
|
||||||
|
class="rounded bg-zinc-100 px-1 dark:bg-zinc-800">["en"]</code>, timezones as <code
|
||||||
|
class="rounded bg-zinc-100 px-1 dark:bg-zinc-800">["Europe/London"]</code>.</p>
|
||||||
<div class="mt-4 grid gap-5 md:grid-cols-3">
|
<div class="mt-4 grid gap-5 md:grid-cols-3">
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="languages">Languages JSON</label>
|
<label class="{{ $labelClass }}" for="languages">Languages JSON</label>
|
||||||
<textarea id="languages" name="languages" class="{{ $textareaInput }}">{{ old('languages', $country->languages ? json_encode($country->languages, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) : '') }}</textarea>
|
<textarea id="languages" name="languages" class="{{ $textareaInput }}">{{ old('languages', $country->languages ? json_encode($country->languages, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) : '') }}</textarea>
|
||||||
@error('languages')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
@error('languages')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="timezones">Timezones JSON</label>
|
<label class="{{ $labelClass }}" for="timezones">Timezones JSON</label>
|
||||||
<textarea id="timezones" name="timezones" class="{{ $textareaInput }}">{{ old('timezones', $country->timezones ? json_encode($country->timezones, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) : '') }}</textarea>
|
<textarea id="timezones" name="timezones" class="{{ $textareaInput }}">{{ old('timezones', $country->timezones ? json_encode($country->timezones, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) : '') }}</textarea>
|
||||||
@error('timezones')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
@error('timezones')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="metadata">Metadata JSON</label>
|
<label class="{{ $labelClass }}" for="metadata">Metadata JSON</label>
|
||||||
<textarea id="metadata" name="metadata" class="{{ $textareaInput }}">{{ old('metadata', $country->metadata ? json_encode($country->metadata, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) : '') }}</textarea>
|
<textarea id="metadata" name="metadata" class="{{ $textareaInput }}">{{ old('metadata', $country->metadata ? json_encode($country->metadata, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) : '') }}</textarea>
|
||||||
@error('metadata')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
@error('metadata')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -222,46 +321,67 @@
|
|||||||
<div class="mt-8 border-t border-zinc-200 pt-6 dark:border-zinc-800">
|
<div class="mt-8 border-t border-zinc-200 pt-6 dark:border-zinc-800">
|
||||||
<h2 class="text-base font-semibold text-zinc-900 dark:text-zinc-100">Operational support</h2>
|
<h2 class="text-base font-semibold text-zinc-900 dark:text-zinc-100">Operational support</h2>
|
||||||
<div class="mt-4 grid gap-5 md:grid-cols-3">
|
<div class="mt-4 grid gap-5 md:grid-cols-3">
|
||||||
<label class="flex items-center gap-3 rounded-2xl border border-zinc-200 bg-zinc-50 p-4 dark:border-zinc-800 dark:bg-zinc-950">
|
<label
|
||||||
|
class="flex items-center gap-3 rounded-2xl border border-zinc-200 bg-zinc-50 p-4 dark:border-zinc-800 dark:bg-zinc-950">
|
||||||
<input type="hidden" name="is_active" value="0" />
|
<input type="hidden" name="is_active" value="0" />
|
||||||
<input type="checkbox" name="is_active" value="1" @checked(old('is_active', $country->exists ? $country->is_active : true)) class="rounded border-zinc-300 text-blue-600 focus:ring-blue-500" />
|
<input type="checkbox" name="is_active" value="1" @checked(old('is_active', $country->exists ? $country->is_active : true))
|
||||||
<span><span class="block text-sm font-semibold">Supported {!! $required !!}</span><span class="block text-xs text-zinc-500">Available in WMS selectors and workflows.</span></span>
|
class="rounded border-zinc-300 text-blue-600 focus:ring-blue-500" />
|
||||||
|
<span><span class="block text-sm font-semibold">Supported {!! $required !!}</span><span
|
||||||
|
class="block text-xs text-zinc-500">Available in WMS selectors and workflows.</span></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="flex items-center gap-3 rounded-2xl border border-zinc-200 bg-zinc-50 p-4 dark:border-zinc-800 dark:bg-zinc-950">
|
<label
|
||||||
|
class="flex items-center gap-3 rounded-2xl border border-zinc-200 bg-zinc-50 p-4 dark:border-zinc-800 dark:bg-zinc-950">
|
||||||
<input type="hidden" name="independent" value="0" />
|
<input type="hidden" name="independent" value="0" />
|
||||||
<input type="checkbox" name="independent" value="1" @checked(old('independent', $country->independent)) class="rounded border-zinc-300 text-blue-600 focus:ring-blue-500" />
|
<input type="checkbox" name="independent" value="1" @checked(old('independent', $country->independent))
|
||||||
<span><span class="block text-sm font-semibold">Independent state</span><span class="block text-xs text-zinc-500">Used for reporting and compliance filters.</span></span>
|
class="rounded border-zinc-300 text-blue-600 focus:ring-blue-500" />
|
||||||
|
<span><span class="block text-sm font-semibold">Independent state</span><span
|
||||||
|
class="block text-xs text-zinc-500">Used for reporting and compliance filters.</span></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="flex items-center gap-3 rounded-2xl border border-zinc-200 bg-zinc-50 p-4 dark:border-zinc-800 dark:bg-zinc-950">
|
<label
|
||||||
|
class="flex items-center gap-3 rounded-2xl border border-zinc-200 bg-zinc-50 p-4 dark:border-zinc-800 dark:bg-zinc-950">
|
||||||
<input type="hidden" name="un_member" value="0" />
|
<input type="hidden" name="un_member" value="0" />
|
||||||
<input type="checkbox" name="un_member" value="1" @checked(old('un_member', $country->un_member)) class="rounded border-zinc-300 text-blue-600 focus:ring-blue-500" />
|
<input type="checkbox" name="un_member" value="1" @checked(old('un_member', $country->un_member))
|
||||||
<span><span class="block text-sm font-semibold">UN member</span><span class="block text-xs text-zinc-500">Optional global reference attribute.</span></span>
|
class="rounded border-zinc-300 text-blue-600 focus:ring-blue-500" />
|
||||||
|
<span><span class="block text-sm font-semibold">UN member</span><span
|
||||||
|
class="block text-xs text-zinc-500">Optional global reference attribute.</span></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="source">Source</label>
|
<label class="{{ $labelClass }}" for="source">Source</label>
|
||||||
<input id="source" name="source" value="{{ old('source', $country->source) }}" class="{{ $textInput }}" />
|
<input id="source" name="source" value="{{ old('source', $country->source) }}"
|
||||||
@error('source')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
class="{{ $textInput }}" />
|
||||||
|
@error('source')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="source_version">Source version</label>
|
<label class="{{ $labelClass }}" for="source_version">Source version</label>
|
||||||
<input id="source_version" name="source_version" value="{{ old('source_version', $country->source_version) }}" class="{{ $textInput }}" />
|
<input id="source_version" name="source_version"
|
||||||
@error('source_version')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
value="{{ old('source_version', $country->source_version) }}" class="{{ $textInput }}" />
|
||||||
|
@error('source_version')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="{{ $labelClass }}" for="last_synced_at">Last synced at</label>
|
<label class="{{ $labelClass }}" for="last_synced_at">Last synced at</label>
|
||||||
<input id="last_synced_at" name="last_synced_at" type="datetime-local" value="{{ old('last_synced_at', $country->last_synced_at?->format('Y-m-d\\TH:i')) }}" class="{{ $textInput }}" />
|
<input id="last_synced_at" name="last_synced_at" type="datetime-local"
|
||||||
@error('last_synced_at')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
value="{{ old('last_synced_at', $country->last_synced_at?->format('Y-m-d\\TH:i')) }}"
|
||||||
|
class="{{ $textInput }}" />
|
||||||
|
@error('last_synced_at')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="md:col-span-3">
|
<div class="md:col-span-3">
|
||||||
<label class="{{ $labelClass }}" for="address_format">Address format</label>
|
<label class="{{ $labelClass }}" for="address_format">Address format</label>
|
||||||
<textarea id="address_format" name="address_format" class="{{ $textareaInput }}">{{ old('address_format', $country->address_format) }}</textarea>
|
<textarea id="address_format" name="address_format" class="{{ $textareaInput }}">{{ old('address_format', $country->address_format) }}</textarea>
|
||||||
@error('address_format')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
@error('address_format')
|
||||||
|
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,29 +1,40 @@
|
|||||||
<x-layouts.app>
|
<x-layouts.app>
|
||||||
<div class="mx-auto max-w-[1400px] space-y-6" dusk="countries-create">
|
<div class="mx-auto max-w-[1400px] space-y-6" dusk="countries-create">
|
||||||
<div class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
||||||
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">ISO 3166 country support</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">ISO 3166 country
|
||||||
|
support</p>
|
||||||
<h1 class="mt-2 text-3xl font-semibold tracking-tight">Create country</h1>
|
<h1 class="mt-2 text-3xl font-semibold tracking-tight">Create country</h1>
|
||||||
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">Create a governed country reference record for platform, address, billing, carrier, customs and integration workflows.</p>
|
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">Create a governed country reference record for
|
||||||
|
platform, address, billing, carrier, customs and integration workflows.</p>
|
||||||
</div>
|
</div>
|
||||||
<a href="{{ route('countries.index') }}" wire:navigate class="rounded-xl bg-white/10 px-4 py-2.5 text-sm font-semibold text-white ring-1 ring-white/20 hover:bg-white/20">Back to countries</a>
|
<a href="{{ route('countries.index') }}" wire:navigate
|
||||||
|
class="rounded-xl bg-white/10 px-4 py-2.5 text-sm font-semibold text-white ring-1 ring-white/20 hover:bg-white/20">Back
|
||||||
|
to countries</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form method="POST" action="{{ route('countries.store') }}" class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<form method="POST" action="{{ route('countries.store') }}"
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
@csrf
|
@csrf
|
||||||
<div class="mb-5 rounded-2xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-200">
|
<div
|
||||||
Fields marked with <span class="font-bold text-red-600 dark:text-red-300">*</span> are mandatory ISO/WMS support fields.
|
class="mb-5 rounded-2xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-200">
|
||||||
|
Fields marked with <span class="font-bold text-red-600 dark:text-red-300">*</span> are mandatory ISO/WMS
|
||||||
|
support fields.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@include('countries::_form', ['country' => $country])
|
@include('countries::_form', ['country' => $country])
|
||||||
|
|
||||||
<div class="mt-8 flex flex-wrap gap-2 border-t border-zinc-200 pt-6 dark:border-zinc-800">
|
<div class="mt-8 flex flex-wrap gap-2 border-t border-zinc-200 pt-6 dark:border-zinc-800">
|
||||||
<button type="submit" class="rounded-xl bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">Create country</button>
|
<button type="submit"
|
||||||
<a href="{{ route('countries.index') }}" wire:navigate class="rounded-xl bg-zinc-100 px-4 py-2.5 text-sm font-semibold text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700">Cancel</a>
|
class="rounded-xl bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">Create
|
||||||
|
country</button>
|
||||||
|
<a href="{{ route('countries.index') }}" wire:navigate
|
||||||
|
class="rounded-xl bg-zinc-100 px-4 py-2.5 text-sm font-semibold text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,33 +1,46 @@
|
|||||||
<x-layouts.app>
|
<x-layouts.app>
|
||||||
<div class="mx-auto max-w-[1400px] space-y-6" dusk="countries-edit">
|
<div class="mx-auto max-w-[1400px] space-y-6" dusk="countries-edit">
|
||||||
<div class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
||||||
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">ISO 3166 country support</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">ISO 3166 country
|
||||||
<h1 class="mt-2 text-3xl font-semibold tracking-tight">Edit {{ $country->flag_emoji }} {{ $country->effective_name }}</h1>
|
support</p>
|
||||||
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">Expose and manage every ISO, operational, regional, currency, logistics and WMS support parameter.</p>
|
<h1 class="mt-2 text-3xl font-semibold tracking-tight">Edit {{ $country->flag_emoji }}
|
||||||
|
{{ $country->effective_name }}</h1>
|
||||||
|
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">Expose and manage every ISO, operational,
|
||||||
|
regional, currency, logistics and WMS support parameter.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
<a href="{{ route('countries.show', $country) }}" wire:navigate class="rounded-xl bg-white/10 px-4 py-2.5 text-sm font-semibold text-white ring-1 ring-white/20 hover:bg-white/20">View country</a>
|
<a href="{{ route('countries.show', $country) }}" wire:navigate
|
||||||
<a href="{{ route('countries.index') }}" wire:navigate class="rounded-xl bg-white/10 px-4 py-2.5 text-sm font-semibold text-white ring-1 ring-white/20 hover:bg-white/20">Back</a>
|
class="rounded-xl bg-white/10 px-4 py-2.5 text-sm font-semibold text-white ring-1 ring-white/20 hover:bg-white/20">View
|
||||||
|
country</a>
|
||||||
|
<a href="{{ route('countries.index') }}" wire:navigate
|
||||||
|
class="rounded-xl bg-white/10 px-4 py-2.5 text-sm font-semibold text-white ring-1 ring-white/20 hover:bg-white/20">Back</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form method="POST" action="{{ route('countries.update', $country) }}" class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<form method="POST" action="{{ route('countries.update', $country) }}"
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
@csrf
|
@csrf
|
||||||
@method('PUT')
|
@method('PUT')
|
||||||
<div class="mb-5 rounded-2xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-200">
|
<div
|
||||||
Fields marked with <span class="font-bold text-red-600 dark:text-red-300">*</span> are mandatory ISO/WMS support fields.
|
class="mb-5 rounded-2xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-200">
|
||||||
|
Fields marked with <span class="font-bold text-red-600 dark:text-red-300">*</span> are mandatory ISO/WMS
|
||||||
|
support fields.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@include('countries::_form', ['country' => $country])
|
@include('countries::_form', ['country' => $country])
|
||||||
|
|
||||||
<div class="mt-8 flex flex-wrap gap-2 border-t border-zinc-200 pt-6 dark:border-zinc-800">
|
<div class="mt-8 flex flex-wrap gap-2 border-t border-zinc-200 pt-6 dark:border-zinc-800">
|
||||||
<button type="submit" class="rounded-xl bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">Save country</button>
|
<button type="submit"
|
||||||
<a href="{{ route('countries.show', $country) }}" wire:navigate class="rounded-xl bg-zinc-100 px-4 py-2.5 text-sm font-semibold text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700">Cancel</a>
|
class="rounded-xl bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">Save
|
||||||
|
country</button>
|
||||||
|
<a href="{{ route('countries.show', $country) }}" wire:navigate
|
||||||
|
class="rounded-xl bg-zinc-100 px-4 py-2.5 text-sm font-semibold text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,61 +1,96 @@
|
|||||||
<x-layouts.app>
|
<x-layouts.app>
|
||||||
<div class="mx-auto max-w-[1800px] space-y-6" dusk="countries-index">
|
<div class="mx-auto max-w-[1800px] space-y-6" dusk="countries-index">
|
||||||
<div class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
||||||
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">Reference data</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">Reference data</p>
|
||||||
<h1 class="mt-2 text-3xl font-semibold tracking-tight">Countries</h1>
|
<h1 class="mt-2 text-3xl font-semibold tracking-tight">Countries</h1>
|
||||||
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">Governed ISO 3166 country records for tenants, companies, warehouses, billing, shipping, carriers, customs and integrations.</p>
|
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">Governed ISO 3166 country records for tenants,
|
||||||
|
companies, warehouses, billing, shipping, carriers, customs and integrations.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
<form method="POST" action="{{ route('countries.sync') }}">
|
<form method="POST" action="{{ route('countries.sync') }}">
|
||||||
@csrf
|
@csrf
|
||||||
<button type="submit" class="rounded-xl bg-white/10 px-4 py-2.5 text-sm font-semibold text-white ring-1 ring-white/20 hover:bg-white/20">Sync ISO data</button>
|
<button type="submit"
|
||||||
|
class="rounded-xl bg-white/10 px-4 py-2.5 text-sm font-semibold text-white ring-1 ring-white/20 hover:bg-white/20">Sync
|
||||||
|
ISO data</button>
|
||||||
</form>
|
</form>
|
||||||
<a href="{{ route('countries.create') }}" wire:navigate class="rounded-xl bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">New country</a>
|
<a href="{{ route('countries.create') }}" wire:navigate
|
||||||
|
class="rounded-xl bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">New
|
||||||
|
country</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if (session('success'))
|
@if (session('success'))
|
||||||
<div class="rounded-2xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-sm font-medium text-emerald-800 dark:border-emerald-900 dark:bg-emerald-950 dark:text-emerald-200">{{ session('success') }}</div>
|
<div
|
||||||
|
class="rounded-2xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-sm font-medium text-emerald-800 dark:border-emerald-900 dark:bg-emerald-950 dark:text-emerald-200">
|
||||||
|
{{ session('success') }}</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="grid gap-4 md:grid-cols-3">
|
<div class="grid gap-4 md:grid-cols-3">
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900"><div class="text-sm text-zinc-500">Total countries</div><div class="mt-2 text-3xl font-semibold">{{ number_format($totalCount) }}</div></div>
|
<div
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900"><div class="text-sm text-zinc-500">Active</div><div class="mt-2 text-3xl font-semibold text-emerald-700 dark:text-emerald-300">{{ number_format($activeCount) }}</div></div>
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900"><div class="text-sm text-zinc-500">Inactive</div><div class="mt-2 text-3xl font-semibold text-amber-700 dark:text-amber-300">{{ number_format($inactiveCount) }}</div></div>
|
<div class="text-sm text-zinc-500">Total countries</div>
|
||||||
|
<div class="mt-2 text-3xl font-semibold">{{ number_format($totalCount) }}</div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
|
<div class="text-sm text-zinc-500">Active</div>
|
||||||
|
<div class="mt-2 text-3xl font-semibold text-emerald-700 dark:text-emerald-300">
|
||||||
|
{{ number_format($activeCount) }}</div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
|
<div class="text-sm text-zinc-500">Inactive</div>
|
||||||
|
<div class="mt-2 text-3xl font-semibold text-amber-700 dark:text-amber-300">
|
||||||
|
{{ number_format($inactiveCount) }}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form method="GET" action="{{ route('countries.index') }}" class="grid gap-3 rounded-2xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-700 dark:bg-zinc-900 md:grid-cols-[1fr_220px_220px_auto] md:items-center">
|
<form method="GET" action="{{ route('countries.index') }}"
|
||||||
<input name="search" value="{{ $search }}" placeholder="Search by country, ISO code, currency or calling code" class="min-h-11 rounded-xl border-zinc-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" />
|
class="grid gap-3 rounded-2xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-700 dark:bg-zinc-900 md:grid-cols-[1fr_220px_220px_auto] md:items-center">
|
||||||
<select name="status" class="min-h-11 rounded-xl border-zinc-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100">
|
<input name="search" value="{{ $search }}"
|
||||||
|
placeholder="Search by country, ISO code, currency or calling code"
|
||||||
|
class="min-h-11 rounded-xl border-zinc-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" />
|
||||||
|
<select name="status"
|
||||||
|
class="min-h-11 rounded-xl border-zinc-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100">
|
||||||
<option value="all" @selected($status === 'all')>All statuses</option>
|
<option value="all" @selected($status === 'all')>All statuses</option>
|
||||||
<option value="active" @selected($status === 'active')>Active</option>
|
<option value="active" @selected($status === 'active')>Active</option>
|
||||||
<option value="inactive" @selected($status === 'inactive')>Inactive</option>
|
<option value="inactive" @selected($status === 'inactive')>Inactive</option>
|
||||||
</select>
|
</select>
|
||||||
<select name="region" class="min-h-11 rounded-xl border-zinc-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100">
|
<select name="region"
|
||||||
|
class="min-h-11 rounded-xl border-zinc-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100">
|
||||||
<option value="all" @selected($region === 'all')>All regions</option>
|
<option value="all" @selected($region === 'all')>All regions</option>
|
||||||
@foreach ($regions as $availableRegion)
|
@foreach ($regions as $availableRegion)
|
||||||
<option value="{{ $availableRegion }}" @selected($region === $availableRegion)>{{ $availableRegion }}</option>
|
<option value="{{ $availableRegion }}" @selected($region === $availableRegion)>{{ $availableRegion }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
<button type="submit" class="rounded-xl bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">Filter</button>
|
<button type="submit"
|
||||||
|
class="rounded-xl bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">Filter</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="overflow-x-auto">
|
<div class="overflow-x-auto">
|
||||||
<table class="min-w-full divide-y divide-zinc-200 dark:divide-zinc-800">
|
<table class="min-w-full divide-y divide-zinc-200 dark:divide-zinc-800">
|
||||||
<thead class="bg-zinc-50 dark:bg-zinc-950">
|
<thead class="bg-zinc-50 dark:bg-zinc-950">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Country</th>
|
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">
|
||||||
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">ISO</th>
|
Country</th>
|
||||||
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Region</th>
|
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">ISO
|
||||||
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Currency</th>
|
</th>
|
||||||
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Support</th>
|
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">
|
||||||
<th class="px-4 py-3 text-right text-xs font-bold uppercase tracking-wide text-zinc-500">Actions</th>
|
Region</th>
|
||||||
|
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">
|
||||||
|
Currency</th>
|
||||||
|
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">
|
||||||
|
Support</th>
|
||||||
|
<th class="px-4 py-3 text-right text-xs font-bold uppercase tracking-wide text-zinc-500">
|
||||||
|
Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
||||||
@@ -65,19 +100,48 @@
|
|||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-3">
|
||||||
<span class="text-xl">{{ $country->flag_emoji }}</span>
|
<span class="text-xl">{{ $country->flag_emoji }}</span>
|
||||||
<div>
|
<div>
|
||||||
<div class="font-semibold text-zinc-900 dark:text-zinc-100">{{ $country->effective_name }}</div>
|
<div class="font-semibold text-zinc-900 dark:text-zinc-100">
|
||||||
<div class="text-xs text-zinc-500">{{ $country->official_name ?: $country->name }}</div>
|
{{ $country->effective_name }}</div>
|
||||||
|
<div class="text-xs text-zinc-500">
|
||||||
|
{{ $country->official_name ?: $country->name }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-3"><div class="font-mono text-sm text-blue-700 dark:text-blue-300">{{ $country->alpha2 }} / {{ $country->alpha3 }} / {{ $country->numeric }}</div><div class="text-xs text-zinc-500">{{ str($country->iso_status ?? 'official')->replace('_', ' ')->title() }}</div></td>
|
<td class="px-4 py-3">
|
||||||
<td class="px-4 py-3 text-sm text-zinc-600 dark:text-zinc-300"><div>{{ $country->region ?: '—' }}</div><div class="text-xs text-zinc-500">{{ $country->subregion ?: '—' }}</div></td>
|
<div class="font-mono text-sm text-blue-700 dark:text-blue-300">
|
||||||
<td class="px-4 py-3 text-sm"><div class="font-mono text-zinc-900 dark:text-zinc-100">{{ $country->currency_code ?: '—' }}</div><div class="text-xs text-zinc-500">{{ $country->currency_name ?: '—' }}</div></td>
|
{{ $country->alpha2 }} / {{ $country->alpha3 }} / {{ $country->numeric }}
|
||||||
<td class="px-4 py-3">@if ($country->is_active)<span class="rounded-full bg-emerald-100 px-2.5 py-1 text-xs font-bold text-emerald-800 dark:bg-emerald-950 dark:text-emerald-200">Active</span>@else<span class="rounded-full bg-amber-100 px-2.5 py-1 text-xs font-bold text-amber-800 dark:bg-amber-950 dark:text-amber-200">Inactive</span>@endif</td>
|
</div>
|
||||||
<td class="px-4 py-3 text-right"><a href="{{ route('countries.show', $country) }}" wire:navigate class="rounded-lg bg-blue-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-blue-700">Open</a> <a href="{{ route('countries.edit', $country) }}" wire:navigate class="rounded-lg bg-emerald-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-emerald-700">Edit</a></td>
|
<div class="text-xs text-zinc-500">
|
||||||
|
{{ str($country->iso_status ?? 'official')->replace('_', ' ')->title() }}</div>
|
||||||
|
</td>
|
||||||
|
<td class="px-4 py-3 text-sm text-zinc-600 dark:text-zinc-300">
|
||||||
|
<div>{{ $country->region ?: '—' }}</div>
|
||||||
|
<div class="text-xs text-zinc-500">{{ $country->subregion ?: '—' }}</div>
|
||||||
|
</td>
|
||||||
|
<td class="px-4 py-3 text-sm">
|
||||||
|
<div class="font-mono text-zinc-900 dark:text-zinc-100">
|
||||||
|
{{ $country->currency_code ?: '—' }}</div>
|
||||||
|
<div class="text-xs text-zinc-500">{{ $country->currency_name ?: '—' }}</div>
|
||||||
|
</td>
|
||||||
|
<td class="px-4 py-3">
|
||||||
|
@if ($country->is_active)
|
||||||
|
<span
|
||||||
|
class="rounded-full bg-emerald-100 px-2.5 py-1 text-xs font-bold text-emerald-800 dark:bg-emerald-950 dark:text-emerald-200">Active</span>@else<span
|
||||||
|
class="rounded-full bg-amber-100 px-2.5 py-1 text-xs font-bold text-amber-800 dark:bg-amber-950 dark:text-amber-200">Inactive</span>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
<td class="px-4 py-3 text-right"><a href="{{ route('countries.show', $country) }}"
|
||||||
|
wire:navigate
|
||||||
|
class="rounded-lg bg-blue-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-blue-700">Open</a>
|
||||||
|
<a href="{{ route('countries.edit', $country) }}" wire:navigate
|
||||||
|
class="rounded-lg bg-emerald-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-emerald-700">Edit</a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr><td colspan="6" class="px-4 py-10 text-center text-sm text-zinc-500">No countries matched your search.</td></tr>
|
<tr>
|
||||||
|
<td colspan="6" class="px-4 py-10 text-center text-sm text-zinc-500">No countries
|
||||||
|
matched your search.</td>
|
||||||
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
@@ -10,11 +11,14 @@
|
|||||||
{{-- <link rel="stylesheet" href="{{ mix('css/countries.css') }}"> --}}
|
{{-- <link rel="stylesheet" href="{{ mix('css/countries.css') }}"> --}}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);" aria-hidden="true"></div>
|
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);"
|
||||||
|
aria-hidden="true"></div>
|
||||||
@yield('content')
|
@yield('content')
|
||||||
|
|
||||||
{{-- Laravel Mix - JS File --}}
|
{{-- Laravel Mix - JS File --}}
|
||||||
{{-- <script src="{{ mix('js/countries.js') }}"></script> --}}
|
{{-- <script src="{{ mix('js/countries.js') }}"></script> --}}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,23 +1,31 @@
|
|||||||
<x-layouts.app>
|
<x-layouts.app>
|
||||||
<div class="mx-auto max-w-[1400px] space-y-6" dusk="countries-show">
|
<div class="mx-auto max-w-[1400px] space-y-6" dusk="countries-show">
|
||||||
<div class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
||||||
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">ISO 3166 country</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">ISO 3166 country</p>
|
||||||
<h1 class="mt-2 text-3xl font-semibold tracking-tight">{{ $country->flag_emoji }} {{ $country->effective_name }}</h1>
|
<h1 class="mt-2 text-3xl font-semibold tracking-tight">{{ $country->flag_emoji }}
|
||||||
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">{{ $country->official_name ?: $country->name }}</p>
|
{{ $country->effective_name }}</h1>
|
||||||
|
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">
|
||||||
|
{{ $country->official_name ?: $country->name }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
<a href="{{ route('countries.edit', $country) }}" wire:navigate class="rounded-xl bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white hover:bg-blue-700">Edit country</a>
|
<a href="{{ route('countries.edit', $country) }}" wire:navigate
|
||||||
<a href="{{ route('countries.index') }}" wire:navigate class="rounded-xl bg-white/10 px-4 py-2.5 text-sm font-semibold text-white ring-1 ring-white/20 hover:bg-white/20">Back</a>
|
class="rounded-xl bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white hover:bg-blue-700">Edit
|
||||||
|
country</a>
|
||||||
|
<a href="{{ route('countries.index') }}" wire:navigate
|
||||||
|
class="rounded-xl bg-white/10 px-4 py-2.5 text-sm font-semibold text-white ring-1 ring-white/20 hover:bg-white/20">Back</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if (session('success'))
|
@if (session('success'))
|
||||||
<div class="rounded-2xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-sm font-medium text-emerald-800 dark:border-emerald-900 dark:bg-emerald-950 dark:text-emerald-200">{{ session('success') }}</div>
|
<div
|
||||||
|
class="rounded-2xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-sm font-medium text-emerald-800 dark:border-emerald-900 dark:bg-emerald-950 dark:text-emerald-200">
|
||||||
|
{{ session('success') }}</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@php
|
@php
|
||||||
@@ -31,7 +39,9 @@
|
|||||||
'Display override' => $country->display_name ?: '—',
|
'Display override' => $country->display_name ?: '—',
|
||||||
'Native name' => $country->native_name ?: '—',
|
'Native name' => $country->native_name ?: '—',
|
||||||
'Capital' => $country->capital ?: '—',
|
'Capital' => $country->capital ?: '—',
|
||||||
'ISO status' => str($country->iso_status ?? 'official')->replace('_', ' ')->title(),
|
'ISO status' => str($country->iso_status ?? 'official')
|
||||||
|
->replace('_', ' ')
|
||||||
|
->title(),
|
||||||
'Sovereignty status' => $country->sovereignty_status ?: '—',
|
'Sovereignty status' => $country->sovereignty_status ?: '—',
|
||||||
'Independent' => is_null($country->independent) ? '—' : ($country->independent ? 'Yes' : 'No'),
|
'Independent' => is_null($country->independent) ? '—' : ($country->independent ? 'Yes' : 'No'),
|
||||||
'UN member' => is_null($country->un_member) ? '—' : ($country->un_member ? 'Yes' : 'No'),
|
'UN member' => is_null($country->un_member) ? '—' : ($country->un_member ? 'Yes' : 'No'),
|
||||||
@@ -59,16 +69,19 @@
|
|||||||
|
|
||||||
<div class="grid gap-4 md:grid-cols-2 xl:grid-cols-4">
|
<div class="grid gap-4 md:grid-cols-2 xl:grid-cols-4">
|
||||||
@foreach ($fields as $label => $value)
|
@foreach ($fields as $label => $value)
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="text-xs font-bold uppercase tracking-wide text-zinc-500">{{ $label }}</div>
|
<div class="text-xs font-bold uppercase tracking-wide text-zinc-500">{{ $label }}</div>
|
||||||
<div class="mt-2 break-words text-base font-semibold text-zinc-900 dark:text-zinc-100">{{ $value }}</div>
|
<div class="mt-2 break-words text-base font-semibold text-zinc-900 dark:text-zinc-100">
|
||||||
|
{{ $value }}</div>
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid gap-4 lg:grid-cols-3">
|
<div class="grid gap-4 lg:grid-cols-3">
|
||||||
@foreach (['Languages' => $country->languages, 'Timezones' => $country->timezones, 'Metadata' => $country->metadata] as $label => $value)
|
@foreach (['Languages' => $country->languages, 'Timezones' => $country->timezones, 'Metadata' => $country->metadata] as $label => $value)
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<h2 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">{{ $label }}</h2>
|
<h2 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">{{ $label }}</h2>
|
||||||
<pre class="mt-3 max-h-80 overflow-auto rounded-xl bg-zinc-950 p-4 text-xs text-zinc-100">{{ $value ? json_encode($value, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) : '—' }}</pre>
|
<pre class="mt-3 max-h-80 overflow-auto rounded-xl bg-zinc-950 p-4 text-xs text-zinc-100">{{ $value ? json_encode($value, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) : '—' }}</pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -77,11 +90,14 @@
|
|||||||
|
|
||||||
@if ($country->address_format || $country->flag_svg_url || $country->flag_png_url)
|
@if ($country->address_format || $country->flag_svg_url || $country->flag_png_url)
|
||||||
<div class="grid gap-4 lg:grid-cols-3">
|
<div class="grid gap-4 lg:grid-cols-3">
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900 lg:col-span-2">
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900 lg:col-span-2">
|
||||||
<h2 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">Address format</h2>
|
<h2 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">Address format</h2>
|
||||||
<pre class="mt-3 whitespace-pre-wrap rounded-xl bg-zinc-100 p-4 text-sm text-zinc-700 dark:bg-zinc-950 dark:text-zinc-200">{{ $country->address_format ?: '—' }}</pre>
|
<pre
|
||||||
|
class="mt-3 whitespace-pre-wrap rounded-xl bg-zinc-100 p-4 text-sm text-zinc-700 dark:bg-zinc-950 dark:text-zinc-200">{{ $country->address_format ?: '—' }}</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<h2 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">Flag assets</h2>
|
<h2 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">Flag assets</h2>
|
||||||
<div class="mt-3 space-y-2 text-sm text-zinc-600 dark:text-zinc-300">
|
<div class="mt-3 space-y-2 text-sm text-zinc-600 dark:text-zinc-300">
|
||||||
<div>SVG: {{ $country->flag_svg_url ?: '—' }}</div>
|
<div>SVG: {{ $country->flag_svg_url ?: '—' }}</div>
|
||||||
@@ -92,38 +108,51 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="border-b border-zinc-200 px-5 py-4 dark:border-zinc-800">
|
<div class="border-b border-zinc-200 px-5 py-4 dark:border-zinc-800">
|
||||||
<h2 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">WMS usage report</h2>
|
<h2 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">WMS usage report</h2>
|
||||||
<p class="text-xs text-zinc-500">Best-effort counts across known WMS tables. Missing optional tables are skipped safely.</p>
|
<p class="text-xs text-zinc-500">Best-effort counts across known WMS tables. Missing optional tables are
|
||||||
|
skipped safely.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="overflow-x-auto">
|
<div class="overflow-x-auto">
|
||||||
<table class="min-w-full divide-y divide-zinc-200 dark:divide-zinc-800">
|
<table class="min-w-full divide-y divide-zinc-200 dark:divide-zinc-800">
|
||||||
<thead class="bg-zinc-50 dark:bg-zinc-950">
|
<thead class="bg-zinc-50 dark:bg-zinc-950">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Area</th>
|
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Area
|
||||||
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Table</th>
|
</th>
|
||||||
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Column</th>
|
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">
|
||||||
<th class="px-4 py-3 text-right text-xs font-bold uppercase tracking-wide text-zinc-500">References</th>
|
Table</th>
|
||||||
|
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">
|
||||||
|
Column</th>
|
||||||
|
<th class="px-4 py-3 text-right text-xs font-bold uppercase tracking-wide text-zinc-500">
|
||||||
|
References</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
||||||
@forelse ($usageRows ?? [] as $row)
|
@forelse ($usageRows ?? [] as $row)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-3 text-sm font-semibold text-zinc-900 dark:text-zinc-100">{{ $row['label'] }}</td>
|
<td class="px-4 py-3 text-sm font-semibold text-zinc-900 dark:text-zinc-100">
|
||||||
|
{{ $row['label'] }}</td>
|
||||||
<td class="px-4 py-3 font-mono text-xs text-zinc-500">{{ $row['table'] }}</td>
|
<td class="px-4 py-3 font-mono text-xs text-zinc-500">{{ $row['table'] }}</td>
|
||||||
<td class="px-4 py-3 font-mono text-xs text-blue-700 dark:text-blue-300">{{ $row['column'] }}</td>
|
<td class="px-4 py-3 font-mono text-xs text-blue-700 dark:text-blue-300">
|
||||||
<td class="px-4 py-3 text-right text-sm font-semibold text-zinc-900 dark:text-zinc-100">{{ number_format($row['count']) }}</td>
|
{{ $row['column'] }}</td>
|
||||||
|
<td class="px-4 py-3 text-right text-sm font-semibold text-zinc-900 dark:text-zinc-100">
|
||||||
|
{{ number_format($row['count']) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr><td colspan="4" class="px-4 py-8 text-center text-sm text-zinc-500">No country-aware WMS usage tables were detected yet.</td></tr>
|
<tr>
|
||||||
|
<td colspan="4" class="px-4 py-8 text-center text-sm text-zinc-500">No country-aware
|
||||||
|
WMS usage tables were detected yet.</td>
|
||||||
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="border-b border-zinc-200 px-5 py-4 dark:border-zinc-800">
|
<div class="border-b border-zinc-200 px-5 py-4 dark:border-zinc-800">
|
||||||
<h2 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">ISO 3166-2 subdivisions</h2>
|
<h2 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">ISO 3166-2 subdivisions</h2>
|
||||||
<p class="text-xs text-zinc-500">Subdivisions support address, compliance and shipping workflows.</p>
|
<p class="text-xs text-zinc-500">Subdivisions support address, compliance and shipping workflows.</p>
|
||||||
@@ -132,37 +161,51 @@
|
|||||||
<table class="min-w-full divide-y divide-zinc-200 dark:divide-zinc-800">
|
<table class="min-w-full divide-y divide-zinc-200 dark:divide-zinc-800">
|
||||||
<thead class="bg-zinc-50 dark:bg-zinc-950">
|
<thead class="bg-zinc-50 dark:bg-zinc-950">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Code</th>
|
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Code
|
||||||
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Name</th>
|
</th>
|
||||||
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Type</th>
|
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Name
|
||||||
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Status</th>
|
</th>
|
||||||
|
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">Type
|
||||||
|
</th>
|
||||||
|
<th class="px-4 py-3 text-left text-xs font-bold uppercase tracking-wide text-zinc-500">
|
||||||
|
Status</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
||||||
@forelse ($country->subdivisions as $subdivision)
|
@forelse ($country->subdivisions as $subdivision)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-3 font-mono text-sm text-blue-700 dark:text-blue-300">{{ $subdivision->code }}</td>
|
<td class="px-4 py-3 font-mono text-sm text-blue-700 dark:text-blue-300">
|
||||||
<td class="px-4 py-3 text-sm font-semibold text-zinc-900 dark:text-zinc-100">{{ $subdivision->name }}</td>
|
{{ $subdivision->code }}</td>
|
||||||
|
<td class="px-4 py-3 text-sm font-semibold text-zinc-900 dark:text-zinc-100">
|
||||||
|
{{ $subdivision->name }}</td>
|
||||||
<td class="px-4 py-3 text-sm text-zinc-500">{{ $subdivision->type ?: '—' }}</td>
|
<td class="px-4 py-3 text-sm text-zinc-500">{{ $subdivision->type ?: '—' }}</td>
|
||||||
<td class="px-4 py-3 text-sm text-zinc-500">{{ str($subdivision->iso_status)->replace('_', ' ')->title() }}</td>
|
<td class="px-4 py-3 text-sm text-zinc-500">
|
||||||
|
{{ str($subdivision->iso_status)->replace('_', ' ')->title() }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr><td colspan="4" class="px-4 py-8 text-center text-sm text-zinc-500">No subdivisions have been imported for this country yet.</td></tr>
|
<tr>
|
||||||
|
<td colspan="4" class="px-4 py-8 text-center text-sm text-zinc-500">No subdivisions
|
||||||
|
have been imported for this country yet.</td>
|
||||||
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form method="POST" action="{{ route('countries.destroy', $country) }}" class="rounded-2xl border border-red-200 bg-red-50 p-5 dark:border-red-900 dark:bg-red-950">
|
<form method="POST" action="{{ route('countries.destroy', $country) }}"
|
||||||
|
class="rounded-2xl border border-red-200 bg-red-50 p-5 dark:border-red-900 dark:bg-red-950">
|
||||||
@csrf
|
@csrf
|
||||||
@method('DELETE')
|
@method('DELETE')
|
||||||
<div class="flex flex-col gap-3 md:flex-row md:items-center md:justify-between">
|
<div class="flex flex-col gap-3 md:flex-row md:items-center md:justify-between">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="text-sm font-semibold text-red-900 dark:text-red-100">Archive country</h2>
|
<h2 class="text-sm font-semibold text-red-900 dark:text-red-100">Archive country</h2>
|
||||||
<p class="text-sm text-red-700 dark:text-red-200">Soft-deletes the record for administration. Do not archive countries referenced by active business data.</p>
|
<p class="text-sm text-red-700 dark:text-red-200">Soft-deletes the record for administration. Do not
|
||||||
|
archive countries referenced by active business data.</p>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="rounded-xl bg-red-600 px-4 py-2.5 text-sm font-semibold text-white hover:bg-red-700" onclick="return confirm('Archive this country?')">Archive</button>
|
<button type="submit"
|
||||||
|
class="rounded-xl bg-red-600 px-4 py-2.5 text-sm font-semibold text-white hover:bg-red-700"
|
||||||
|
onclick="return confirm('Archive this country?')">Archive</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-document-archive">
|
<div class="container-fluid py-4 module-page module-document-archive">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Document Archive"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Document Archive"
|
|
||||||
description="Search cached Sentinel documents, shipment PDFs, labels, and BOL records."
|
description="Search cached Sentinel documents, shipment PDFs, labels, and BOL records."
|
||||||
icon="fa-solid fa-file-lines"
|
icon="fa-solid fa-file-lines" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">Document Archive workbench</h2>
|
<h2 class="h5 mb-1">Document Archive workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Sentinel Doc Archive</td>
|
<td>Sentinel Doc Archive</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Shipment PDFs</td>
|
<td>Shipment PDFs</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Bill of Lading</td>
|
<td>Bill of Lading</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Document Search</td>
|
<td>Document Search</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
<div class="doc-page">
|
<div class="doc-page">
|
||||||
@include('documentation::partials.hero', [
|
@include('documentation::partials.hero', [
|
||||||
'title' => 'Document categories',
|
'title' => 'Document categories',
|
||||||
'subtitle' => 'Organise documents by policy, process, onboarding, operational support, or technical area.',
|
'subtitle' =>
|
||||||
|
'Organise documents by policy, process, onboarding, operational support, or technical area.',
|
||||||
])
|
])
|
||||||
|
|
||||||
@if (session('status'))
|
@if (session('status'))
|
||||||
@@ -33,22 +34,33 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@forelse($categories as $category)
|
@forelse($categories as $category)
|
||||||
<tr>
|
<tr>
|
||||||
<td><strong>{{ $category->name }}</strong><div class="doc-muted">{{ $category->slug }}</div></td>
|
<td><strong>{{ $category->name }}</strong>
|
||||||
|
<div class="doc-muted">{{ $category->slug }}</div>
|
||||||
|
</td>
|
||||||
<td>{{ $category->description ?: 'No description' }}</td>
|
<td>{{ $category->description ?: 'No description' }}</td>
|
||||||
<td>{{ $category->documents_count }}</td>
|
<td>{{ $category->documents_count }}</td>
|
||||||
<td>{{ $category->sort_order }}</td>
|
<td>{{ $category->sort_order }}</td>
|
||||||
<td><span class="doc-badge {{ $category->is_active ? '' : 'archived' }}">{{ $category->is_active ? 'Active' : 'Inactive' }}</span></td>
|
<td><span
|
||||||
|
class="doc-badge {{ $category->is_active ? '' : 'archived' }}">{{ $category->is_active ? 'Active' : 'Inactive' }}</span>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a class="doc-link" href="{{ route('documentation.categories.edit', $category) }}">Edit</a>
|
<a class="doc-link"
|
||||||
<form method="POST" action="{{ route('documentation.categories.destroy', $category) }}" style="display:inline;" onsubmit="return confirm('Delete this category? Documents will become uncategorised.')">
|
href="{{ route('documentation.categories.edit', $category) }}">Edit</a>
|
||||||
|
<form method="POST"
|
||||||
|
action="{{ route('documentation.categories.destroy', $category) }}"
|
||||||
|
style="display:inline;"
|
||||||
|
onsubmit="return confirm('Delete this category? Documents will become uncategorised.')">
|
||||||
@csrf
|
@csrf
|
||||||
@method('DELETE')
|
@method('DELETE')
|
||||||
<button type="submit" class="doc-button danger" style="border:0;cursor:pointer;margin-left:10px;">Delete</button>
|
<button type="submit" class="doc-button danger"
|
||||||
|
style="border:0;cursor:pointer;margin-left:10px;">Delete</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr><td colspan="6" class="doc-muted">No categories found.</td></tr>
|
<tr>
|
||||||
|
<td colspan="6" class="doc-muted">No categories found.</td>
|
||||||
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -11,14 +11,17 @@
|
|||||||
<section class="doc-card">
|
<section class="doc-card">
|
||||||
<div class="doc-card-header"><strong>{{ $document->title }}</strong></div>
|
<div class="doc-card-header"><strong>{{ $document->title }}</strong></div>
|
||||||
<div class="doc-card-body">
|
<div class="doc-card-body">
|
||||||
<form method="POST" action="{{ route('documentation.documents.update', $document) }}" enctype="multipart/form-data">
|
<form method="POST" action="{{ route('documentation.documents.update', $document) }}"
|
||||||
|
enctype="multipart/form-data">
|
||||||
@include('documentation::partials.document-form')
|
@include('documentation::partials.document-form')
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@foreach ($document->attachments as $attachment)
|
@foreach ($document->attachments as $attachment)
|
||||||
<form id="delete-attachment-{{ $attachment->id }}" method="POST" action="{{ route('documentation.documents.attachments.destroy', [$document, $attachment]) }}" onsubmit="return confirm('Remove this attachment?')">
|
<form id="delete-attachment-{{ $attachment->id }}" method="POST"
|
||||||
|
action="{{ route('documentation.documents.attachments.destroy', [$document, $attachment]) }}"
|
||||||
|
onsubmit="return confirm('Remove this attachment?')">
|
||||||
@csrf
|
@csrf
|
||||||
@method('DELETE')
|
@method('DELETE')
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
<div class="doc-page">
|
<div class="doc-page">
|
||||||
@include('documentation::partials.hero', [
|
@include('documentation::partials.hero', [
|
||||||
'title' => 'Documentation Centre',
|
'title' => 'Documentation Centre',
|
||||||
'subtitle' => 'Create, control, publish, and archive operational documents from a clean professional register.',
|
'subtitle' =>
|
||||||
|
'Create, control, publish, and archive operational documents from a clean professional register.',
|
||||||
])
|
])
|
||||||
|
|
||||||
@if (session('status'))
|
@if (session('status'))
|
||||||
@@ -25,7 +26,8 @@
|
|||||||
<div class="doc-card-header"><strong>Featured documents</strong></div>
|
<div class="doc-card-header"><strong>Featured documents</strong></div>
|
||||||
<div class="doc-card-body doc-grid" style="grid-template-columns:repeat(auto-fit,minmax(220px,1fr));">
|
<div class="doc-card-body doc-grid" style="grid-template-columns:repeat(auto-fit,minmax(220px,1fr));">
|
||||||
@foreach ($featuredDocuments as $featured)
|
@foreach ($featuredDocuments as $featured)
|
||||||
<a class="doc-card doc-card-body" style="text-decoration:none;color:inherit;box-shadow:none;" href="{{ route('documentation.documents.show', $featured) }}">
|
<a class="doc-card doc-card-body" style="text-decoration:none;color:inherit;box-shadow:none;"
|
||||||
|
href="{{ route('documentation.documents.show', $featured) }}">
|
||||||
<span class="doc-badge {{ $featured->status }}">{{ ucfirst($featured->status) }}</span>
|
<span class="doc-badge {{ $featured->status }}">{{ ucfirst($featured->status) }}</span>
|
||||||
<h3 style="margin:12px 0 6px;">{{ $featured->title }}</h3>
|
<h3 style="margin:12px 0 6px;">{{ $featured->title }}</h3>
|
||||||
<p class="doc-muted" style="margin:0;">{{ $featured->summary ?: 'No summary provided.' }}</p>
|
<p class="doc-muted" style="margin:0;">{{ $featured->summary ?: 'No summary provided.' }}</p>
|
||||||
@@ -42,7 +44,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="doc-card-body">
|
<div class="doc-card-body">
|
||||||
<form class="doc-filter" method="GET" action="{{ route('documentation.documents.index') }}">
|
<form class="doc-filter" method="GET" action="{{ route('documentation.documents.index') }}">
|
||||||
<input class="doc-input" name="search" value="{{ request('search') }}" placeholder="Search title, reference, summary or body">
|
<input class="doc-input" name="search" value="{{ request('search') }}"
|
||||||
|
placeholder="Search title, reference, summary or body">
|
||||||
<select class="doc-select" name="status">
|
<select class="doc-select" name="status">
|
||||||
<option value="">All statuses</option>
|
<option value="">All statuses</option>
|
||||||
@foreach ($statuses as $value => $label)
|
@foreach ($statuses as $value => $label)
|
||||||
@@ -52,7 +55,8 @@
|
|||||||
<select class="doc-select" name="category">
|
<select class="doc-select" name="category">
|
||||||
<option value="">All categories</option>
|
<option value="">All categories</option>
|
||||||
@foreach ($categories as $category)
|
@foreach ($categories as $category)
|
||||||
<option value="{{ $category->id }}" @selected((string) request('category') === (string) $category->id)>{{ $category->name }}</option>
|
<option value="{{ $category->id }}" @selected((string) request('category') === (string) $category->id)>{{ $category->name }}
|
||||||
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
<button class="doc-button primary" type="submit">Filter</button>
|
<button class="doc-button primary" type="submit">Filter</button>
|
||||||
@@ -73,17 +77,24 @@
|
|||||||
@forelse($documents as $document)
|
@forelse($documents as $document)
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ route('documentation.documents.show', $document) }}">{{ $document->title }}</a>
|
<a
|
||||||
<div class="doc-muted">{{ $document->reference ?: 'No reference' }} · {{ $document->summary ?: 'No summary' }}</div>
|
href="{{ route('documentation.documents.show', $document) }}">{{ $document->title }}</a>
|
||||||
|
<div class="doc-muted">{{ $document->reference ?: 'No reference' }} ·
|
||||||
|
{{ $document->summary ?: 'No summary' }}</div>
|
||||||
</td>
|
</td>
|
||||||
<td>{{ $document->category?->name ?: 'Uncategorised' }}</td>
|
<td>{{ $document->category?->name ?: 'Uncategorised' }}</td>
|
||||||
<td><span class="doc-badge {{ $document->status }}">{{ ucfirst($document->status) }}</span></td>
|
<td><span
|
||||||
|
class="doc-badge {{ $document->status }}">{{ ucfirst($document->status) }}</span>
|
||||||
|
</td>
|
||||||
<td>{{ $document->version }}</td>
|
<td>{{ $document->version }}</td>
|
||||||
<td>{{ $document->updated_at?->format('d M Y H:i') }}</td>
|
<td>{{ $document->updated_at?->format('d M Y H:i') }}</td>
|
||||||
<td><a class="doc-link" href="{{ route('documentation.documents.edit', $document) }}">Edit</a></td>
|
<td><a class="doc-link"
|
||||||
|
href="{{ route('documentation.documents.edit', $document) }}">Edit</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr><td colspan="6" class="doc-muted">No documents found.</td></tr>
|
<tr>
|
||||||
|
<td colspan="6" class="doc-muted">No documents found.</td>
|
||||||
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -6,10 +6,20 @@
|
|||||||
<div class="doc-page">
|
<div class="doc-page">
|
||||||
@include('documentation::partials.hero', [
|
@include('documentation::partials.hero', [
|
||||||
'title' => $document->title,
|
'title' => $document->title,
|
||||||
'subtitle' => $document->summary ?: 'Controlled documentation record with versioning, attachments and Markdown rendering.',
|
'subtitle' =>
|
||||||
|
$document->summary ?:
|
||||||
|
'Controlled documentation record with versioning, attachments and Markdown rendering.',
|
||||||
'actions' => [
|
'actions' => [
|
||||||
['label' => 'Edit document', 'url' => route('documentation.documents.edit', $document), 'class' => 'primary'],
|
[
|
||||||
['label' => 'Back to documents', 'url' => route('documentation.documents.index'), 'class' => 'secondary'],
|
'label' => 'Edit document',
|
||||||
|
'url' => route('documentation.documents.edit', $document),
|
||||||
|
'class' => 'primary',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'label' => 'Back to documents',
|
||||||
|
'url' => route('documentation.documents.index'),
|
||||||
|
'class' => 'secondary',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
])
|
])
|
||||||
|
|
||||||
@@ -17,7 +27,10 @@
|
|||||||
<div class="doc-card-header">
|
<div class="doc-card-header">
|
||||||
<div>
|
<div>
|
||||||
<strong>{{ $document->reference ?: 'Document' }}</strong>
|
<strong>{{ $document->reference ?: 'Document' }}</strong>
|
||||||
<div class="doc-muted">Version {{ $document->version }} @if($document->category) · {{ $document->category->name }} @endif</div>
|
<div class="doc-muted">Version {{ $document->version }} @if ($document->category)
|
||||||
|
· {{ $document->category->name }}
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span class="doc-badge {{ $document->status }}">{{ ucfirst($document->status) }}</span>
|
<span class="doc-badge {{ $document->status }}">{{ ucfirst($document->status) }}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -34,7 +47,8 @@
|
|||||||
@if ($document->attachment_name)
|
@if ($document->attachment_name)
|
||||||
<div class="doc-attachment-item">
|
<div class="doc-attachment-item">
|
||||||
<div>
|
<div>
|
||||||
<a class="doc-link" href="{{ route('documentation.documents.download', $document) }}">{{ $document->attachment_name }}</a>
|
<a class="doc-link"
|
||||||
|
href="{{ route('documentation.documents.download', $document) }}">{{ $document->attachment_name }}</a>
|
||||||
<span class="doc-muted">Primary file</span>
|
<span class="doc-muted">Primary file</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -42,7 +56,8 @@
|
|||||||
@foreach ($document->attachments as $attachment)
|
@foreach ($document->attachments as $attachment)
|
||||||
<div class="doc-attachment-item">
|
<div class="doc-attachment-item">
|
||||||
<div>
|
<div>
|
||||||
<a class="doc-link" href="{{ route('documentation.documents.attachments.download', [$document, $attachment]) }}">{{ $attachment->original_name }}</a>
|
<a class="doc-link"
|
||||||
|
href="{{ route('documentation.documents.attachments.download', [$document, $attachment]) }}">{{ $attachment->original_name }}</a>
|
||||||
<span class="doc-muted">{{ $attachment->size_label }}</span>
|
<span class="doc-muted">{{ $attachment->size_label }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<x-layouts.app>
|
<x-layouts.app>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--doc-ink: #18181b;
|
--doc-ink: #18181b;
|
||||||
--doc-muted: #71717a;
|
--doc-muted: #71717a;
|
||||||
@@ -504,24 +503,76 @@
|
|||||||
margin: 1.4em 0 .55em;
|
margin: 1.4em 0 .55em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.doc-content h1 { font-size: 2rem; }
|
.doc-content h1 {
|
||||||
.doc-content h2 { font-size: 1.55rem; border-bottom: 1px solid var(--doc-line); padding-bottom: .35rem; }
|
font-size: 2rem;
|
||||||
.doc-content h3 { font-size: 1.25rem; }
|
}
|
||||||
|
|
||||||
|
.doc-content h2 {
|
||||||
|
font-size: 1.55rem;
|
||||||
|
border-bottom: 1px solid var(--doc-line);
|
||||||
|
padding-bottom: .35rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-content h3 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
.doc-content p,
|
.doc-content p,
|
||||||
.doc-content ul,
|
.doc-content ul,
|
||||||
.doc-content ol,
|
.doc-content ol,
|
||||||
.doc-content blockquote,
|
.doc-content blockquote,
|
||||||
.doc-content pre { margin: 0 0 1rem; }
|
.doc-content pre {
|
||||||
.doc-content code { background: #f1f5f9; border-radius: .4375rem; padding: .14rem .32rem; font-size: .92em; }
|
margin: 0 0 1rem;
|
||||||
html.dark .doc-content code { background: #1e293b; color: #e2e8f0; }
|
}
|
||||||
.doc-content pre { overflow-x: auto; background: #0f172a; color: #e2e8f0; border-radius: 1rem; padding: 1rem; }
|
|
||||||
.doc-content pre code { background: transparent; color: inherit; padding: 0; }
|
|
||||||
.doc-content blockquote { border-left: 4px solid #2563eb; padding-left: 1rem; color: var(--doc-muted); }
|
|
||||||
.doc-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
|
|
||||||
.doc-content th,
|
|
||||||
.doc-content td { border: 1px solid var(--doc-line); padding: .625rem .75rem; text-align: left; }
|
|
||||||
|
|
||||||
.doc-muted { color: var(--doc-muted); }
|
.doc-content code {
|
||||||
|
background: #f1f5f9;
|
||||||
|
border-radius: .4375rem;
|
||||||
|
padding: .14rem .32rem;
|
||||||
|
font-size: .92em;
|
||||||
|
}
|
||||||
|
|
||||||
|
html.dark .doc-content code {
|
||||||
|
background: #1e293b;
|
||||||
|
color: #e2e8f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-content pre {
|
||||||
|
overflow-x: auto;
|
||||||
|
background: #0f172a;
|
||||||
|
color: #e2e8f0;
|
||||||
|
border-radius: 1rem;
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-content pre code {
|
||||||
|
background: transparent;
|
||||||
|
color: inherit;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-content blockquote {
|
||||||
|
border-left: 4px solid #2563eb;
|
||||||
|
padding-left: 1rem;
|
||||||
|
color: var(--doc-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-content table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
margin: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-content th,
|
||||||
|
.doc-content td {
|
||||||
|
border: 1px solid var(--doc-line);
|
||||||
|
padding: .625rem .75rem;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-muted {
|
||||||
|
color: var(--doc-muted);
|
||||||
|
}
|
||||||
|
|
||||||
.doc-attachment-list {
|
.doc-attachment-list {
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -548,17 +599,31 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 860px) {
|
@media (max-width: 860px) {
|
||||||
.doc-grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
.doc-grid.stats {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
.doc-filter,
|
.doc-filter,
|
||||||
.doc-form-grid { grid-template-columns: 1fr; }
|
.doc-form-grid {
|
||||||
.doc-table { display: block; overflow-x: auto; }
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-table {
|
||||||
|
display: block;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 560px) {
|
@media (max-width: 560px) {
|
||||||
.doc-grid.stats { grid-template-columns: 1fr; }
|
.doc-grid.stats {
|
||||||
.doc-hero { padding: 1.375rem; border-radius: 1.375rem; }
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.doc-hero {
|
||||||
|
padding: 1.375rem;
|
||||||
|
border-radius: 1.375rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="mx-auto max-w-[1800px] space-y-6" dusk="documentation-module">
|
<div class="mx-auto max-w-[1800px] space-y-6" dusk="documentation-module">
|
||||||
@@ -566,7 +631,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
document.addEventListener('click', function(event) {
|
document.addEventListener('click', function(event) {
|
||||||
const button = event.target.closest('[data-md-before]');
|
const button = event.target.closest('[data-md-before]');
|
||||||
|
|
||||||
@@ -591,6 +655,5 @@
|
|||||||
textarea.setRangeText(replacement, start, end, 'end');
|
textarea.setRangeText(replacement, start, end, 'end');
|
||||||
textarea.focus();
|
textarea.focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</x-layouts.app>
|
</x-layouts.app>
|
||||||
|
|||||||
@@ -5,36 +5,54 @@
|
|||||||
<div class="doc-form-grid">
|
<div class="doc-form-grid">
|
||||||
<div class="doc-field">
|
<div class="doc-field">
|
||||||
<label class="doc-label" for="name">Name</label>
|
<label class="doc-label" for="name">Name</label>
|
||||||
<input class="doc-input" id="name" name="name" value="{{ old('name', $category->name) }}" required maxlength="150">
|
<input class="doc-input" id="name" name="name" value="{{ old('name', $category->name) }}" required
|
||||||
@error('name') <div class="doc-error">{{ $message }}</div> @enderror
|
maxlength="150">
|
||||||
|
@error('name')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field">
|
<div class="doc-field">
|
||||||
<label class="doc-label" for="slug">Slug</label>
|
<label class="doc-label" for="slug">Slug</label>
|
||||||
<input class="doc-input" id="slug" name="slug" value="{{ old('slug', $category->slug) }}" maxlength="180" placeholder="Auto-generated when blank">
|
<input class="doc-input" id="slug" name="slug" value="{{ old('slug', $category->slug) }}"
|
||||||
@error('slug') <div class="doc-error">{{ $message }}</div> @enderror
|
maxlength="180" placeholder="Auto-generated when blank">
|
||||||
|
@error('slug')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field">
|
<div class="doc-field">
|
||||||
<label class="doc-label" for="icon">Icon</label>
|
<label class="doc-label" for="icon">Icon</label>
|
||||||
<input class="doc-input" id="icon" name="icon" value="{{ old('icon', $category->icon) }}" maxlength="80" placeholder="book-open, file-check, shield">
|
<input class="doc-input" id="icon" name="icon" value="{{ old('icon', $category->icon) }}" maxlength="80"
|
||||||
@error('icon') <div class="doc-error">{{ $message }}</div> @enderror
|
placeholder="book-open, file-check, shield">
|
||||||
|
@error('icon')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field">
|
<div class="doc-field">
|
||||||
<label class="doc-label" for="colour">Colour</label>
|
<label class="doc-label" for="colour">Colour</label>
|
||||||
<input class="doc-input" id="colour" name="colour" value="{{ old('colour', $category->colour ?: 'emerald') }}" required maxlength="32">
|
<input class="doc-input" id="colour" name="colour"
|
||||||
@error('colour') <div class="doc-error">{{ $message }}</div> @enderror
|
value="{{ old('colour', $category->colour ?: 'emerald') }}" required maxlength="32">
|
||||||
|
@error('colour')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field">
|
<div class="doc-field">
|
||||||
<label class="doc-label" for="sort_order">Sort order</label>
|
<label class="doc-label" for="sort_order">Sort order</label>
|
||||||
<input class="doc-input" id="sort_order" name="sort_order" type="number" min="0" value="{{ old('sort_order', $category->sort_order ?: 0) }}">
|
<input class="doc-input" id="sort_order" name="sort_order" type="number" min="0"
|
||||||
@error('sort_order') <div class="doc-error">{{ $message }}</div> @enderror
|
value="{{ old('sort_order', $category->sort_order ?: 0) }}">
|
||||||
|
@error('sort_order')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field" style="display:flex;align-items:end;">
|
<div class="doc-field" style="display:flex;align-items:end;">
|
||||||
<label><input type="checkbox" name="is_active" value="1" @checked(old('is_active', $category->is_active ?? true))> Active category</label>
|
<label><input type="checkbox" name="is_active" value="1" @checked(old('is_active', $category->is_active ?? true))> Active
|
||||||
|
category</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field full">
|
<div class="doc-field full">
|
||||||
<label class="doc-label" for="description">Description</label>
|
<label class="doc-label" for="description">Description</label>
|
||||||
<textarea class="doc-textarea" id="description" name="description" style="min-height:140px;">{{ old('description', $category->description) }}</textarea>
|
<textarea class="doc-textarea" id="description" name="description" style="min-height:140px;">{{ old('description', $category->description) }}</textarea>
|
||||||
@error('description') <div class="doc-error">{{ $message }}</div> @enderror
|
@error('description')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-actions" style="margin-top:22px;">
|
<div class="doc-actions" style="margin-top:22px;">
|
||||||
|
|||||||
@@ -6,13 +6,19 @@
|
|||||||
<div class="doc-form-grid">
|
<div class="doc-form-grid">
|
||||||
<div class="doc-field">
|
<div class="doc-field">
|
||||||
<label class="doc-label" for="title">Title</label>
|
<label class="doc-label" for="title">Title</label>
|
||||||
<input class="doc-input" id="title" name="title" value="{{ old('title', $document->title) }}" required maxlength="220">
|
<input class="doc-input" id="title" name="title" value="{{ old('title', $document->title) }}" required
|
||||||
@error('title') <div class="doc-error">{{ $message }}</div> @enderror
|
maxlength="220">
|
||||||
|
@error('title')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field">
|
<div class="doc-field">
|
||||||
<label class="doc-label" for="slug">Slug</label>
|
<label class="doc-label" for="slug">Slug</label>
|
||||||
<input class="doc-input" id="slug" name="slug" value="{{ old('slug', $document->slug) }}" maxlength="240" placeholder="Auto-generated when blank">
|
<input class="doc-input" id="slug" name="slug" value="{{ old('slug', $document->slug) }}"
|
||||||
@error('slug') <div class="doc-error">{{ $message }}</div> @enderror
|
maxlength="240" placeholder="Auto-generated when blank">
|
||||||
|
@error('slug')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field">
|
<div class="doc-field">
|
||||||
<label class="doc-label" for="documentation_category_id">Category</label>
|
<label class="doc-label" for="documentation_category_id">Category</label>
|
||||||
@@ -22,7 +28,9 @@
|
|||||||
<option value="{{ $category->id }}" @selected((string) old('documentation_category_id', $document->documentation_category_id) === (string) $category->id)>{{ $category->name }}</option>
|
<option value="{{ $category->id }}" @selected((string) old('documentation_category_id', $document->documentation_category_id) === (string) $category->id)>{{ $category->name }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
@error('documentation_category_id') <div class="doc-error">{{ $message }}</div> @enderror
|
@error('documentation_category_id')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field">
|
<div class="doc-field">
|
||||||
<label class="doc-label" for="status">Status</label>
|
<label class="doc-label" for="status">Status</label>
|
||||||
@@ -31,22 +39,33 @@
|
|||||||
<option value="{{ $value }}" @selected(old('status', $document->status) === $value)>{{ $label }}</option>
|
<option value="{{ $value }}" @selected(old('status', $document->status) === $value)>{{ $label }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
@error('status') <div class="doc-error">{{ $message }}</div> @enderror
|
@error('status')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field">
|
<div class="doc-field">
|
||||||
<label class="doc-label" for="version">Version</label>
|
<label class="doc-label" for="version">Version</label>
|
||||||
<input class="doc-input" id="version" name="version" value="{{ old('version', $document->version ?: '1.0.0') }}" required maxlength="50">
|
<input class="doc-input" id="version" name="version"
|
||||||
@error('version') <div class="doc-error">{{ $message }}</div> @enderror
|
value="{{ old('version', $document->version ?: '1.0.0') }}" required maxlength="50">
|
||||||
|
@error('version')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field">
|
<div class="doc-field">
|
||||||
<label class="doc-label" for="reference">Reference</label>
|
<label class="doc-label" for="reference">Reference</label>
|
||||||
<input class="doc-input" id="reference" name="reference" value="{{ old('reference', $document->reference) }}" maxlength="100" placeholder="SOP-001, POL-002, etc.">
|
<input class="doc-input" id="reference" name="reference" value="{{ old('reference', $document->reference) }}"
|
||||||
@error('reference') <div class="doc-error">{{ $message }}</div> @enderror
|
maxlength="100" placeholder="SOP-001, POL-002, etc.">
|
||||||
|
@error('reference')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field full">
|
<div class="doc-field full">
|
||||||
<label class="doc-label" for="summary">Summary</label>
|
<label class="doc-label" for="summary">Summary</label>
|
||||||
<input class="doc-input" id="summary" name="summary" value="{{ old('summary', $document->summary) }}" maxlength="500">
|
<input class="doc-input" id="summary" name="summary" value="{{ old('summary', $document->summary) }}"
|
||||||
@error('summary') <div class="doc-error">{{ $message }}</div> @enderror
|
maxlength="500">
|
||||||
|
@error('summary')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field full">
|
<div class="doc-field full">
|
||||||
<label class="doc-label" for="body">Document body</label>
|
<label class="doc-label" for="body">Document body</label>
|
||||||
@@ -60,47 +79,66 @@
|
|||||||
<button type="button" data-md-before="1. " data-md-after="" title="Numbered list">1.</button>
|
<button type="button" data-md-before="1. " data-md-after="" title="Numbered list">1.</button>
|
||||||
<button type="button" data-md-before="[" data-md-after="](https://)" title="Link">Link</button>
|
<button type="button" data-md-before="[" data-md-after="](https://)" title="Link">Link</button>
|
||||||
<button type="button" data-md-before="`" data-md-after="`" title="Inline code">Code</button>
|
<button type="button" data-md-before="`" data-md-after="`" title="Inline code">Code</button>
|
||||||
<button type="button" data-md-before="```php " data-md-after=" ```" title="Code block">Code block</button>
|
<button type="button" data-md-before="```php " data-md-after=" ```" title="Code block">Code
|
||||||
<button type="button" data-md-before="| Column | Column | | --- | --- | | Value | Value |" data-md-after="" title="Table">Table</button>
|
block</button>
|
||||||
|
<button type="button" data-md-before="| Column | Column | | --- | --- | | Value | Value |"
|
||||||
|
data-md-after="" title="Table">Table</button>
|
||||||
</div>
|
</div>
|
||||||
<textarea class="doc-textarea" id="body" name="body" data-markdown-textarea>{{ old('body', $document->body) }}</textarea>
|
<textarea class="doc-textarea" id="body" name="body" data-markdown-textarea>{{ old('body', $document->body) }}</textarea>
|
||||||
<p class="doc-muted editor-help">Markdown is supported, including fenced code blocks such as <code>```php</code>, tables, lists, links, and headings.</p>
|
<p class="doc-muted editor-help">Markdown is supported, including fenced code blocks such as
|
||||||
|
<code>```php</code>, tables, lists, links, and headings.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@error('body') <div class="doc-error">{{ $message }}</div> @enderror
|
@error('body')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field full">
|
<div class="doc-field full">
|
||||||
<label class="doc-label" for="attachment">Primary attachment</label>
|
<label class="doc-label" for="attachment">Primary attachment</label>
|
||||||
<input class="doc-input" id="attachment" name="attachment" type="file">
|
<input class="doc-input" id="attachment" name="attachment" type="file">
|
||||||
<p class="doc-muted">Primary Markdown files can be imported into the document body when the body is blank.</p>
|
<p class="doc-muted">Primary Markdown files can be imported into the document body when the body is blank.</p>
|
||||||
@if ($document->attachment_name)
|
@if ($document->attachment_name)
|
||||||
<p class="doc-muted">Current primary file: <a class="doc-link" href="{{ route('documentation.documents.download', $document) }}">{{ $document->attachment_name }}</a></p>
|
<p class="doc-muted">Current primary file: <a class="doc-link"
|
||||||
<label><input type="checkbox" name="remove_attachment" value="1"> Remove current primary attachment</label>
|
href="{{ route('documentation.documents.download', $document) }}">{{ $document->attachment_name }}</a>
|
||||||
|
</p>
|
||||||
|
<label><input type="checkbox" name="remove_attachment" value="1"> Remove current primary
|
||||||
|
attachment</label>
|
||||||
@endif
|
@endif
|
||||||
@error('attachment') <div class="doc-error">{{ $message }}</div> @enderror
|
@error('attachment')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field full">
|
<div class="doc-field full">
|
||||||
<label class="doc-label" for="attachments">Additional attachments</label>
|
<label class="doc-label" for="attachments">Additional attachments</label>
|
||||||
<input class="doc-input" id="attachments" name="attachments[]" type="file" multiple>
|
<input class="doc-input" id="attachments" name="attachments[]" type="file" multiple>
|
||||||
<p class="doc-muted">Attach supporting files such as PDFs, screenshots, spreadsheets, Word documents, Markdown, CSV, and images.</p>
|
<p class="doc-muted">Attach supporting files such as PDFs, screenshots, spreadsheets, Word documents, Markdown,
|
||||||
@error('attachments') <div class="doc-error">{{ $message }}</div> @enderror
|
CSV, and images.</p>
|
||||||
@error('attachments.*') <div class="doc-error">{{ $message }}</div> @enderror
|
@error('attachments')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
|
@error('attachments.*')
|
||||||
|
<div class="doc-error">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
|
|
||||||
@if ($document->exists && $document->attachments->isNotEmpty())
|
@if ($document->exists && $document->attachments->isNotEmpty())
|
||||||
<div class="doc-attachment-list" style="margin-top: 14px;">
|
<div class="doc-attachment-list" style="margin-top: 14px;">
|
||||||
@foreach ($document->attachments as $attachment)
|
@foreach ($document->attachments as $attachment)
|
||||||
<div class="doc-attachment-item">
|
<div class="doc-attachment-item">
|
||||||
<div>
|
<div>
|
||||||
<a class="doc-link" href="{{ route('documentation.documents.attachments.download', [$document, $attachment]) }}">{{ $attachment->original_name }}</a>
|
<a class="doc-link"
|
||||||
|
href="{{ route('documentation.documents.attachments.download', [$document, $attachment]) }}">{{ $attachment->original_name }}</a>
|
||||||
<span class="doc-muted">{{ $attachment->size_label }}</span>
|
<span class="doc-muted">{{ $attachment->size_label }}</span>
|
||||||
</div>
|
</div>
|
||||||
<button class="doc-button danger" type="submit" form="delete-attachment-{{ $attachment->id }}">Remove</button>
|
<button class="doc-button danger" type="submit"
|
||||||
|
form="delete-attachment-{{ $attachment->id }}">Remove</button>
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-field full">
|
<div class="doc-field full">
|
||||||
<label><input type="checkbox" name="is_featured" value="1" @checked(old('is_featured', $document->is_featured))> Feature this document on the dashboard</label>
|
<label><input type="checkbox" name="is_featured" value="1" @checked(old('is_featured', $document->is_featured))> Feature this
|
||||||
|
document on the dashboard</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-actions" style="margin-top:22px;">
|
<div class="doc-actions" style="margin-top:22px;">
|
||||||
|
|||||||
@@ -4,13 +4,17 @@
|
|||||||
<div>
|
<div>
|
||||||
<p class="doc-eyebrow">{{ $eyebrow ?? 'Documentation workflow' }}</p>
|
<p class="doc-eyebrow">{{ $eyebrow ?? 'Documentation workflow' }}</p>
|
||||||
<h1>{{ $title ?? 'Documentation' }}</h1>
|
<h1>{{ $title ?? 'Documentation' }}</h1>
|
||||||
<p>{{ $subtitle ?? 'Manage controlled documents, policies, guides, files, and operational knowledge in one professional workspace.' }}</p>
|
<p>{{ $subtitle ?? 'Manage controlled documents, policies, guides, files, and operational knowledge in one professional workspace.' }}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="doc-actions">
|
<div class="doc-actions">
|
||||||
<a class="doc-button success" href="{{ route('documentation.documents.create') }}" wire:navigate>Create document</a>
|
<a class="doc-button success" href="{{ route('documentation.documents.create') }}" wire:navigate>Create
|
||||||
<a class="doc-button category" href="{{ route('documentation.categories.index') }}" wire:navigate>Manage categories</a>
|
document</a>
|
||||||
<a class="doc-button register" href="{{ route('documentation.documents.index') }}" wire:navigate>Document register</a>
|
<a class="doc-button category" href="{{ route('documentation.categories.index') }}" wire:navigate>Manage
|
||||||
|
categories</a>
|
||||||
|
<a class="doc-button register" href="{{ route('documentation.documents.index') }}" wire:navigate>Document
|
||||||
|
register</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
@props([
|
@props(['id', 'model', 'label' => null, 'required' => false, 'placeholder' => 'Select date'])
|
||||||
'id',
|
|
||||||
'model',
|
|
||||||
'label' => null,
|
|
||||||
'required' => false,
|
|
||||||
'placeholder' => 'Select date',
|
|
||||||
])
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
@if ($label)
|
@if ($label)
|
||||||
@@ -17,17 +11,11 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<input
|
<input id="{{ $id }}" type="text" value="{{ $attributes->get('value') }}" data-helpdesk-flatpickr
|
||||||
id="{{ $id }}"
|
data-wire-model="{{ $model }}" placeholder="{{ $placeholder }}" autocomplete="off"
|
||||||
type="text"
|
|
||||||
value="{{ $attributes->get('value') }}"
|
|
||||||
data-helpdesk-flatpickr
|
|
||||||
data-wire-model="{{ $model }}"
|
|
||||||
placeholder="{{ $placeholder }}"
|
|
||||||
autocomplete="off"
|
|
||||||
{{ $attributes->except('value')->merge([
|
{{ $attributes->except('value')->merge([
|
||||||
'class' => 'block w-full rounded-xl border border-zinc-700 bg-zinc-950 px-4 py-3 text-sm text-zinc-100 shadow-sm outline-none transition-colors duration-150 placeholder:text-zinc-500 focus:border-blue-500 focus:ring-2 focus:ring-blue-500/40',
|
'class' =>
|
||||||
]) }}
|
'block w-full rounded-xl border border-zinc-700 bg-zinc-950 px-4 py-3 text-sm text-zinc-100 shadow-sm outline-none transition-colors duration-150 placeholder:text-zinc-500 focus:border-blue-500 focus:ring-2 focus:ring-blue-500/40',
|
||||||
/>
|
]) }} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,12 +10,10 @@
|
|||||||
$initialValue = $model ? data_get($this, $model, '') : '';
|
$initialValue = $model ? data_get($this, $model, '') : '';
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<div
|
<div {{ $attributes->whereDoesntStartWith('wire:model')->merge(['class' => 'space-y-2']) }}
|
||||||
{{ $attributes->whereDoesntStartWith('wire:model')->merge(['class' => 'space-y-2']) }}
|
|
||||||
@if ($model) data-helpdesk-editor-model="{{ $model }}" @endif
|
@if ($model) data-helpdesk-editor-model="{{ $model }}" @endif
|
||||||
x-on:helpdesk-editor-reset.window="if ($event.detail.model === model) clear()"
|
x-on:helpdesk-editor-reset.window="if ($event.detail.model === model) clear()"
|
||||||
x-on:helpdesk-editor-sync.window="if ($event.detail.model === model) sync()"
|
x-on:helpdesk-editor-sync.window="if ($event.detail.model === model) sync()" x-data="{
|
||||||
x-data="{
|
|
||||||
model: @js($model),
|
model: @js($model),
|
||||||
value: @js($initialValue),
|
value: @js($initialValue),
|
||||||
sync() {
|
sync() {
|
||||||
@@ -39,36 +37,38 @@
|
|||||||
init() {
|
init() {
|
||||||
this.$refs.editor.innerHTML = this.value || '';
|
this.$refs.editor.innerHTML = this.value || '';
|
||||||
}
|
}
|
||||||
}"
|
}">
|
||||||
>
|
|
||||||
<label class="block text-sm font-medium text-zinc-700 dark:text-zinc-200">{{ $label }}</label>
|
<label class="block text-sm font-medium text-zinc-700 dark:text-zinc-200">{{ $label }}</label>
|
||||||
|
|
||||||
@if ($model)
|
@if ($model)
|
||||||
<input type="hidden" name="{{ $model }}" x-bind:value="value">
|
<input type="hidden" name="{{ $model }}" x-bind:value="value">
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="overflow-hidden rounded-xl border border-zinc-300 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-950" wire:ignore>
|
<div class="overflow-hidden rounded-xl border border-zinc-300 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-950"
|
||||||
|
wire:ignore>
|
||||||
<div class="flex flex-wrap gap-1 border-b border-zinc-200 bg-zinc-50 p-2 dark:border-zinc-800 dark:bg-zinc-900">
|
<div class="flex flex-wrap gap-1 border-b border-zinc-200 bg-zinc-50 p-2 dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
<button type="button" x-on:click="command('bold')" class="rounded-lg px-2 py-1 text-sm font-bold hover:bg-zinc-200 dark:hover:bg-zinc-800">B</button>
|
<button type="button" x-on:click="command('bold')"
|
||||||
<button type="button" x-on:click="command('italic')" class="rounded-lg px-2 py-1 text-sm italic hover:bg-zinc-200 dark:hover:bg-zinc-800">I</button>
|
class="rounded-lg px-2 py-1 text-sm font-bold hover:bg-zinc-200 dark:hover:bg-zinc-800">B</button>
|
||||||
<button type="button" x-on:click="command('underline')" class="rounded-lg px-2 py-1 text-sm underline hover:bg-zinc-200 dark:hover:bg-zinc-800">U</button>
|
<button type="button" x-on:click="command('italic')"
|
||||||
<button type="button" x-on:click="command('insertUnorderedList')" class="rounded-lg px-2 py-1 text-sm hover:bg-zinc-200 dark:hover:bg-zinc-800">• List</button>
|
class="rounded-lg px-2 py-1 text-sm italic hover:bg-zinc-200 dark:hover:bg-zinc-800">I</button>
|
||||||
<button type="button" x-on:click="command('insertOrderedList')" class="rounded-lg px-2 py-1 text-sm hover:bg-zinc-200 dark:hover:bg-zinc-800">1. List</button>
|
<button type="button" x-on:click="command('underline')"
|
||||||
<button type="button" x-on:click="command('formatBlock', 'blockquote')" class="rounded-lg px-2 py-1 text-sm hover:bg-zinc-200 dark:hover:bg-zinc-800">Quote</button>
|
class="rounded-lg px-2 py-1 text-sm underline hover:bg-zinc-200 dark:hover:bg-zinc-800">U</button>
|
||||||
<button type="button" x-on:click="const url = prompt('URL'); if (url) command('createLink', url)" class="rounded-lg px-2 py-1 text-sm hover:bg-zinc-200 dark:hover:bg-zinc-800">Link</button>
|
<button type="button" x-on:click="command('insertUnorderedList')"
|
||||||
<button type="button" x-on:click="command('removeFormat')" class="rounded-lg px-2 py-1 text-sm hover:bg-zinc-200 dark:hover:bg-zinc-800">Clear</button>
|
class="rounded-lg px-2 py-1 text-sm hover:bg-zinc-200 dark:hover:bg-zinc-800">• List</button>
|
||||||
|
<button type="button" x-on:click="command('insertOrderedList')"
|
||||||
|
class="rounded-lg px-2 py-1 text-sm hover:bg-zinc-200 dark:hover:bg-zinc-800">1. List</button>
|
||||||
|
<button type="button" x-on:click="command('formatBlock', 'blockquote')"
|
||||||
|
class="rounded-lg px-2 py-1 text-sm hover:bg-zinc-200 dark:hover:bg-zinc-800">Quote</button>
|
||||||
|
<button type="button" x-on:click="const url = prompt('URL'); if (url) command('createLink', url)"
|
||||||
|
class="rounded-lg px-2 py-1 text-sm hover:bg-zinc-200 dark:hover:bg-zinc-800">Link</button>
|
||||||
|
<button type="button" x-on:click="command('removeFormat')"
|
||||||
|
class="rounded-lg px-2 py-1 text-sm hover:bg-zinc-200 dark:hover:bg-zinc-800">Clear</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div x-ref="editor" contenteditable="true" x-on:input.debounce.150ms="sync" x-on:keyup="sync"
|
||||||
x-ref="editor"
|
x-on:paste="$nextTick(() => sync())" x-on:blur="sync"
|
||||||
contenteditable="true"
|
|
||||||
x-on:input.debounce.150ms="sync"
|
|
||||||
x-on:keyup="sync"
|
|
||||||
x-on:paste="$nextTick(() => sync())"
|
|
||||||
x-on:blur="sync"
|
|
||||||
class="prose prose-sm min-h-[{{ (int) $rows * 28 }}px] max-w-none bg-white p-4 text-sm text-zinc-900 outline-none dark:prose-invert dark:bg-zinc-950 dark:text-zinc-100"
|
class="prose prose-sm min-h-[{{ (int) $rows * 28 }}px] max-w-none bg-white p-4 text-sm text-zinc-900 outline-none dark:prose-invert dark:bg-zinc-950 dark:text-zinc-100"
|
||||||
data-placeholder="{{ $placeholder }}"
|
data-placeholder="{{ $placeholder }}"></div>
|
||||||
></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($model)
|
@if ($model)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<div class="overflow-x-auto">
|
<div class="overflow-x-auto">
|
||||||
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
||||||
<thead class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
<thead
|
||||||
|
class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="px-4 py-3">Name</th>
|
<th class="px-4 py-3">Name</th>
|
||||||
<th class="px-4 py-3">Slug</th>
|
<th class="px-4 py-3">Slug</th>
|
||||||
@@ -15,22 +16,28 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-3 font-medium text-zinc-900 dark:text-zinc-100">{{ $item->name }}</td>
|
<td class="px-4 py-3 font-medium text-zinc-900 dark:text-zinc-100">{{ $item->name }}</td>
|
||||||
<td class="px-4 py-3 font-mono text-xs text-zinc-500">{{ $item->slug }}</td>
|
<td class="px-4 py-3 font-mono text-xs text-zinc-500">{{ $item->slug }}</td>
|
||||||
<td class="px-4 py-3"><flux:badge color="{{ $item->color }}">{{ $item->color }}</flux:badge></td>
|
|
||||||
<td class="px-4 py-3">
|
<td class="px-4 py-3">
|
||||||
<flux:badge color="{{ ($item->is_default ?? false) ? 'emerald' : 'zinc' }}">
|
<flux:badge color="{{ $item->color }}">{{ $item->color }}</flux:badge>
|
||||||
{{ ($item->is_default ?? false) ? 'Default' : 'No' }}
|
</td>
|
||||||
|
<td class="px-4 py-3">
|
||||||
|
<flux:badge color="{{ $item->is_default ?? false ? 'emerald' : 'zinc' }}">
|
||||||
|
{{ $item->is_default ?? false ? 'Default' : 'No' }}
|
||||||
</flux:badge>
|
</flux:badge>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-3 text-zinc-500">{{ $item->tickets_count ?? 0 }}</td>
|
<td class="px-4 py-3 text-zinc-500">{{ $item->tickets_count ?? 0 }}</td>
|
||||||
<td class="px-4 py-3 text-right">
|
<td class="px-4 py-3 text-right">
|
||||||
<div class="flex justify-end gap-2">
|
<div class="flex justify-end gap-2">
|
||||||
<button type="button" wire:click="{{ $edit }}({{ $item->id }})" class="hd-btn hd-btn-sm hd-btn-blue">Edit</button>
|
<button type="button" wire:click="{{ $edit }}({{ $item->id }})"
|
||||||
<button type="button" wire:click="{{ $delete }}({{ $item->id }})" class="hd-btn hd-btn-sm hd-btn-red">Delete</button>
|
class="hd-btn hd-btn-sm hd-btn-blue">Edit</button>
|
||||||
|
<button type="button" wire:click="{{ $delete }}({{ $item->id }})"
|
||||||
|
class="hd-btn hd-btn-sm hd-btn-red">Delete</button>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr><td colspan="6" class="px-4 py-10 text-center text-zinc-500">No records yet.</td></tr>
|
<tr>
|
||||||
|
<td colspan="6" class="px-4 py-10 text-center text-zinc-500">No records yet.</td>
|
||||||
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,7 +1,15 @@
|
|||||||
<div class="overflow-x-auto">
|
<div class="overflow-x-auto">
|
||||||
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
||||||
<thead class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
<thead
|
||||||
<tr><th class="px-4 py-3">Project</th><th class="px-4 py-3">Company</th><th class="px-4 py-3">Team</th><th class="px-4 py-3">Default</th><th class="px-4 py-3">Tickets</th><th class="px-4 py-3 text-right">Actions</th></tr>
|
class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
||||||
|
<tr>
|
||||||
|
<th class="px-4 py-3">Project</th>
|
||||||
|
<th class="px-4 py-3">Company</th>
|
||||||
|
<th class="px-4 py-3">Team</th>
|
||||||
|
<th class="px-4 py-3">Default</th>
|
||||||
|
<th class="px-4 py-3">Tickets</th>
|
||||||
|
<th class="px-4 py-3 text-right">Actions</th>
|
||||||
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
||||||
@forelse ($items as $item)
|
@forelse ($items as $item)
|
||||||
@@ -9,12 +17,23 @@
|
|||||||
<td class="px-4 py-3 font-medium text-zinc-900 dark:text-zinc-100">{{ $item->title }}</td>
|
<td class="px-4 py-3 font-medium text-zinc-900 dark:text-zinc-100">{{ $item->title }}</td>
|
||||||
<td class="px-4 py-3 text-zinc-500">{{ $item->company?->name ?? 'Global' }}</td>
|
<td class="px-4 py-3 text-zinc-500">{{ $item->company?->name ?? 'Global' }}</td>
|
||||||
<td class="px-4 py-3 text-zinc-500">{{ $item->team?->name ?? 'No team' }}</td>
|
<td class="px-4 py-3 text-zinc-500">{{ $item->team?->name ?? 'No team' }}</td>
|
||||||
<td class="px-4 py-3"><flux:badge color="{{ ($item->is_default ?? false) ? 'emerald' : 'zinc' }}">{{ ($item->is_default ?? false) ? 'Default' : 'No' }}</flux:badge></td>
|
<td class="px-4 py-3">
|
||||||
|
<flux:badge color="{{ $item->is_default ?? false ? 'emerald' : 'zinc' }}">
|
||||||
|
{{ $item->is_default ?? false ? 'Default' : 'No' }}</flux:badge>
|
||||||
|
</td>
|
||||||
<td class="px-4 py-3 text-zinc-500">{{ $item->tickets_count ?? 0 }}</td>
|
<td class="px-4 py-3 text-zinc-500">{{ $item->tickets_count ?? 0 }}</td>
|
||||||
<td class="px-4 py-3 text-right"><div class="flex justify-end gap-2"><button type="button" wire:click="editProject({{ $item->id }})" class="hd-btn hd-btn-sm hd-btn-blue">Edit</button><button type="button" wire:click="deleteProject({{ $item->id }})" class="hd-btn hd-btn-sm hd-btn-red">Delete</button></div></td>
|
<td class="px-4 py-3 text-right">
|
||||||
|
<div class="flex justify-end gap-2"><button type="button"
|
||||||
|
wire:click="editProject({{ $item->id }})"
|
||||||
|
class="hd-btn hd-btn-sm hd-btn-blue">Edit</button><button type="button"
|
||||||
|
wire:click="deleteProject({{ $item->id }})"
|
||||||
|
class="hd-btn hd-btn-sm hd-btn-red">Delete</button></div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr><td colspan="6" class="px-4 py-10 text-center text-zinc-500">No projects yet.</td></tr>
|
<tr>
|
||||||
|
<td colspan="6" class="px-4 py-10 text-center text-zinc-500">No projects yet.</td>
|
||||||
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
<div class="overflow-x-auto">
|
<div class="overflow-x-auto">
|
||||||
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
||||||
<thead class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
<thead
|
||||||
<tr><th class="px-4 py-3">Name</th><th class="px-4 py-3">Provider</th><th class="px-4 py-3">Project</th><th class="px-4 py-3">Commits</th><th class="px-4 py-3 text-right">Actions</th></tr>
|
class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
||||||
|
<tr>
|
||||||
|
<th class="px-4 py-3">Name</th>
|
||||||
|
<th class="px-4 py-3">Provider</th>
|
||||||
|
<th class="px-4 py-3">Project</th>
|
||||||
|
<th class="px-4 py-3">Commits</th>
|
||||||
|
<th class="px-4 py-3 text-right">Actions</th>
|
||||||
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
||||||
@forelse ($items as $item)
|
@forelse ($items as $item)
|
||||||
@@ -10,10 +17,19 @@
|
|||||||
<td class="px-4 py-3 text-zinc-500">{{ strtoupper($item->provider) }}</td>
|
<td class="px-4 py-3 text-zinc-500">{{ strtoupper($item->provider) }}</td>
|
||||||
<td class="px-4 py-3 text-zinc-500">{{ $item->project?->title ?? 'No project' }}</td>
|
<td class="px-4 py-3 text-zinc-500">{{ $item->project?->title ?? 'No project' }}</td>
|
||||||
<td class="px-4 py-3 text-zinc-500">{{ $item->commits_count ?? 0 }}</td>
|
<td class="px-4 py-3 text-zinc-500">{{ $item->commits_count ?? 0 }}</td>
|
||||||
<td class="px-4 py-3 text-right"><div class="flex justify-end gap-2"><button type="button" wire:click="editRepository({{ $item->id }})" class="hd-btn hd-btn-sm hd-btn-blue">Edit</button><button type="button" wire:click="deleteRepository({{ $item->id }})" wire:confirm="Delete this repository?" class="hd-btn hd-btn-sm hd-btn-red">Delete</button></div></td>
|
<td class="px-4 py-3 text-right">
|
||||||
|
<div class="flex justify-end gap-2"><button type="button"
|
||||||
|
wire:click="editRepository({{ $item->id }})"
|
||||||
|
class="hd-btn hd-btn-sm hd-btn-blue">Edit</button><button type="button"
|
||||||
|
wire:click="deleteRepository({{ $item->id }})"
|
||||||
|
wire:confirm="Delete this repository?"
|
||||||
|
class="hd-btn hd-btn-sm hd-btn-red">Delete</button></div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr><td colspan="5" class="px-4 py-10 text-center text-zinc-500">No repositories yet.</td></tr>
|
<tr>
|
||||||
|
<td colspan="5" class="px-4 py-10 text-center text-zinc-500">No repositories yet.</td>
|
||||||
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<section class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<section
|
||||||
|
class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="border-b border-zinc-200 bg-zinc-50 px-5 py-4 dark:border-zinc-700 dark:bg-zinc-800/70">
|
<div class="border-b border-zinc-200 bg-zinc-50 px-5 py-4 dark:border-zinc-700 dark:bg-zinc-800/70">
|
||||||
<h2 class="text-lg font-semibold text-zinc-900 dark:text-white">{{ $title }}</h2>
|
<h2 class="text-lg font-semibold text-zinc-900 dark:text-white">{{ $title }}</h2>
|
||||||
<p class="mt-1 text-sm text-zinc-500 dark:text-zinc-400">{{ $description }}</p>
|
<p class="mt-1 text-sm text-zinc-500 dark:text-zinc-400">{{ $description }}</p>
|
||||||
|
|||||||
@@ -1,19 +1,37 @@
|
|||||||
<div class="overflow-x-auto">
|
<div class="overflow-x-auto">
|
||||||
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
||||||
<thead class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
<thead
|
||||||
<tr><th class="px-4 py-3">Team</th><th class="px-4 py-3">Company</th><th class="px-4 py-3">Default</th><th class="px-4 py-3">Tickets</th><th class="px-4 py-3 text-right">Actions</th></tr>
|
class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
||||||
|
<tr>
|
||||||
|
<th class="px-4 py-3">Team</th>
|
||||||
|
<th class="px-4 py-3">Company</th>
|
||||||
|
<th class="px-4 py-3">Default</th>
|
||||||
|
<th class="px-4 py-3">Tickets</th>
|
||||||
|
<th class="px-4 py-3 text-right">Actions</th>
|
||||||
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
||||||
@forelse ($items as $item)
|
@forelse ($items as $item)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-3 font-medium text-zinc-900 dark:text-zinc-100">{{ $item->name }}</td>
|
<td class="px-4 py-3 font-medium text-zinc-900 dark:text-zinc-100">{{ $item->name }}</td>
|
||||||
<td class="px-4 py-3 text-zinc-500">{{ $item->company?->name ?? 'Global' }}</td>
|
<td class="px-4 py-3 text-zinc-500">{{ $item->company?->name ?? 'Global' }}</td>
|
||||||
<td class="px-4 py-3"><flux:badge color="{{ ($item->is_default ?? false) ? 'emerald' : 'zinc' }}">{{ ($item->is_default ?? false) ? 'Default' : 'No' }}</flux:badge></td>
|
<td class="px-4 py-3">
|
||||||
|
<flux:badge color="{{ $item->is_default ?? false ? 'emerald' : 'zinc' }}">
|
||||||
|
{{ $item->is_default ?? false ? 'Default' : 'No' }}</flux:badge>
|
||||||
|
</td>
|
||||||
<td class="px-4 py-3 text-zinc-500">{{ $item->tickets_count ?? 0 }}</td>
|
<td class="px-4 py-3 text-zinc-500">{{ $item->tickets_count ?? 0 }}</td>
|
||||||
<td class="px-4 py-3 text-right"><div class="flex justify-end gap-2"><button type="button" wire:click="editTeam({{ $item->id }})" class="hd-btn hd-btn-sm hd-btn-blue">Edit</button><button type="button" wire:click="deleteTeam({{ $item->id }})" class="hd-btn hd-btn-sm hd-btn-red">Delete</button></div></td>
|
<td class="px-4 py-3 text-right">
|
||||||
|
<div class="flex justify-end gap-2"><button type="button"
|
||||||
|
wire:click="editTeam({{ $item->id }})"
|
||||||
|
class="hd-btn hd-btn-sm hd-btn-blue">Edit</button><button type="button"
|
||||||
|
wire:click="deleteTeam({{ $item->id }})"
|
||||||
|
class="hd-btn hd-btn-sm hd-btn-red">Delete</button></div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr><td colspan="5" class="px-4 py-10 text-center text-zinc-500">No teams yet.</td></tr>
|
<tr>
|
||||||
|
<td colspan="5" class="px-4 py-10 text-center text-zinc-500">No teams yet.</td>
|
||||||
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.hd-helpdesk-surface .hd-btn,
|
.hd-helpdesk-surface .hd-btn,
|
||||||
.hd-btn {
|
.hd-btn {
|
||||||
@@ -17,37 +16,69 @@
|
|||||||
box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
|
box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
|
||||||
transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
|
transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface .hd-btn:hover,
|
.hd-helpdesk-surface .hd-btn:hover,
|
||||||
.hd-btn:hover {
|
.hd-btn:hover {
|
||||||
transform: translateY(-1px);
|
transform: translateY(-1px);
|
||||||
box-shadow: 0 16px 34px rgba(0, 0, 0, .30);
|
box-shadow: 0 16px 34px rgba(0, 0, 0, .30);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface .hd-btn-sm,
|
.hd-helpdesk-surface .hd-btn-sm,
|
||||||
.hd-btn-sm {
|
.hd-btn-sm {
|
||||||
border-radius: .65rem;
|
border-radius: .65rem;
|
||||||
padding: .42rem .78rem;
|
padding: .42rem .78rem;
|
||||||
font-size: .8125rem;
|
font-size: .8125rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface .hd-btn-blue,
|
.hd-helpdesk-surface .hd-btn-blue,
|
||||||
.hd-btn-blue { background: #2563eb !important; }
|
.hd-btn-blue {
|
||||||
|
background: #2563eb !important;
|
||||||
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface .hd-btn-blue:hover,
|
.hd-helpdesk-surface .hd-btn-blue:hover,
|
||||||
.hd-btn-blue:hover { background: #1d4ed8 !important; }
|
.hd-btn-blue:hover {
|
||||||
|
background: #1d4ed8 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface .hd-btn-green,
|
.hd-helpdesk-surface .hd-btn-green,
|
||||||
.hd-btn-green { background: #16a34a !important; }
|
.hd-btn-green {
|
||||||
|
background: #16a34a !important;
|
||||||
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface .hd-btn-green:hover,
|
.hd-helpdesk-surface .hd-btn-green:hover,
|
||||||
.hd-btn-green:hover { background: #15803d !important; }
|
.hd-btn-green:hover {
|
||||||
|
background: #15803d !important;
|
||||||
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface .hd-btn-amber,
|
.hd-helpdesk-surface .hd-btn-amber,
|
||||||
.hd-btn-amber { background: #f59e0b !important; }
|
.hd-btn-amber {
|
||||||
|
background: #f59e0b !important;
|
||||||
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface .hd-btn-amber:hover,
|
.hd-helpdesk-surface .hd-btn-amber:hover,
|
||||||
.hd-btn-amber:hover { background: #d97706 !important; }
|
.hd-btn-amber:hover {
|
||||||
|
background: #d97706 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface .hd-btn-red,
|
.hd-helpdesk-surface .hd-btn-red,
|
||||||
.hd-btn-red { background: #dc2626 !important; }
|
.hd-btn-red {
|
||||||
|
background: #dc2626 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface .hd-btn-red:hover,
|
.hd-helpdesk-surface .hd-btn-red:hover,
|
||||||
.hd-btn-red:hover { background: #b91c1c !important; }
|
.hd-btn-red:hover {
|
||||||
|
background: #b91c1c !important;
|
||||||
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface .hd-btn-violet,
|
.hd-helpdesk-surface .hd-btn-violet,
|
||||||
.hd-btn-violet { background: #7c3aed !important; }
|
.hd-btn-violet {
|
||||||
|
background: #7c3aed !important;
|
||||||
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface .hd-btn-violet:hover,
|
.hd-helpdesk-surface .hd-btn-violet:hover,
|
||||||
.hd-btn-violet:hover { background: #6d28d9 !important; }
|
.hd-btn-violet:hover {
|
||||||
|
background: #6d28d9 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface button[type="submit"],
|
.hd-helpdesk-surface button[type="submit"],
|
||||||
.hd-helpdesk-surface button[data-flux-button][type="submit"] {
|
.hd-helpdesk-surface button[data-flux-button][type="submit"] {
|
||||||
@@ -55,18 +86,21 @@
|
|||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
border-color: rgba(255, 255, 255, .14) !important;
|
border-color: rgba(255, 255, 255, .14) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface button[wire\:click^="reset"],
|
.hd-helpdesk-surface button[wire\:click^="reset"],
|
||||||
.hd-helpdesk-surface button[wire\:target^="reset"] {
|
.hd-helpdesk-surface button[wire\:target^="reset"] {
|
||||||
background: #f59e0b !important;
|
background: #f59e0b !important;
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
border-color: rgba(255, 255, 255, .14) !important;
|
border-color: rgba(255, 255, 255, .14) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface button[wire\:click^="edit"],
|
.hd-helpdesk-surface button[wire\:click^="edit"],
|
||||||
.hd-helpdesk-surface button[wire\:target^="edit"] {
|
.hd-helpdesk-surface button[wire\:target^="edit"] {
|
||||||
background: #2563eb !important;
|
background: #2563eb !important;
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
border-color: rgba(255, 255, 255, .14) !important;
|
border-color: rgba(255, 255, 255, .14) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hd-helpdesk-surface button[wire\:click^="delete"],
|
.hd-helpdesk-surface button[wire\:click^="delete"],
|
||||||
.hd-helpdesk-surface button[wire\:target^="delete"] {
|
.hd-helpdesk-surface button[wire\:target^="delete"] {
|
||||||
background: #dc2626 !important;
|
background: #dc2626 !important;
|
||||||
@@ -86,6 +120,7 @@
|
|||||||
outline: none;
|
outline: none;
|
||||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 26px rgba(0, 0, 0, .24);
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 26px rgba(0, 0, 0, .24);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hd-select:focus {
|
.hd-select:focus {
|
||||||
border-color: #60a5fa !important;
|
border-color: #60a5fa !important;
|
||||||
box-shadow: 0 0 0 3px rgba(96, 165, 250, .38), inset 0 1px 0 rgba(255, 255, 255, .05);
|
box-shadow: 0 0 0 3px rgba(96, 165, 250, .38), inset 0 1px 0 rgba(255, 255, 255, .05);
|
||||||
@@ -95,6 +130,7 @@
|
|||||||
.helpdesk-ticket-form * {
|
.helpdesk-ticket-form * {
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.helpdesk-ticket-form input,
|
.helpdesk-ticket-form input,
|
||||||
.helpdesk-ticket-form textarea,
|
.helpdesk-ticket-form textarea,
|
||||||
.helpdesk-ticket-form select,
|
.helpdesk-ticket-form select,
|
||||||
@@ -109,6 +145,7 @@
|
|||||||
caret-color: #f4f4f5 !important;
|
caret-color: #f4f4f5 !important;
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.helpdesk-ticket-form input:disabled,
|
.helpdesk-ticket-form input:disabled,
|
||||||
.helpdesk-ticket-form textarea:disabled,
|
.helpdesk-ticket-form textarea:disabled,
|
||||||
.helpdesk-ticket-form select:disabled,
|
.helpdesk-ticket-form select:disabled,
|
||||||
@@ -121,6 +158,7 @@
|
|||||||
color: #a1a1aa !important;
|
color: #a1a1aa !important;
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.helpdesk-ticket-form input:-webkit-autofill,
|
.helpdesk-ticket-form input:-webkit-autofill,
|
||||||
.helpdesk-ticket-form input:-webkit-autofill:hover,
|
.helpdesk-ticket-form input:-webkit-autofill:hover,
|
||||||
.helpdesk-ticket-form input:-webkit-autofill:focus,
|
.helpdesk-ticket-form input:-webkit-autofill:focus,
|
||||||
@@ -137,13 +175,16 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="hd-helpdesk-surface space-y-6">
|
<div class="hd-helpdesk-surface space-y-6">
|
||||||
<div class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-8 text-white">
|
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-8 text-white">
|
||||||
<div class="grid gap-6 lg:grid-cols-[1fr_320px] lg:items-center">
|
<div class="grid gap-6 lg:grid-cols-[1fr_320px] lg:items-center">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">Support operations</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">Support operations</p>
|
||||||
<h1 class="mt-2 text-3xl font-semibold tracking-tight md:text-4xl">Helpdesk dashboard</h1>
|
<h1 class="mt-2 text-3xl font-semibold tracking-tight md:text-4xl">Helpdesk dashboard</h1>
|
||||||
<p class="mt-3 max-w-3xl text-sm leading-6 text-blue-100/90">Track open workload, closed tickets, response performance, project activity, priorities, Git commits and workflow communication from one professional support workspace.</p>
|
<p class="mt-3 max-w-3xl text-sm leading-6 text-blue-100/90">Track open workload, closed tickets,
|
||||||
|
response performance, project activity, priorities, Git commits and workflow communication from
|
||||||
|
one professional support workspace.</p>
|
||||||
<div class="mt-5 flex flex-wrap gap-2">
|
<div class="mt-5 flex flex-wrap gap-2">
|
||||||
<a href="{{ route('helpdesk.tickets.create') }}" wire:navigate class="hd-btn hd-btn-green">
|
<a href="{{ route('helpdesk.tickets.create') }}" wire:navigate class="hd-btn hd-btn-green">
|
||||||
<i class="fa-solid fa-plus" aria-hidden="true"></i>
|
<i class="fa-solid fa-plus" aria-hidden="true"></i>
|
||||||
|
|||||||
@@ -25,7 +25,8 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<body class="min-h-screen bg-white font-sans text-zinc-950 antialiased dark:bg-zinc-950 dark:text-zinc-100">
|
<body class="min-h-screen bg-white font-sans text-zinc-950 antialiased dark:bg-zinc-950 dark:text-zinc-100">
|
||||||
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);" aria-hidden="true"></div>
|
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);"
|
||||||
|
aria-hidden="true"></div>
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--wms-sidebar-width: 288px;
|
--wms-sidebar-width: 288px;
|
||||||
@@ -272,11 +273,13 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="wms-app-shell" data-wms-shell data-wms-mobile-shell>
|
<div class="wms-app-shell" data-wms-shell data-wms-mobile-shell>
|
||||||
<button type="button" class="wms-mobile-overlay" data-wms-mobile-close aria-label="{{ __('Close navigation menu') }}"></button>
|
<button type="button" class="wms-mobile-overlay" data-wms-mobile-close
|
||||||
|
aria-label="{{ __('Close navigation menu') }}"></button>
|
||||||
|
|
||||||
<aside id="wms-main-sidebar" class="wms-sidebar" data-wms-sidebar aria-label="{{ __('Main navigation') }}">
|
<aside id="wms-main-sidebar" class="wms-sidebar" data-wms-sidebar aria-label="{{ __('Main navigation') }}">
|
||||||
<div class="wms-sidebar-header">
|
<div class="wms-sidebar-header">
|
||||||
<a href="{{ auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard') ? route('platform.dashboard') : route('dashboard') }}" wire:navigate class="wms-brand" aria-label="{{ __('Warehouse Management System') }}">
|
<a href="{{ auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard') ? route('platform.dashboard') : route('dashboard') }}"
|
||||||
|
wire:navigate class="wms-brand" aria-label="{{ __('Warehouse Management System') }}">
|
||||||
<span class="wms-brand-mark" data-wms-brand-toggle title="{{ __('Expand sidebar') }}">
|
<span class="wms-brand-mark" data-wms-brand-toggle title="{{ __('Expand sidebar') }}">
|
||||||
<span class="wms-brand-mark-inner">W</span>
|
<span class="wms-brand-mark-inner">W</span>
|
||||||
</span>
|
</span>
|
||||||
@@ -287,16 +290,19 @@
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button type="button" class="wms-sidebar-toggle" data-wms-sidebar-toggle aria-label="{{ __('Collapse sidebar') }}" aria-expanded="true">
|
<button type="button" class="wms-sidebar-toggle" data-wms-sidebar-toggle
|
||||||
|
aria-label="{{ __('Collapse sidebar') }}" aria-expanded="true">
|
||||||
<span class="wms-toggle-expanded">‹</span>
|
<span class="wms-toggle-expanded">‹</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="button" class="wms-mobile-close" data-wms-mobile-close aria-label="{{ __('Close navigation') }}">×</button>
|
<button type="button" class="wms-mobile-close" data-wms-mobile-close
|
||||||
|
aria-label="{{ __('Close navigation') }}">×</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="wms-sidebar-nav" aria-label="{{ __('Main navigation') }}">
|
<nav class="wms-sidebar-nav" aria-label="{{ __('Main navigation') }}">
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="platform">
|
<div class="wms-sidebar-group" data-wms-menu-group="platform">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="true">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="true">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Platform') }}</span>
|
<span>{{ __('Platform') }}</span>
|
||||||
@@ -305,12 +311,16 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard'))
|
@if (auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard'))
|
||||||
<a href="{{ route('platform.dashboard') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.dashboard')) is-active @endif" title="{{ __('Platform') }}">
|
<a href="{{ route('platform.dashboard') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.dashboard')) is-active @endif"
|
||||||
|
title="{{ __('Platform') }}">
|
||||||
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Platform') }}</span>
|
<span data-wms-sidebar-label>{{ __('Platform') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@elseif(Route::has('dashboard'))
|
@elseif(Route::has('dashboard'))
|
||||||
<a href="{{ route('dashboard') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('dashboard')) is-active @endif" title="{{ __('Dashboard') }}">
|
<a href="{{ route('dashboard') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('dashboard')) is-active @endif"
|
||||||
|
title="{{ __('Dashboard') }}">
|
||||||
<i class="fa-solid fa-gauge-high wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-gauge-high wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Dashboard') }}</span>
|
<span data-wms-sidebar-label>{{ __('Dashboard') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -319,7 +329,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="operations">
|
<div class="wms-sidebar-group" data-wms-menu-group="operations">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="true">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="true">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-chart-simple wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-chart-simple wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Operations') }}</span>
|
<span>{{ __('Operations') }}</span>
|
||||||
@@ -328,42 +339,54 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('analytics.index'))
|
@if (Route::has('analytics.index'))
|
||||||
<a href="{{ route('analytics.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('analytics.*')) is-active @endif" title="{{ __('Analytics') }}">
|
<a href="{{ route('analytics.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('analytics.*')) is-active @endif"
|
||||||
|
title="{{ __('Analytics') }}">
|
||||||
<i class="fa-solid fa-chart-line wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-chart-line wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Analytics') }}</span>
|
<span data-wms-sidebar-label>{{ __('Analytics') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('inventory-management.index'))
|
@if (Route::has('inventory-management.index'))
|
||||||
<a href="{{ route('inventory-management.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('inventory-management.*')) is-active @endif" title="{{ __('Inventory') }}">
|
<a href="{{ route('inventory-management.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('inventory-management.*')) is-active @endif"
|
||||||
|
title="{{ __('Inventory') }}">
|
||||||
<i class="fa-solid fa-boxes-stacked wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-boxes-stacked wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Inventory') }}</span>
|
<span data-wms-sidebar-label>{{ __('Inventory') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('replenishment.index'))
|
@if (Route::has('replenishment.index'))
|
||||||
<a href="{{ route('replenishment.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('replenishment.*')) is-active @endif" title="{{ __('Replenishment') }}">
|
<a href="{{ route('replenishment.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('replenishment.*')) is-active @endif"
|
||||||
|
title="{{ __('Replenishment') }}">
|
||||||
<i class="fa-solid fa-arrows-rotate wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-arrows-rotate wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Replenishment') }}</span>
|
<span data-wms-sidebar-label>{{ __('Replenishment') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('shipping.index'))
|
@if (Route::has('shipping.index'))
|
||||||
<a href="{{ route('shipping.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('shipping.*')) is-active @endif" title="{{ __('Shipping') }}">
|
<a href="{{ route('shipping.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('shipping.*')) is-active @endif"
|
||||||
|
title="{{ __('Shipping') }}">
|
||||||
<i class="fa-solid fa-truck-fast wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-truck-fast wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Shipping') }}</span>
|
<span data-wms-sidebar-label>{{ __('Shipping') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('transportation.index'))
|
@if (Route::has('transportation.index'))
|
||||||
<a href="{{ route('transportation.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('transportation.*')) is-active @endif" title="{{ __('Transportation') }}">
|
<a href="{{ route('transportation.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('transportation.*')) is-active @endif"
|
||||||
|
title="{{ __('Transportation') }}">
|
||||||
<i class="fa-solid fa-truck-ramp-box wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-truck-ramp-box wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Transportation') }}</span>
|
<span data-wms-sidebar-label>{{ __('Transportation') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('carrier-management.index'))
|
@if (Route::has('carrier-management.index'))
|
||||||
<a href="{{ route('carrier-management.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('carrier-management.*')) is-active @endif" title="{{ __('Carriers') }}">
|
<a href="{{ route('carrier-management.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('carrier-management.*')) is-active @endif"
|
||||||
|
title="{{ __('Carriers') }}">
|
||||||
<i class="fa-solid fa-route wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-route wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Carriers') }}</span>
|
<span data-wms-sidebar-label>{{ __('Carriers') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -376,26 +399,30 @@
|
|||||||
|
|
||||||
$helpdeskSettingsRoute = Route::has('helpdesk.settings')
|
$helpdeskSettingsRoute = Route::has('helpdesk.settings')
|
||||||
? 'helpdesk.settings'
|
? 'helpdesk.settings'
|
||||||
: (Route::has('helpdesk.settings.index') ? 'helpdesk.settings.index' : null);
|
: (Route::has('helpdesk.settings.index')
|
||||||
|
? 'helpdesk.settings.index'
|
||||||
|
: null);
|
||||||
|
|
||||||
$helpdeskGitRoute = Route::has('helpdesk.git.index')
|
$helpdeskGitRoute = Route::has('helpdesk.git.index') ? 'helpdesk.git.index' : null;
|
||||||
? 'helpdesk.git.index'
|
|
||||||
: null;
|
|
||||||
|
|
||||||
$helpdeskWorkflowRoute = Route::has('helpdesk.workflow-templates.index')
|
$helpdeskWorkflowRoute = Route::has('helpdesk.workflow-templates.index')
|
||||||
? 'helpdesk.workflow-templates.index'
|
? 'helpdesk.workflow-templates.index'
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
$documentationEnabled = Route::has('documentation.index') || Route::has('documentation.documents.index');
|
$documentationEnabled =
|
||||||
|
Route::has('documentation.index') || Route::has('documentation.documents.index');
|
||||||
|
|
||||||
$documentationRoute = Route::has('documentation.index')
|
$documentationRoute = Route::has('documentation.index')
|
||||||
? 'documentation.index'
|
? 'documentation.index'
|
||||||
: (Route::has('documentation.documents.index') ? 'documentation.documents.index' : null);
|
: (Route::has('documentation.documents.index')
|
||||||
|
? 'documentation.documents.index'
|
||||||
|
: null);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if ($helpdeskEnabled || $documentationEnabled)
|
@if ($helpdeskEnabled || $documentationEnabled)
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="support">
|
<div class="wms-sidebar-group" data-wms-menu-group="support">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="true">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button"
|
||||||
|
data-wms-menu-toggle data-wms-sidebar-label aria-expanded="true">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Support') }}</span>
|
<span>{{ __('Support') }}</span>
|
||||||
@@ -404,35 +431,46 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('helpdesk.index'))
|
@if (Route::has('helpdesk.index'))
|
||||||
<a href="{{ route('helpdesk.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.index')) is-active @endif" title="{{ __('Helpdesk Dashboard') }}">
|
<a href="{{ route('helpdesk.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.index')) is-active @endif"
|
||||||
|
title="{{ __('Helpdesk Dashboard') }}">
|
||||||
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Dashboard') }}</span>
|
<span data-wms-sidebar-label>{{ __('Dashboard') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($helpdeskGitRoute)
|
@if ($helpdeskGitRoute)
|
||||||
<a href="{{ route($helpdeskGitRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.git.*')) is-active @endif" title="{{ __('Git Tracking') }}">
|
<a href="{{ route($helpdeskGitRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.git.*')) is-active @endif"
|
||||||
|
title="{{ __('Git Tracking') }}">
|
||||||
<i class="fa-solid fa-code-commit wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-code-commit wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Git Tracking') }}</span>
|
<span data-wms-sidebar-label>{{ __('Git Tracking') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($helpdeskWorkflowRoute)
|
@if ($helpdeskWorkflowRoute)
|
||||||
<a href="{{ route($helpdeskWorkflowRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.workflow-templates.*')) is-active @endif" title="{{ __('Workflow Emails') }}">
|
<a href="{{ route($helpdeskWorkflowRoute) }}" wire:navigate
|
||||||
<i class="fa-solid fa-envelope-circle-check wms-sidebar-icon" aria-hidden="true"></i>
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.workflow-templates.*')) is-active @endif"
|
||||||
|
title="{{ __('Workflow Emails') }}">
|
||||||
|
<i class="fa-solid fa-envelope-circle-check wms-sidebar-icon"
|
||||||
|
aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Workflow Emails') }}</span>
|
<span data-wms-sidebar-label>{{ __('Workflow Emails') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($documentationRoute)
|
@if ($documentationRoute)
|
||||||
<a href="{{ route($documentationRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('documentation.*')) is-active @endif" title="{{ __('Documentation') }}">
|
<a href="{{ route($documentationRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('documentation.*')) is-active @endif"
|
||||||
|
title="{{ __('Documentation') }}">
|
||||||
<i class="fa-solid fa-book-open wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-book-open wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Documentation') }}</span>
|
<span data-wms-sidebar-label>{{ __('Documentation') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($helpdeskSettingsRoute)
|
@if ($helpdeskSettingsRoute)
|
||||||
<a href="{{ route($helpdeskSettingsRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.settings') || request()->routeIs('helpdesk.settings.index')) is-active @endif" title="{{ __('Helpdesk Settings') }}">
|
<a href="{{ route($helpdeskSettingsRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.settings') || request()->routeIs('helpdesk.settings.index')) is-active @endif"
|
||||||
|
title="{{ __('Helpdesk Settings') }}">
|
||||||
<i class="fa-solid fa-gears wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-gears wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Settings') }}</span>
|
<span data-wms-sidebar-label>{{ __('Settings') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -442,7 +480,8 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="integration-reporting">
|
<div class="wms-sidebar-group" data-wms-menu-group="integration-reporting">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="true">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="true">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Integration & Reporting') }}</span>
|
<span>{{ __('Integration & Reporting') }}</span>
|
||||||
@@ -451,28 +490,36 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('m3-integration.index'))
|
@if (Route::has('m3-integration.index'))
|
||||||
<a href="{{ route('m3-integration.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('m3-integration.*')) is-active @endif" title="{{ __('M3 Integration') }}">
|
<a href="{{ route('m3-integration.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('m3-integration.*')) is-active @endif"
|
||||||
|
title="{{ __('M3 Integration') }}">
|
||||||
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('M3 Integration') }}</span>
|
<span data-wms-sidebar-label>{{ __('M3 Integration') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('sentinel-integration.index'))
|
@if (Route::has('sentinel-integration.index'))
|
||||||
<a href="{{ route('sentinel-integration.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('sentinel-integration.*')) is-active @endif" title="{{ __('Sentinel') }}">
|
<a href="{{ route('sentinel-integration.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('sentinel-integration.*')) is-active @endif"
|
||||||
|
title="{{ __('Sentinel') }}">
|
||||||
<i class="fa-solid fa-satellite-dish wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-satellite-dish wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Sentinel') }}</span>
|
<span data-wms-sidebar-label>{{ __('Sentinel') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('document-archive.index'))
|
@if (Route::has('document-archive.index'))
|
||||||
<a href="{{ route('document-archive.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('document-archive.*')) is-active @endif" title="{{ __('Documents') }}">
|
<a href="{{ route('document-archive.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('document-archive.*')) is-active @endif"
|
||||||
|
title="{{ __('Documents') }}">
|
||||||
<i class="fa-solid fa-box-archive wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-box-archive wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Documents') }}</span>
|
<span data-wms-sidebar-label>{{ __('Documents') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('reporting.index'))
|
@if (Route::has('reporting.index'))
|
||||||
<a href="{{ route('reporting.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('reporting.*')) is-active @endif" title="{{ __('Reporting') }}">
|
<a href="{{ route('reporting.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('reporting.*')) is-active @endif"
|
||||||
|
title="{{ __('Reporting') }}">
|
||||||
<i class="fa-solid fa-file-lines wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-file-lines wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Reporting') }}</span>
|
<span data-wms-sidebar-label>{{ __('Reporting') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -481,7 +528,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="administration">
|
<div class="wms-sidebar-group" data-wms-menu-group="administration">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="true">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="true">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Administration') }}</span>
|
<span>{{ __('Administration') }}</span>
|
||||||
@@ -490,42 +538,54 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('warehouses.index'))
|
@if (Route::has('warehouses.index'))
|
||||||
<a href="{{ route('warehouses.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('warehouses.*')) is-active @endif" title="{{ __('Warehouses') }}">
|
<a href="{{ route('warehouses.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('warehouses.*')) is-active @endif"
|
||||||
|
title="{{ __('Warehouses') }}">
|
||||||
<i class="fa-solid fa-warehouse wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-warehouse wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Warehouses') }}</span>
|
<span data-wms-sidebar-label>{{ __('Warehouses') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('warehouse-rules.index'))
|
@if (Route::has('warehouse-rules.index'))
|
||||||
<a href="{{ route('warehouse-rules.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('warehouse-rules.*')) is-active @endif" title="{{ __('Validation Rules') }}">
|
<a href="{{ route('warehouse-rules.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('warehouse-rules.*')) is-active @endif"
|
||||||
|
title="{{ __('Validation Rules') }}">
|
||||||
<i class="fa-solid fa-shield-halved wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-shield-halved wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Validation Rules') }}</span>
|
<span data-wms-sidebar-label>{{ __('Validation Rules') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.prices.index'))
|
@if (auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.prices.index'))
|
||||||
<a href="{{ route('platform.prices.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.prices.*')) is-active @endif" title="{{ __('Prices') }}">
|
<a href="{{ route('platform.prices.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.prices.*')) is-active @endif"
|
||||||
|
title="{{ __('Prices') }}">
|
||||||
<i class="fa-solid fa-tags wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-tags wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Prices') }}</span>
|
<span data-wms-sidebar-label>{{ __('Prices') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('configuration.index'))
|
@if (Route::has('configuration.index'))
|
||||||
<a href="{{ route('configuration.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('configuration.*')) is-active @endif" title="{{ __('Configuration') }}">
|
<a href="{{ route('configuration.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('configuration.*')) is-active @endif"
|
||||||
|
title="{{ __('Configuration') }}">
|
||||||
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Configuration') }}</span>
|
<span data-wms-sidebar-label>{{ __('Configuration') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('security.index'))
|
@if (Route::has('security.index'))
|
||||||
<a href="{{ route('security.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('security.*')) is-active @endif" title="{{ __('Security') }}">
|
<a href="{{ route('security.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('security.*')) is-active @endif"
|
||||||
|
title="{{ __('Security') }}">
|
||||||
<i class="fa-solid fa-user-shield wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-user-shield wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Security') }}</span>
|
<span data-wms-sidebar-label>{{ __('Security') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('audit.index'))
|
@if (Route::has('audit.index'))
|
||||||
<a href="{{ route('audit.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('audit.*')) is-active @endif" title="{{ __('Audit') }}">
|
<a href="{{ route('audit.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('audit.*')) is-active @endif"
|
||||||
|
title="{{ __('Audit') }}">
|
||||||
<i class="fa-solid fa-clipboard-check wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-clipboard-check wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Audit') }}</span>
|
<span data-wms-sidebar-label>{{ __('Audit') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -535,7 +595,8 @@
|
|||||||
|
|
||||||
@if (auth()->user()?->isMpbaPlatformAdmin())
|
@if (auth()->user()?->isMpbaPlatformAdmin())
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="platform-administration">
|
<div class="wms-sidebar-group" data-wms-menu-group="platform-administration">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="true">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button"
|
||||||
|
data-wms-menu-toggle data-wms-sidebar-label aria-expanded="true">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-building-shield wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-building-shield wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Platform Administration') }}</span>
|
<span>{{ __('Platform Administration') }}</span>
|
||||||
@@ -544,28 +605,36 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('platform.companies.index'))
|
@if (Route::has('platform.companies.index'))
|
||||||
<a href="{{ route('platform.companies.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.companies.*')) is-active @endif" title="{{ __('Companies') }}">
|
<a href="{{ route('platform.companies.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.companies.*')) is-active @endif"
|
||||||
|
title="{{ __('Companies') }}">
|
||||||
<i class="fa-solid fa-building wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-building wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Companies') }}</span>
|
<span data-wms-sidebar-label>{{ __('Companies') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('platform.licenses.index'))
|
@if (Route::has('platform.licenses.index'))
|
||||||
<a href="{{ route('platform.licenses.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.licenses.*')) is-active @endif" title="{{ __('Licences') }}">
|
<a href="{{ route('platform.licenses.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.licenses.*')) is-active @endif"
|
||||||
|
title="{{ __('Licences') }}">
|
||||||
<i class="fa-solid fa-key wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-key wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Licences') }}</span>
|
<span data-wms-sidebar-label>{{ __('Licences') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('platform.payments.index'))
|
@if (Route::has('platform.payments.index'))
|
||||||
<a href="{{ route('platform.payments.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.payments.*')) is-active @endif" title="{{ __('Payments') }}">
|
<a href="{{ route('platform.payments.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.payments.*')) is-active @endif"
|
||||||
|
title="{{ __('Payments') }}">
|
||||||
<i class="fa-solid fa-credit-card wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-credit-card wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('countries.index'))
|
@if (Route::has('countries.index'))
|
||||||
<a href="{{ route('countries.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('countries.*')) is-active @endif" title="{{ __('Countries') }}">
|
<a href="{{ route('countries.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('countries.*')) is-active @endif"
|
||||||
|
title="{{ __('Countries') }}">
|
||||||
<i class="fa-solid fa-globe wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-globe wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Countries') }}</span>
|
<span data-wms-sidebar-label>{{ __('Countries') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -574,13 +643,8 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</nav>
|
</nav>
|
||||||
<button
|
<button type="button" class="wms-sidebar-resizer" data-wms-sidebar-resizer
|
||||||
type="button"
|
aria-label="{{ __('Resize sidebar') }}" title="{{ __('Drag to resize sidebar') }}"></button>
|
||||||
class="wms-sidebar-resizer"
|
|
||||||
data-wms-sidebar-resizer
|
|
||||||
aria-label="{{ __('Resize sidebar') }}"
|
|
||||||
title="{{ __('Drag to resize sidebar') }}"
|
|
||||||
></button>
|
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<div class="wms-main-panel">
|
<div class="wms-main-panel">
|
||||||
@@ -592,12 +656,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div id="wms-toast-stack"
|
||||||
id="wms-toast-stack"
|
|
||||||
class="fixed right-4 top-4 z-[9999] flex w-[min(24rem,calc(100vw-2rem))] flex-col gap-3 font-sans"
|
class="fixed right-4 top-4 z-[9999] flex w-[min(24rem,calc(100vw-2rem))] flex-col gap-3 font-sans"
|
||||||
aria-live="polite"
|
aria-live="polite" aria-atomic="true"></div>
|
||||||
aria-atomic="true"
|
|
||||||
></div>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.wmsToast = function(options) {
|
window.wmsToast = function(options) {
|
||||||
@@ -760,7 +821,8 @@
|
|||||||
const expanded = root.dataset.wmsSidebar !== 'collapsed';
|
const expanded = root.dataset.wmsSidebar !== 'collapsed';
|
||||||
|
|
||||||
button.setAttribute('aria-expanded', expanded ? 'true' : 'false');
|
button.setAttribute('aria-expanded', expanded ? 'true' : 'false');
|
||||||
button.setAttribute('aria-label', expanded ? '{{ __('Collapse sidebar') }}' : '{{ __('Expand sidebar') }}');
|
button.setAttribute('aria-label', expanded ? '{{ __('Collapse sidebar') }}' :
|
||||||
|
'{{ __('Expand sidebar') }}');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -812,7 +874,8 @@
|
|||||||
const selectedByRoute = groups.find((group) => groupHasActiveLink(group)) || null;
|
const selectedByRoute = groups.find((group) => groupHasActiveLink(group)) || null;
|
||||||
const selectedByManualClick = groups.find((group) => group.dataset.wmsManualActive === 'true') || null;
|
const selectedByManualClick = groups.find((group) => group.dataset.wmsManualActive === 'true') || null;
|
||||||
const selectedGroup = selectedByRoute || selectedByManualClick;
|
const selectedGroup = selectedByRoute || selectedByManualClick;
|
||||||
const shouldOpenPlatformForFirstVisit = !selectedGroup && localStorage.getItem(PLATFORM_FIRST_OPEN_KEY) !== '1';
|
const shouldOpenPlatformForFirstVisit = !selectedGroup && localStorage.getItem(
|
||||||
|
PLATFORM_FIRST_OPEN_KEY) !== '1';
|
||||||
|
|
||||||
resetAllMenuGroups();
|
resetAllMenuGroups();
|
||||||
|
|
||||||
@@ -885,7 +948,8 @@
|
|||||||
startX = getClientX(event);
|
startX = getClientX(event);
|
||||||
|
|
||||||
const currentWidth = Number.parseInt(
|
const currentWidth = Number.parseInt(
|
||||||
getComputedStyle(document.documentElement).getPropertyValue('--wms-sidebar-width'),
|
getComputedStyle(document.documentElement).getPropertyValue(
|
||||||
|
'--wms-sidebar-width'),
|
||||||
10
|
10
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -920,10 +984,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
handle.addEventListener('mousedown', startResize);
|
handle.addEventListener('mousedown', startResize);
|
||||||
handle.addEventListener('touchstart', startResize, { passive: false });
|
handle.addEventListener('touchstart', startResize, {
|
||||||
|
passive: false
|
||||||
|
});
|
||||||
|
|
||||||
window.addEventListener('mousemove', moveResize);
|
window.addEventListener('mousemove', moveResize);
|
||||||
window.addEventListener('touchmove', moveResize, { passive: false });
|
window.addEventListener('touchmove', moveResize, {
|
||||||
|
passive: false
|
||||||
|
});
|
||||||
|
|
||||||
window.addEventListener('mouseup', stopResize);
|
window.addEventListener('mouseup', stopResize);
|
||||||
window.addEventListener('touchend', stopResize);
|
window.addEventListener('touchend', stopResize);
|
||||||
@@ -1040,7 +1108,8 @@
|
|||||||
link.dataset.wmsMobileBound = '1';
|
link.dataset.wmsMobileBound = '1';
|
||||||
|
|
||||||
link.addEventListener('click', function() {
|
link.addEventListener('click', function() {
|
||||||
document.querySelectorAll('.wms-sidebar-link.is-active').forEach((activeLink) => {
|
document.querySelectorAll('.wms-sidebar-link.is-active').forEach((
|
||||||
|
activeLink) => {
|
||||||
activeLink.classList.remove('is-active');
|
activeLink.classList.remove('is-active');
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1066,4 +1135,5 @@
|
|||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,31 +1,27 @@
|
|||||||
@php
|
@php
|
||||||
$user = auth()->user();
|
$user = auth()->user();
|
||||||
$dashboardRoute = Route::has('platform.dashboard') && method_exists($user, 'isMpbaPlatformAdmin') && $user?->isMpbaPlatformAdmin()
|
$dashboardRoute =
|
||||||
|
Route::has('platform.dashboard') && method_exists($user, 'isMpbaPlatformAdmin') && $user?->isMpbaPlatformAdmin()
|
||||||
? 'platform.dashboard'
|
? 'platform.dashboard'
|
||||||
: (Route::has('dashboard') ? 'dashboard' : null);
|
: (Route::has('dashboard')
|
||||||
|
? 'dashboard'
|
||||||
|
: null);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<header class="sticky top-0 z-40 border-b border-white/10 bg-[#111118]/95 backdrop-blur" role="banner">
|
<header class="sticky top-0 z-40 border-b border-white/10 bg-[#111118]/95 backdrop-blur" role="banner">
|
||||||
<div class="flex h-16 items-center justify-between px-4 lg:px-6">
|
<div class="flex h-16 items-center justify-between px-4 lg:px-6">
|
||||||
<div class="flex min-w-0 items-center gap-3">
|
<div class="flex min-w-0 items-center gap-3">
|
||||||
<button
|
<button type="button"
|
||||||
type="button"
|
|
||||||
class="inline-flex h-10 w-10 items-center justify-center rounded-xl border border-white/10 bg-white/5 text-white lg:hidden"
|
class="inline-flex h-10 w-10 items-center justify-center rounded-xl border border-white/10 bg-white/5 text-white lg:hidden"
|
||||||
data-wms-mobile-open
|
data-wms-mobile-open aria-label="{{ __('Open navigation menu') }}" aria-controls="wms-main-sidebar"
|
||||||
aria-label="{{ __('Open navigation menu') }}"
|
aria-expanded="false">
|
||||||
aria-controls="wms-main-sidebar"
|
|
||||||
aria-expanded="false"
|
|
||||||
>
|
|
||||||
<i class="fa-solid fa-bars" aria-hidden="true"></i>
|
<i class="fa-solid fa-bars" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<a
|
<a href="{{ $dashboardRoute ? route($dashboardRoute) : '#' }}" wire:navigate
|
||||||
href="{{ $dashboardRoute ? route($dashboardRoute) : '#' }}"
|
class="flex min-w-0 items-center gap-3" aria-label="{{ __('Warehouse Management System') }}">
|
||||||
wire:navigate
|
<span
|
||||||
class="flex min-w-0 items-center gap-3"
|
class="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-cyan-600 text-sm font-bold text-white shadow-lg shadow-cyan-950/40">
|
||||||
aria-label="{{ __('Warehouse Management System') }}"
|
|
||||||
>
|
|
||||||
<span class="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-cyan-600 text-sm font-bold text-white shadow-lg shadow-cyan-950/40">
|
|
||||||
W
|
W
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@@ -40,35 +36,28 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="relative flex shrink-0 items-center gap-3" x-data="{ open: false }" x-on:keydown.escape.window="open = false">
|
<div class="relative flex shrink-0 items-center gap-3" x-data="{ open: false }"
|
||||||
<button
|
x-on:keydown.escape.window="open = false">
|
||||||
type="button"
|
<button type="button"
|
||||||
class="flex items-center gap-3 rounded-2xl border border-white/10 bg-white/5 px-3 py-2 text-left transition hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 focus:ring-offset-[#111118]"
|
class="flex items-center gap-3 rounded-2xl border border-white/10 bg-white/5 px-3 py-2 text-left transition hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 focus:ring-offset-[#111118]"
|
||||||
x-on:click="open = ! open"
|
x-on:click="open = ! open" x-bind:aria-expanded="open.toString()" aria-haspopup="menu"
|
||||||
x-bind:aria-expanded="open.toString()"
|
data-test="top-user-menu-button">
|
||||||
aria-haspopup="menu"
|
|
||||||
data-test="top-user-menu-button"
|
|
||||||
>
|
|
||||||
<span class="hidden text-right sm:block">
|
<span class="hidden text-right sm:block">
|
||||||
<span class="block text-sm font-semibold text-white">{{ $user?->name ?? __('User') }}</span>
|
<span class="block text-sm font-semibold text-white">{{ $user?->name ?? __('User') }}</span>
|
||||||
<span class="block text-xs text-white/50">{{ $user?->email ?? '' }}</span>
|
<span class="block text-xs text-white/50">{{ $user?->email ?? '' }}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="flex h-10 w-10 items-center justify-center rounded-full bg-blue-700 text-xs font-bold text-white shadow-lg shadow-blue-950/40">
|
<span
|
||||||
|
class="flex h-10 w-10 items-center justify-center rounded-full bg-blue-700 text-xs font-bold text-white shadow-lg shadow-blue-950/40">
|
||||||
{{ $user?->initials() ?? 'U' }}
|
{{ $user?->initials() ?? 'U' }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<i class="fa-solid fa-chevron-down hidden text-white/50 sm:block" aria-hidden="true"></i>
|
<i class="fa-solid fa-chevron-down hidden text-white/50 sm:block" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div
|
<div x-cloak x-show="open" x-transition.origin.top.right x-on:click.outside="open = false"
|
||||||
x-cloak
|
|
||||||
x-show="open"
|
|
||||||
x-transition.origin.top.right
|
|
||||||
x-on:click.outside="open = false"
|
|
||||||
class="absolute right-0 top-full mt-2 w-72 overflow-hidden rounded-2xl border border-white/10 bg-[#181820] shadow-2xl shadow-black/40"
|
class="absolute right-0 top-full mt-2 w-72 overflow-hidden rounded-2xl border border-white/10 bg-[#181820] shadow-2xl shadow-black/40"
|
||||||
role="menu"
|
role="menu">
|
||||||
>
|
|
||||||
<div class="border-b border-white/10 px-4 py-3">
|
<div class="border-b border-white/10 px-4 py-3">
|
||||||
<div class="text-sm font-semibold text-white">{{ $user?->name ?? __('User') }}</div>
|
<div class="text-sm font-semibold text-white">{{ $user?->name ?? __('User') }}</div>
|
||||||
<div class="truncate text-xs text-white/50">{{ $user?->email ?? '' }}</div>
|
<div class="truncate text-xs text-white/50">{{ $user?->email ?? '' }}</div>
|
||||||
@@ -76,26 +65,34 @@
|
|||||||
|
|
||||||
<div class="p-2">
|
<div class="p-2">
|
||||||
@if ($dashboardRoute)
|
@if ($dashboardRoute)
|
||||||
<a href="{{ route($dashboardRoute) }}" wire:navigate class="block rounded-xl px-3 py-2 text-sm text-white/80 hover:bg-white/10 hover:text-white" role="menuitem">
|
<a href="{{ route($dashboardRoute) }}" wire:navigate
|
||||||
|
class="block rounded-xl px-3 py-2 text-sm text-white/80 hover:bg-white/10 hover:text-white"
|
||||||
|
role="menuitem">
|
||||||
{{ __('Dashboard') }}
|
{{ __('Dashboard') }}
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('profile.edit'))
|
@if (Route::has('profile.edit'))
|
||||||
<a href="{{ route('profile.edit') }}" wire:navigate class="block rounded-xl px-3 py-2 text-sm text-white/80 hover:bg-white/10 hover:text-white" role="menuitem">
|
<a href="{{ route('profile.edit') }}" wire:navigate
|
||||||
|
class="block rounded-xl px-3 py-2 text-sm text-white/80 hover:bg-white/10 hover:text-white"
|
||||||
|
role="menuitem">
|
||||||
{{ __('Profile') }}
|
{{ __('Profile') }}
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('settings.index'))
|
@if (Route::has('settings.index'))
|
||||||
<a href="{{ route('settings.index') }}" wire:navigate class="block rounded-xl px-3 py-2 text-sm text-white/80 hover:bg-white/10 hover:text-white" role="menuitem">
|
<a href="{{ route('settings.index') }}" wire:navigate
|
||||||
|
class="block rounded-xl px-3 py-2 text-sm text-white/80 hover:bg-white/10 hover:text-white"
|
||||||
|
role="menuitem">
|
||||||
{{ __('Settings') }}
|
{{ __('Settings') }}
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<form method="POST" action="{{ route('logout') }}" class="mt-2 border-t border-white/10 pt-2">
|
<form method="POST" action="{{ route('logout') }}" class="mt-2 border-t border-white/10 pt-2">
|
||||||
@csrf
|
@csrf
|
||||||
<button type="submit" class="w-full rounded-xl px-3 py-2 text-left text-sm text-red-300 hover:bg-red-500/10 hover:text-red-200" role="menuitem" data-test="logout-button">
|
<button type="submit"
|
||||||
|
class="w-full rounded-xl px-3 py-2 text-left text-sm text-red-300 hover:bg-red-500/10 hover:text-red-200"
|
||||||
|
role="menuitem" data-test="logout-button">
|
||||||
{{ __('Sign out') }}
|
{{ __('Sign out') }}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -3,17 +3,23 @@
|
|||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="text-sm font-medium text-zinc-500">Total tickets</div>
|
<div class="text-sm font-medium text-zinc-500">Total tickets</div>
|
||||||
<div class="mt-3 text-4xl font-semibold text-zinc-950 dark:text-white">{{ $totalCount }}</div>
|
<div class="mt-3 text-4xl font-semibold text-zinc-950 dark:text-white">{{ $totalCount }}</div>
|
||||||
<div class="mt-3 h-2 rounded-full bg-zinc-100 dark:bg-zinc-800"><div class="h-2 rounded-full bg-blue-500" style="width: 100%"></div></div>
|
<div class="mt-3 h-2 rounded-full bg-zinc-100 dark:bg-zinc-800">
|
||||||
|
<div class="h-2 rounded-full bg-blue-500" style="width: 100%"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="text-sm font-medium text-zinc-500">Open tickets</div>
|
<div class="text-sm font-medium text-zinc-500">Open tickets</div>
|
||||||
<div class="mt-3 text-4xl font-semibold text-blue-700 dark:text-blue-300">{{ $openCount }}</div>
|
<div class="mt-3 text-4xl font-semibold text-blue-700 dark:text-blue-300">{{ $openCount }}</div>
|
||||||
<div class="mt-3 h-2 rounded-full bg-zinc-100 dark:bg-zinc-800"><div class="h-2 rounded-full bg-blue-500" style="width: {{ $openPercent }}%"></div></div>
|
<div class="mt-3 h-2 rounded-full bg-zinc-100 dark:bg-zinc-800">
|
||||||
|
<div class="h-2 rounded-full bg-blue-500" style="width: {{ $openPercent }}%"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="text-sm font-medium text-zinc-500">Closed tickets</div>
|
<div class="text-sm font-medium text-zinc-500">Closed tickets</div>
|
||||||
<div class="mt-3 text-4xl font-semibold text-emerald-700 dark:text-emerald-300">{{ $closedCount }}</div>
|
<div class="mt-3 text-4xl font-semibold text-emerald-700 dark:text-emerald-300">{{ $closedCount }}</div>
|
||||||
<div class="mt-3 h-2 rounded-full bg-zinc-100 dark:bg-zinc-800"><div class="h-2 rounded-full bg-emerald-500" style="width: {{ $closedPercent }}%"></div></div>
|
<div class="mt-3 h-2 rounded-full bg-zinc-100 dark:bg-zinc-800">
|
||||||
|
<div class="h-2 rounded-full bg-emerald-500" style="width: {{ $closedPercent }}%"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="text-sm font-medium text-zinc-500">High priority</div>
|
<div class="text-sm font-medium text-zinc-500">High priority</div>
|
||||||
@@ -23,7 +29,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid gap-6 lg:grid-cols-3">
|
<div class="grid gap-6 lg:grid-cols-3">
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900 lg:col-span-2">
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900 lg:col-span-2">
|
||||||
<div class="mb-5 flex items-center justify-between">
|
<div class="mb-5 flex items-center justify-between">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="text-lg font-semibold text-zinc-900 dark:text-white">Performance</h2>
|
<h2 class="text-lg font-semibold text-zinc-900 dark:text-white">Performance</h2>
|
||||||
@@ -33,12 +40,18 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="space-y-5">
|
<div class="space-y-5">
|
||||||
<div>
|
<div>
|
||||||
<div class="mb-2 flex justify-between text-sm"><span>Closed</span><span>{{ $closedPercent }}%</span></div>
|
<div class="mb-2 flex justify-between text-sm"><span>Closed</span><span>{{ $closedPercent }}%</span>
|
||||||
<div class="h-4 rounded-full bg-zinc-100 dark:bg-zinc-800"><div class="h-4 rounded-full bg-emerald-500" style="width: {{ $closedPercent }}%"></div></div>
|
</div>
|
||||||
|
<div class="h-4 rounded-full bg-zinc-100 dark:bg-zinc-800">
|
||||||
|
<div class="h-4 rounded-full bg-emerald-500" style="width: {{ $closedPercent }}%"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="mb-2 flex justify-between text-sm"><span>Open</span><span>{{ $openPercent }}%</span></div>
|
<div class="mb-2 flex justify-between text-sm"><span>Open</span><span>{{ $openPercent }}%</span>
|
||||||
<div class="h-4 rounded-full bg-zinc-100 dark:bg-zinc-800"><div class="h-4 rounded-full bg-blue-500" style="width: {{ $openPercent }}%"></div></div>
|
</div>
|
||||||
|
<div class="h-4 rounded-full bg-zinc-100 dark:bg-zinc-800">
|
||||||
|
<div class="h-4 rounded-full bg-blue-500" style="width: {{ $openPercent }}%"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,16 +59,21 @@
|
|||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="mb-5 flex items-center justify-between">
|
<div class="mb-5 flex items-center justify-between">
|
||||||
<h2 class="text-lg font-semibold text-zinc-900 dark:text-white">Recent commits</h2>
|
<h2 class="text-lg font-semibold text-zinc-900 dark:text-white">Recent commits</h2>
|
||||||
<a href="{{ route('helpdesk.settings') }}" wire:navigate class="hd-btn hd-btn-sm hd-btn-violet">Git setup</a>
|
<a href="{{ route('helpdesk.settings') }}" wire:navigate class="hd-btn hd-btn-sm hd-btn-violet">Git
|
||||||
|
setup</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
@forelse ($recentCommits as $commit)
|
@forelse ($recentCommits as $commit)
|
||||||
<div class="rounded-xl border border-zinc-100 p-3 dark:border-zinc-800">
|
<div class="rounded-xl border border-zinc-100 p-3 dark:border-zinc-800">
|
||||||
<div class="font-mono text-xs text-zinc-500">{{ $commit->short_hash }} · {{ $commit->repository?->name }}</div>
|
<div class="font-mono text-xs text-zinc-500">{{ $commit->short_hash }} ·
|
||||||
<div class="mt-1 truncate text-sm font-medium text-zinc-900 dark:text-zinc-100">{{ $commit->message }}</div>
|
{{ $commit->repository?->name }}</div>
|
||||||
|
<div class="mt-1 truncate text-sm font-medium text-zinc-900 dark:text-zinc-100">
|
||||||
|
{{ $commit->message }}</div>
|
||||||
</div>
|
</div>
|
||||||
@empty
|
@empty
|
||||||
<div class="rounded-xl border border-dashed border-zinc-300 p-4 text-center text-sm text-zinc-500 dark:border-zinc-700">No commits tracked yet.</div>
|
<div
|
||||||
|
class="rounded-xl border border-dashed border-zinc-300 p-4 text-center text-sm text-zinc-500 dark:border-zinc-700">
|
||||||
|
No commits tracked yet.</div>
|
||||||
@endforelse
|
@endforelse
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -67,19 +85,26 @@
|
|||||||
<h2 class="text-lg font-semibold text-zinc-900 dark:text-white">Recent tickets</h2>
|
<h2 class="text-lg font-semibold text-zinc-900 dark:text-white">Recent tickets</h2>
|
||||||
<p class="text-sm text-zinc-500 dark:text-zinc-400">Latest support activity.</p>
|
<p class="text-sm text-zinc-500 dark:text-zinc-400">Latest support activity.</p>
|
||||||
</div>
|
</div>
|
||||||
<a href="{{ route('helpdesk.tickets.index') }}" wire:navigate class="hd-btn hd-btn-sm hd-btn-blue">View all</a>
|
<a href="{{ route('helpdesk.tickets.index') }}" wire:navigate class="hd-btn hd-btn-sm hd-btn-blue">View
|
||||||
|
all</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
@forelse ($recentTickets as $ticket)
|
@forelse ($recentTickets as $ticket)
|
||||||
<a href="{{ route('helpdesk.tickets.show', $ticket) }}" wire:navigate class="block rounded-xl border border-zinc-100 p-3 hover:bg-zinc-50 dark:border-zinc-800 dark:hover:bg-zinc-800">
|
<a href="{{ route('helpdesk.tickets.show', $ticket) }}" wire:navigate
|
||||||
|
class="block rounded-xl border border-zinc-100 p-3 hover:bg-zinc-50 dark:border-zinc-800 dark:hover:bg-zinc-800">
|
||||||
<div class="flex items-center justify-between gap-3">
|
<div class="flex items-center justify-between gap-3">
|
||||||
<span class="truncate text-sm font-medium text-zinc-900 dark:text-zinc-100">{{ $ticket->subject }}</span>
|
<span
|
||||||
<flux:badge color="{{ $ticket->priority->color }}" size="sm">{{ $ticket->priority->name }}</flux:badge>
|
class="truncate text-sm font-medium text-zinc-900 dark:text-zinc-100">{{ $ticket->subject }}</span>
|
||||||
|
<flux:badge color="{{ $ticket->priority->color }}" size="sm">
|
||||||
|
{{ $ticket->priority->name }}</flux:badge>
|
||||||
|
</div>
|
||||||
|
<div class="mt-1 text-xs text-zinc-500">{{ $ticket->reference }} · {{ $ticket->status->name }}
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-1 text-xs text-zinc-500">{{ $ticket->reference }} · {{ $ticket->status->name }}</div>
|
|
||||||
</a>
|
</a>
|
||||||
@empty
|
@empty
|
||||||
<div class="rounded-xl border border-dashed border-zinc-300 p-4 text-center text-sm text-zinc-500 dark:border-zinc-700">No helpdesk tickets yet.</div>
|
<div
|
||||||
|
class="rounded-xl border border-dashed border-zinc-300 p-4 text-center text-sm text-zinc-500 dark:border-zinc-700">
|
||||||
|
No helpdesk tickets yet.</div>
|
||||||
@endforelse
|
@endforelse
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
|
|
||||||
@vite(['resources/css/app.css'])
|
@vite(['resources/css/app.css'])
|
||||||
|
|
||||||
<div class="hd-helpdesk-surface mx-auto max-w-[1800px] space-y-6" dusk="helpdesk-kanban-board" wire:poll.visible.5s="refreshBoard" wire:key="helpdesk-kanban-root-{{ $board_id ?? 0 }}-{{ $refreshNonce }}">
|
<div class="hd-helpdesk-surface mx-auto max-w-[1800px] space-y-6" dusk="helpdesk-kanban-board"
|
||||||
<div class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
wire:poll.visible.5s="refreshBoard" wire:key="helpdesk-kanban-root-{{ $board_id ?? 0 }}-{{ $refreshNonce }}">
|
||||||
|
<div
|
||||||
|
class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
||||||
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">Helpdesk workflow</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">Helpdesk workflow</p>
|
||||||
<h1 class="mt-2 text-3xl font-semibold tracking-tight">Kanban board</h1>
|
<h1 class="mt-2 text-3xl font-semibold tracking-tight">Kanban board</h1>
|
||||||
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">Drag tickets between board columns. Boards and columns are configured in Helpdesk Settings.</p>
|
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">Drag tickets between board columns. Boards and
|
||||||
|
columns are configured in Helpdesk Settings.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
@@ -36,102 +38,127 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@if ($boards->isEmpty())
|
@if ($boards->isEmpty())
|
||||||
<div class="rounded-2xl border border-amber-300 bg-amber-50 px-5 py-4 text-sm text-amber-900 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-100">
|
<div
|
||||||
|
class="rounded-2xl border border-amber-300 bg-amber-50 px-5 py-4 text-sm text-amber-900 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-100">
|
||||||
No Kanban boards exist yet. Open Helpdesk Settings and create a board with at least one status column.
|
No Kanban boards exist yet. Open Helpdesk Settings and create a board with at least one status column.
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<div class="flex flex-col gap-4 rounded-2xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-700 dark:bg-zinc-900 md:flex-row md:items-center md:justify-between">
|
<div
|
||||||
|
class="flex flex-col gap-4 rounded-2xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-700 dark:bg-zinc-900 md:flex-row md:items-center md:justify-between">
|
||||||
<div class="min-w-0">
|
<div class="min-w-0">
|
||||||
<h2 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">Active board</h2>
|
<h2 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">Active board</h2>
|
||||||
<p class="text-xs text-zinc-500 dark:text-zinc-400">{{ $board?->description ?: 'Use settings to configure which statuses appear as draggable columns.' }}</p>
|
<p class="text-xs text-zinc-500 dark:text-zinc-400">
|
||||||
|
{{ $board?->description ?: 'Use settings to configure which statuses appear as draggable columns.' }}
|
||||||
|
</p>
|
||||||
@if ($board?->owner)
|
@if ($board?->owner)
|
||||||
<p class="mt-1 text-xs font-semibold text-emerald-600 dark:text-emerald-300">Owner: {{ $board->owner->name }}</p>
|
<p class="mt-1 text-xs font-semibold text-emerald-600 dark:text-emerald-300">Owner:
|
||||||
|
{{ $board->owner->name }}</p>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="hd-select-wrap shrink-0 md:w-72">
|
<div class="hd-select-wrap shrink-0 md:w-72">
|
||||||
<select wire:model.live="board_id" class="hd-select" aria-label="Select Kanban board">
|
<select wire:model.live="board_id" class="hd-select" aria-label="Select Kanban board">
|
||||||
@foreach ($boards as $availableBoard)
|
@foreach ($boards as $availableBoard)
|
||||||
<option value="{{ $availableBoard->id }}">{{ $availableBoard->name }}{{ $availableBoard->owner ? ' · '.$availableBoard->owner->name : '' }}</option>
|
<option value="{{ $availableBoard->id }}">
|
||||||
|
{{ $availableBoard->name }}{{ $availableBoard->owner ? ' · ' . $availableBoard->owner->name : '' }}
|
||||||
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($statuses->isEmpty())
|
@if ($statuses->isEmpty())
|
||||||
<div class="rounded-2xl border border-amber-500/40 bg-amber-950/70 px-5 py-4 text-sm font-semibold text-amber-100">
|
<div
|
||||||
This board is being initialised with the default workflow statuses. Refresh the page if the columns do not appear immediately.
|
class="rounded-2xl border border-amber-500/40 bg-amber-950/70 px-5 py-4 text-sm font-semibold text-amber-100">
|
||||||
|
This board is being initialised with the default workflow statuses. Refresh the page if the columns do
|
||||||
|
not appear immediately.
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<div class="flex gap-4 overflow-x-auto pb-4" data-helpdesk-kanban-board wire:key="helpdesk-kanban-columns-{{ $board?->id ?? 0 }}-{{ $refreshNonce }}">
|
<div class="flex gap-4 overflow-x-auto pb-4" data-helpdesk-kanban-board
|
||||||
|
wire:key="helpdesk-kanban-columns-{{ $board?->id ?? 0 }}-{{ $refreshNonce }}">
|
||||||
@foreach ($statuses as $status)
|
@foreach ($statuses as $status)
|
||||||
@php($tickets = $ticketsByStatus[$status->id] ?? collect())
|
@php($tickets = $ticketsByStatus[$status->id] ?? collect())
|
||||||
|
|
||||||
<section class="flex min-h-[640px] w-[330px] shrink-0 flex-col overflow-hidden rounded-2xl border border-zinc-200 bg-zinc-100 shadow-sm dark:border-zinc-700 dark:bg-zinc-950" dusk="kanban-column-{{ $status->slug }}" wire:key="kanban-column-{{ $board?->id ?? 0 }}-{{ $status->id }}-{{ $refreshNonce }}">
|
<section
|
||||||
<header class="border-b border-zinc-200 bg-white px-4 py-4 dark:border-zinc-800 dark:bg-zinc-900">
|
class="flex min-h-[640px] w-[330px] shrink-0 flex-col overflow-hidden rounded-2xl border border-zinc-200 bg-zinc-100 shadow-sm dark:border-zinc-700 dark:bg-zinc-950"
|
||||||
|
dusk="kanban-column-{{ $status->slug }}"
|
||||||
|
wire:key="kanban-column-{{ $board?->id ?? 0 }}-{{ $status->id }}-{{ $refreshNonce }}">
|
||||||
|
<header
|
||||||
|
class="border-b border-zinc-200 bg-white px-4 py-4 dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
<div class="flex items-start justify-between gap-3">
|
<div class="flex items-start justify-between gap-3">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="text-sm font-bold uppercase tracking-wide text-zinc-900 dark:text-zinc-100">{{ $status->name }}</h2>
|
<h2
|
||||||
<p class="mt-1 text-xs text-zinc-500"><span data-helpdesk-kanban-count data-status-id="{{ $status->id }}">{{ $tickets->count() }}</span> tickets</p>
|
class="text-sm font-bold uppercase tracking-wide text-zinc-900 dark:text-zinc-100">
|
||||||
|
{{ $status->name }}</h2>
|
||||||
|
<p class="mt-1 text-xs text-zinc-500"><span data-helpdesk-kanban-count
|
||||||
|
data-status-id="{{ $status->id }}">{{ $tickets->count() }}</span>
|
||||||
|
tickets</p>
|
||||||
</div>
|
</div>
|
||||||
<span class="inline-flex h-4 w-4 rounded-full ring-4 ring-zinc-100 dark:ring-zinc-800" style="background-color: {{ \Modules\Helpdesk\Support\Color::css($status->color) }}"></span>
|
<span class="inline-flex h-4 w-4 rounded-full ring-4 ring-zinc-100 dark:ring-zinc-800"
|
||||||
|
style="background-color: {{ \Modules\Helpdesk\Support\Color::css($status->color) }}"></span>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div
|
<div id="helpdesk-kanban-column-{{ $status->id }}"
|
||||||
id="helpdesk-kanban-column-{{ $status->id }}"
|
|
||||||
class="helpdesk-kanban-column min-h-[560px] flex-1 space-y-3 p-3 transition data-[drag-over=true]:bg-blue-50 dark:data-[drag-over=true]:bg-blue-950/30"
|
class="helpdesk-kanban-column min-h-[560px] flex-1 space-y-3 p-3 transition data-[drag-over=true]:bg-blue-50 dark:data-[drag-over=true]:bg-blue-950/30"
|
||||||
data-helpdesk-kanban-column
|
data-helpdesk-kanban-column data-status-id="{{ $status->id }}"
|
||||||
data-status-id="{{ $status->id }}"
|
wire:key="kanban-dropzone-{{ $board?->id ?? 0 }}-{{ $status->id }}-{{ $refreshNonce }}">
|
||||||
wire:key="kanban-dropzone-{{ $board?->id ?? 0 }}-{{ $status->id }}-{{ $refreshNonce }}"
|
|
||||||
>
|
|
||||||
@forelse ($tickets as $ticket)
|
@forelse ($tickets as $ticket)
|
||||||
<article
|
<article
|
||||||
class="group cursor-grab rounded-2xl border border-zinc-200 bg-white p-4 shadow-sm transition hover:-translate-y-0.5 hover:shadow-md active:cursor-grabbing dark:border-zinc-800 dark:bg-zinc-900"
|
class="group cursor-grab rounded-2xl border border-zinc-200 bg-white p-4 shadow-sm transition hover:-translate-y-0.5 hover:shadow-md active:cursor-grabbing dark:border-zinc-800 dark:bg-zinc-900"
|
||||||
draggable="true"
|
draggable="true" data-helpdesk-kanban-ticket data-ticket-id="{{ $ticket->id }}"
|
||||||
data-helpdesk-kanban-ticket
|
|
||||||
data-ticket-id="{{ $ticket->id }}"
|
|
||||||
wire:key="kanban-ticket-{{ $ticket->id }}-{{ $ticket->status_id }}-{{ $ticket->board_id }}-{{ optional($ticket->updated_at)->timestamp }}"
|
wire:key="kanban-ticket-{{ $ticket->id }}-{{ $ticket->status_id }}-{{ $ticket->board_id }}-{{ optional($ticket->updated_at)->timestamp }}"
|
||||||
dusk="kanban-ticket-{{ $ticket->id }}"
|
dusk="kanban-ticket-{{ $ticket->id }}">
|
||||||
>
|
|
||||||
<div class="flex items-start justify-between gap-3">
|
<div class="flex items-start justify-between gap-3">
|
||||||
<div class="min-w-0">
|
<div class="min-w-0">
|
||||||
<div class="font-mono text-xs font-semibold text-blue-700 dark:text-blue-300">{{ $ticket->reference }}</div>
|
<div
|
||||||
<h3 class="mt-1 line-clamp-3 text-sm font-semibold leading-5 text-zinc-900 dark:text-zinc-100">{{ $ticket->subject }}</h3>
|
class="font-mono text-xs font-semibold text-blue-700 dark:text-blue-300">
|
||||||
|
{{ $ticket->reference }}</div>
|
||||||
|
<h3
|
||||||
|
class="mt-1 line-clamp-3 text-sm font-semibold leading-5 text-zinc-900 dark:text-zinc-100">
|
||||||
|
{{ $ticket->subject }}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($ticket->priority)
|
@if ($ticket->priority)
|
||||||
<span class="shrink-0 rounded-full px-2 py-1 text-xs font-bold text-white" style="background-color: {{ \Modules\Helpdesk\Support\Color::css($ticket->priority->color) }}">
|
<span class="shrink-0 rounded-full px-2 py-1 text-xs font-bold text-white"
|
||||||
|
style="background-color: {{ \Modules\Helpdesk\Support\Color::css($ticket->priority->color) }}">
|
||||||
{{ $ticket->priority->name }}
|
{{ $ticket->priority->name }}
|
||||||
</span>
|
</span>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-3 space-y-1.5 text-xs text-zinc-500 dark:text-zinc-400">
|
<div class="mt-3 space-y-1.5 text-xs text-zinc-500 dark:text-zinc-400">
|
||||||
<div class="flex items-center gap-2"><i class="fa-solid fa-user w-3" aria-hidden="true"></i> {{ $ticket->owner?->name ?? 'Unknown' }}</div>
|
<div class="flex items-center gap-2"><i class="fa-solid fa-user w-3"
|
||||||
<div class="flex items-center gap-2"><i class="fa-solid fa-user-gear w-3" aria-hidden="true"></i> {{ $ticket->agent?->name ?? 'Unassigned' }}</div>
|
aria-hidden="true"></i> {{ $ticket->owner?->name ?? 'Unknown' }}</div>
|
||||||
|
<div class="flex items-center gap-2"><i class="fa-solid fa-user-gear w-3"
|
||||||
|
aria-hidden="true"></i> {{ $ticket->agent?->name ?? 'Unassigned' }}
|
||||||
|
</div>
|
||||||
@if ($ticket->project)
|
@if ($ticket->project)
|
||||||
<div class="flex items-center gap-2"><i class="fa-solid fa-diagram-project w-3" aria-hidden="true"></i> {{ $ticket->project->title }}</div>
|
<div class="flex items-center gap-2"><i
|
||||||
|
class="fa-solid fa-diagram-project w-3" aria-hidden="true"></i>
|
||||||
|
{{ $ticket->project->title }}</div>
|
||||||
@endif
|
@endif
|
||||||
@if ($ticket->team)
|
@if ($ticket->team)
|
||||||
<div class="flex items-center gap-2"><i class="fa-solid fa-users w-3" aria-hidden="true"></i> {{ $ticket->team->name }}</div>
|
<div class="flex items-center gap-2"><i class="fa-solid fa-users w-3"
|
||||||
|
aria-hidden="true"></i> {{ $ticket->team->name }}</div>
|
||||||
@endif
|
@endif
|
||||||
@if ($ticket->product)
|
@if ($ticket->product)
|
||||||
<div class="flex items-center gap-2"><i class="fa-solid fa-box w-3" aria-hidden="true"></i> {{ $ticket->product->name }}</div>
|
<div class="flex items-center gap-2"><i class="fa-solid fa-box w-3"
|
||||||
|
aria-hidden="true"></i> {{ $ticket->product->name }}</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="mt-3 rounded-xl border border-emerald-500/20 bg-emerald-950/20 p-2">
|
<div class="mt-3 rounded-xl border border-emerald-500/20 bg-emerald-950/20 p-2">
|
||||||
<label class="mb-1 block text-[11px] font-bold uppercase tracking-wide text-emerald-200/80">Board</label>
|
<label
|
||||||
|
class="mb-1 block text-[11px] font-bold uppercase tracking-wide text-emerald-200/80">Board</label>
|
||||||
<div class="hd-ticket-board-select-wrap">
|
<div class="hd-ticket-board-select-wrap">
|
||||||
<select
|
<select class="hd-ticket-board-select"
|
||||||
class="hd-ticket-board-select"
|
|
||||||
wire:change="moveTicketToBoard({{ $ticket->id }}, $event.target.value)"
|
wire:change="moveTicketToBoard({{ $ticket->id }}, $event.target.value)"
|
||||||
aria-label="Move {{ $ticket->reference }} to another board"
|
aria-label="Move {{ $ticket->reference }} to another board">
|
||||||
>
|
|
||||||
@foreach ($boards as $ticketBoard)
|
@foreach ($boards as $ticketBoard)
|
||||||
<option value="{{ $ticketBoard->id }}" @selected((int) $ticket->board_id === (int) $ticketBoard->id)>{{ $ticketBoard->name }}</option>
|
<option value="{{ $ticketBoard->id }}"
|
||||||
|
@selected((int) $ticket->board_id === (int) $ticketBoard->id)>{{ $ticketBoard->name }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -139,29 +166,38 @@
|
|||||||
@if ($ticket->tags->isNotEmpty())
|
@if ($ticket->tags->isNotEmpty())
|
||||||
<div class="mt-3 flex flex-wrap gap-1">
|
<div class="mt-3 flex flex-wrap gap-1">
|
||||||
@foreach ($ticket->tags as $tag)
|
@foreach ($ticket->tags as $tag)
|
||||||
<span class="rounded-full px-2 py-0.5 text-[11px] font-semibold text-white" style="background-color: {{ \Modules\Helpdesk\Support\Color::css($tag->color) }}">{{ $tag->name }}</span>
|
<span
|
||||||
|
class="rounded-full px-2 py-0.5 text-[11px] font-semibold text-white"
|
||||||
|
style="background-color: {{ \Modules\Helpdesk\Support\Color::css($tag->color) }}">{{ $tag->name }}</span>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($ticket->checklistItems->isNotEmpty())
|
@if ($ticket->checklistItems->isNotEmpty())
|
||||||
@php($done = $ticket->checklistItems->where('is_completed', true)->count())
|
@php($done = $ticket->checklistItems->where('is_completed', true)->count())
|
||||||
<div class="mt-3 text-xs text-zinc-500">Checklist {{ $done }}/{{ $ticket->checklistItems->count() }}</div>
|
<div class="mt-3 text-xs text-zinc-500">Checklist
|
||||||
|
{{ $done }}/{{ $ticket->checklistItems->count() }}</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($ticket->sla_first_response_breached || $ticket->sla_resolution_breached)
|
@if ($ticket->sla_first_response_breached || $ticket->sla_resolution_breached)
|
||||||
<div class="mt-3 rounded-lg border border-red-300 bg-red-50 px-3 py-2 text-xs font-semibold text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-100">SLA breach</div>
|
<div
|
||||||
|
class="mt-3 rounded-lg border border-red-300 bg-red-50 px-3 py-2 text-xs font-semibold text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-100">
|
||||||
|
SLA breach</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="mt-4 flex items-center justify-between gap-2 border-t border-zinc-100 pt-3 dark:border-zinc-800">
|
<div
|
||||||
<a href="{{ route('helpdesk.tickets.show', $ticket) }}" wire:navigate class="rounded-lg bg-blue-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-blue-700">Open</a>
|
class="mt-4 flex items-center justify-between gap-2 border-t border-zinc-100 pt-3 dark:border-zinc-800">
|
||||||
|
<a href="{{ route('helpdesk.tickets.show', $ticket) }}" wire:navigate
|
||||||
|
class="rounded-lg bg-blue-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-blue-700">Open</a>
|
||||||
@can('update', $ticket)
|
@can('update', $ticket)
|
||||||
<a href="{{ route('helpdesk.tickets.edit', $ticket) }}" wire:navigate class="rounded-lg bg-emerald-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-emerald-700">Edit</a>
|
<a href="{{ route('helpdesk.tickets.edit', $ticket) }}" wire:navigate
|
||||||
|
class="rounded-lg bg-emerald-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-emerald-700">Edit</a>
|
||||||
@endcan
|
@endcan
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
@empty
|
@empty
|
||||||
<div class="rounded-2xl border border-dashed border-zinc-300 bg-white p-6 text-center text-sm text-zinc-500 dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="rounded-2xl border border-dashed border-zinc-300 bg-white p-6 text-center text-sm text-zinc-500 dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
Drop tickets here for {{ $status->name }}.
|
Drop tickets here for {{ $status->name }}.
|
||||||
</div>
|
</div>
|
||||||
@endforelse
|
@endforelse
|
||||||
@@ -181,13 +217,15 @@
|
|||||||
const updateColumnCounts = function() {
|
const updateColumnCounts = function() {
|
||||||
document.querySelectorAll('[data-helpdesk-kanban-count]').forEach(function(counter) {
|
document.querySelectorAll('[data-helpdesk-kanban-count]').forEach(function(counter) {
|
||||||
const statusId = counter.dataset.statusId;
|
const statusId = counter.dataset.statusId;
|
||||||
const column = document.querySelector('[data-helpdesk-kanban-column][data-status-id="' + statusId + '"]');
|
const column = document.querySelector('[data-helpdesk-kanban-column][data-status-id="' +
|
||||||
|
statusId + '"]');
|
||||||
|
|
||||||
if (!column) {
|
if (!column) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
counter.textContent = column.querySelectorAll('[data-helpdesk-kanban-ticket]').length.toString();
|
counter.textContent = column.querySelectorAll('[data-helpdesk-kanban-ticket]').length
|
||||||
|
.toString();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -225,7 +263,8 @@
|
|||||||
|
|
||||||
card.addEventListener('dragend', function() {
|
card.addEventListener('dragend', function() {
|
||||||
card.classList.remove('opacity-60');
|
card.classList.remove('opacity-60');
|
||||||
document.querySelectorAll('[data-helpdesk-kanban-column]').forEach(function (column) {
|
document.querySelectorAll('[data-helpdesk-kanban-column]').forEach(function(
|
||||||
|
column) {
|
||||||
column.dataset.dragOver = 'false';
|
column.dataset.dragOver = 'false';
|
||||||
column.dataset.refreshing = 'false';
|
column.dataset.refreshing = 'false';
|
||||||
});
|
});
|
||||||
@@ -252,9 +291,11 @@
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
column.dataset.dragOver = 'false';
|
column.dataset.dragOver = 'false';
|
||||||
|
|
||||||
const ticketId = event.dataTransfer.getData('application/x-helpdesk-ticket-id') || event.dataTransfer.getData('text/plain') || draggedTicketId;
|
const ticketId = event.dataTransfer.getData('application/x-helpdesk-ticket-id') ||
|
||||||
|
event.dataTransfer.getData('text/plain') || draggedTicketId;
|
||||||
const statusId = column.dataset.statusId;
|
const statusId = column.dataset.statusId;
|
||||||
const card = draggedCard || document.querySelector('[data-helpdesk-kanban-ticket][data-ticket-id="' + ticketId + '"]');
|
const card = draggedCard || document.querySelector(
|
||||||
|
'[data-helpdesk-kanban-ticket][data-ticket-id="' + ticketId + '"]');
|
||||||
|
|
||||||
if (!ticketId || !statusId || !card) return;
|
if (!ticketId || !statusId || !card) return;
|
||||||
|
|
||||||
|
|||||||
@@ -21,13 +21,16 @@
|
|||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<div class="hd-helpdesk-surface space-y-6" dusk="helpdesk-settings-manager">
|
<div class="hd-helpdesk-surface space-y-6" dusk="helpdesk-settings-manager">
|
||||||
<div class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
||||||
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">Helpdesk administration</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">Helpdesk administration
|
||||||
|
</p>
|
||||||
<h1 class="mt-2 text-3xl font-semibold tracking-tight">Support configuration</h1>
|
<h1 class="mt-2 text-3xl font-semibold tracking-tight">Support configuration</h1>
|
||||||
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">Manage lookup data, workflow messages, canned responses, SLA policies, automation rules, checklists, tags and product/service linkage.</p>
|
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">Manage lookup data, workflow messages, canned
|
||||||
|
responses, SLA policies, automation rules, checklists, tags and product/service linkage.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
@@ -77,11 +80,23 @@
|
|||||||
default => ['border' => '#71717a', 'bg' => 'rgba(63, 63, 70, .22)', 'active' => '#3f3f46'],
|
default => ['border' => '#71717a', 'bg' => 'rgba(63, 63, 70, .22)', 'active' => '#3f3f46'],
|
||||||
};
|
};
|
||||||
|
|
||||||
$sectionStyle = $section === $key
|
$sectionStyle =
|
||||||
? 'border-color: '.$sectionPalette['border'].'; background-color: '.$sectionPalette['active'].'; color: #ffffff; box-shadow: 0 16px 36px rgba(0,0,0,.32);'
|
$section === $key
|
||||||
: 'border-color: '.$sectionPalette['border'].'; background-color: '.$sectionPalette['bg'].'; color: #ffffff; box-shadow: 0 10px 24px rgba(0,0,0,.20);';
|
? 'border-color: ' .
|
||||||
|
$sectionPalette['border'] .
|
||||||
|
'; background-color: ' .
|
||||||
|
$sectionPalette['active'] .
|
||||||
|
'; color: #ffffff; box-shadow: 0 16px 36px rgba(0,0,0,.32);'
|
||||||
|
: 'border-color: ' .
|
||||||
|
$sectionPalette['border'] .
|
||||||
|
'; background-color: ' .
|
||||||
|
$sectionPalette['bg'] .
|
||||||
|
'; color: #ffffff; box-shadow: 0 10px 24px rgba(0,0,0,.20);';
|
||||||
@endphp
|
@endphp
|
||||||
<a href="{{ route('helpdesk.settings', ['section' => $key]) }}" dusk="helpdesk-settings-section-{{ $key }}" class="rounded-2xl border px-4 py-3 text-left shadow-sm transition hover:-translate-y-0.5" style="{{ $sectionStyle }}">
|
<a href="{{ route('helpdesk.settings', ['section' => $key]) }}"
|
||||||
|
dusk="helpdesk-settings-section-{{ $key }}"
|
||||||
|
class="rounded-2xl border px-4 py-3 text-left shadow-sm transition hover:-translate-y-0.5"
|
||||||
|
style="{{ $sectionStyle }}">
|
||||||
<div class="text-xs font-semibold uppercase tracking-wide opacity-70">{{ $item['label'] }}</div>
|
<div class="text-xs font-semibold uppercase tracking-wide opacity-70">{{ $item['label'] }}</div>
|
||||||
<div class="mt-1 text-2xl font-semibold">{{ $item['count'] }}</div>
|
<div class="mt-1 text-2xl font-semibold">{{ $item['count'] }}</div>
|
||||||
</a>
|
</a>
|
||||||
@@ -90,23 +105,21 @@
|
|||||||
|
|
||||||
|
|
||||||
@if ($section === 'defaults')
|
@if ($section === 'defaults')
|
||||||
<x-helpdesk::settings-section title="Ticket defaults" description="Choose the company default used when a new Helpdesk ticket is created. Lookup defaults are configured on the Statuses, Priorities, Categories, Teams and Projects sections.">
|
<x-helpdesk::settings-section title="Ticket defaults"
|
||||||
|
description="Choose the company default used when a new Helpdesk ticket is created. Lookup defaults are configured on the Statuses, Priorities, Categories, Teams and Projects sections.">
|
||||||
<x-slot:form>
|
<x-slot:form>
|
||||||
<form class="grid gap-4 md:grid-cols-3">
|
<form class="grid gap-4 md:grid-cols-3">
|
||||||
<flux:select wire:model="default_helpdesk_company_id" label="Default company">
|
<flux:select wire:model="default_helpdesk_company_id" label="Default company">
|
||||||
<option value="">No default company</option>
|
<option value="">No default company</option>
|
||||||
@foreach ($companies as $company)
|
@foreach ($companies as $company)
|
||||||
<option value="{{ $company->id }}">
|
<option value="{{ $company->id }}">
|
||||||
{{ $company->name }}{{ ($company->is_default_helpdesk_company ?? false) ? ' — Default' : '' }}
|
{{ $company->name }}{{ $company->is_default_helpdesk_company ?? false ? ' — Default' : '' }}
|
||||||
</option>
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</flux:select>
|
</flux:select>
|
||||||
|
|
||||||
<div class="md:col-span-3 flex gap-2">
|
<div class="md:col-span-3 flex gap-2">
|
||||||
<flux:button
|
<flux:button type="button" wire:click="saveDefaultHelpdeskCompany" variant="primary"
|
||||||
type="button"
|
|
||||||
wire:click="saveDefaultHelpdeskCompany"
|
|
||||||
variant="primary"
|
|
||||||
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">
|
||||||
Save default company
|
Save default company
|
||||||
</flux:button>
|
</flux:button>
|
||||||
@@ -114,27 +127,41 @@
|
|||||||
</form>
|
</form>
|
||||||
</x-slot:form>
|
</x-slot:form>
|
||||||
|
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-4 text-sm text-zinc-700 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-200">
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-zinc-50 p-4 text-sm text-zinc-700 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-200">
|
||||||
<p class="font-semibold">Lookup defaults</p>
|
<p class="font-semibold">Lookup defaults</p>
|
||||||
<p class="mt-1">Set the default Status, Priority, Category, Team and Project from their own settings sections. Only one default per company/global scope is kept for each lookup type.</p>
|
<p class="mt-1">Set the default Status, Priority, Category, Team and Project from their own settings
|
||||||
|
sections. Only one default per company/global scope is kept for each lookup type.</p>
|
||||||
</div>
|
</div>
|
||||||
</x-helpdesk::settings-section>
|
</x-helpdesk::settings-section>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($section === 'statuses')
|
@if ($section === 'statuses')
|
||||||
<x-helpdesk::settings-section title="Statuses" description="Control workflow stages and mark which statuses close tickets.">
|
<x-helpdesk::settings-section title="Statuses"
|
||||||
|
description="Control workflow stages and mark which statuses close tickets.">
|
||||||
<x-slot:form>
|
<x-slot:form>
|
||||||
<form wire:submit.prevent="saveStatus" class="grid gap-4 md:grid-cols-5">
|
<form wire:submit.prevent="saveStatus" class="grid gap-4 md:grid-cols-5">
|
||||||
<flux:input wire:model="statusForm.name" label="Name" />
|
<flux:input wire:model="statusForm.name" label="Name" />
|
||||||
<flux:input wire:model="statusForm.slug" label="Slug" placeholder="auto-generated" />
|
<flux:input wire:model="statusForm.slug" label="Slug" placeholder="auto-generated" />
|
||||||
<flux:input wire:model="statusForm.color" label="Badge colour" />
|
<flux:input wire:model="statusForm.color" label="Badge colour" />
|
||||||
<flux:input wire:model="statusForm.sort_order" label="Sort" type="number" min="0" />
|
<flux:input wire:model="statusForm.sort_order" label="Sort" type="number" min="0" />
|
||||||
<label class="flex items-end gap-2 pb-2 text-sm text-zinc-700 dark:text-zinc-200"><input type="checkbox" wire:model="statusForm.is_closed" class="rounded border-zinc-300"> Closed status</label>
|
<label class="flex items-end gap-2 pb-2 text-sm text-zinc-700 dark:text-zinc-200"><input
|
||||||
<label class="md:col-span-5 flex items-center gap-2 text-sm font-semibold text-zinc-700 dark:text-zinc-200">
|
type="checkbox" wire:model="statusForm.is_closed" class="rounded border-zinc-300"> Closed
|
||||||
<input type="checkbox" wire:model="statusForm.is_default" class="rounded border-zinc-300 bg-zinc-950 text-blue-600 focus:ring-blue-500">
|
status</label>
|
||||||
|
<label
|
||||||
|
class="md:col-span-5 flex items-center gap-2 text-sm font-semibold text-zinc-700 dark:text-zinc-200">
|
||||||
|
<input type="checkbox" wire:model="statusForm.is_default"
|
||||||
|
class="rounded border-zinc-300 bg-zinc-950 text-blue-600 focus:ring-blue-500">
|
||||||
Default status for new tickets
|
Default status for new tickets
|
||||||
</label>
|
</label>
|
||||||
<div class="md:col-span-5 flex gap-2"><flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save status</flux:button><flux:button type="button" wire:click="resetStatusForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button></div>
|
<div class="md:col-span-5 flex gap-2">
|
||||||
|
<flux:button type="submit" variant="primary"
|
||||||
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save status
|
||||||
|
</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetStatusForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</x-slot:form>
|
</x-slot:form>
|
||||||
<x-helpdesk::lookup-table :items="$statuses" edit="editStatus" delete="deleteStatus" />
|
<x-helpdesk::lookup-table :items="$statuses" edit="editStatus" delete="deleteStatus" />
|
||||||
@@ -150,10 +177,18 @@
|
|||||||
<flux:input wire:model="priorityForm.color" label="Badge colour" />
|
<flux:input wire:model="priorityForm.color" label="Badge colour" />
|
||||||
<flux:input wire:model="priorityForm.sort_order" label="Sort" type="number" min="0" />
|
<flux:input wire:model="priorityForm.sort_order" label="Sort" type="number" min="0" />
|
||||||
<label class="flex items-end gap-2 pb-2 text-sm font-semibold text-zinc-700 dark:text-zinc-200">
|
<label class="flex items-end gap-2 pb-2 text-sm font-semibold text-zinc-700 dark:text-zinc-200">
|
||||||
<input type="checkbox" wire:model="priorityForm.is_default" class="rounded border-zinc-300 bg-zinc-950 text-blue-600 focus:ring-blue-500">
|
<input type="checkbox" wire:model="priorityForm.is_default"
|
||||||
|
class="rounded border-zinc-300 bg-zinc-950 text-blue-600 focus:ring-blue-500">
|
||||||
Default for new tickets
|
Default for new tickets
|
||||||
</label>
|
</label>
|
||||||
<div class="md:col-span-4 flex gap-2"><flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save priority</flux:button><flux:button type="button" wire:click="resetPriorityForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button></div>
|
<div class="md:col-span-4 flex gap-2">
|
||||||
|
<flux:button type="submit" variant="primary"
|
||||||
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save priority
|
||||||
|
</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetPriorityForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</x-slot:form>
|
</x-slot:form>
|
||||||
<x-helpdesk::lookup-table :items="$priorities" edit="editPriority" delete="deletePriority" />
|
<x-helpdesk::lookup-table :items="$priorities" edit="editPriority" delete="deletePriority" />
|
||||||
@@ -161,19 +196,36 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($section === 'categories')
|
@if ($section === 'categories')
|
||||||
<x-helpdesk::settings-section title="Categories" description="Group tickets by support area, optionally per company.">
|
<x-helpdesk::settings-section title="Categories"
|
||||||
|
description="Group tickets by support area, optionally per company.">
|
||||||
<x-slot:form>
|
<x-slot:form>
|
||||||
<form wire:submit.prevent="saveCategory" class="grid gap-4 md:grid-cols-4">
|
<form wire:submit.prevent="saveCategory" class="grid gap-4 md:grid-cols-4">
|
||||||
<flux:select wire:model="categoryForm.company_id" label="Company"><option value="">Global</option>@foreach ($companies as $company)<option value="{{ $company->id }}">{{ $company->name }}</option>@endforeach</flux:select>
|
<flux:select wire:model="categoryForm.company_id" label="Company">
|
||||||
|
<option value="">Global</option>
|
||||||
|
@foreach ($companies as $company)
|
||||||
|
<option value="{{ $company->id }}">{{ $company->name }}</option>
|
||||||
|
@endforeach
|
||||||
|
</flux:select>
|
||||||
<flux:input wire:model="categoryForm.name" label="Name" />
|
<flux:input wire:model="categoryForm.name" label="Name" />
|
||||||
<flux:input wire:model="categoryForm.slug" label="Slug" placeholder="auto-generated" />
|
<flux:input wire:model="categoryForm.slug" label="Slug" placeholder="auto-generated" />
|
||||||
<flux:input wire:model="categoryForm.color" label="Badge colour" />
|
<flux:input wire:model="categoryForm.color" label="Badge colour" />
|
||||||
<div class="md:col-span-4"><flux:textarea wire:model="categoryForm.description" label="Description" rows="3" /></div>
|
<div class="md:col-span-4">
|
||||||
<label class="md:col-span-4 flex items-center gap-2 text-sm font-semibold text-zinc-700 dark:text-zinc-200">
|
<flux:textarea wire:model="categoryForm.description" label="Description" rows="3" />
|
||||||
<input type="checkbox" wire:model="categoryForm.is_default" class="rounded border-zinc-300 bg-zinc-950 text-blue-600 focus:ring-blue-500">
|
</div>
|
||||||
|
<label
|
||||||
|
class="md:col-span-4 flex items-center gap-2 text-sm font-semibold text-zinc-700 dark:text-zinc-200">
|
||||||
|
<input type="checkbox" wire:model="categoryForm.is_default"
|
||||||
|
class="rounded border-zinc-300 bg-zinc-950 text-blue-600 focus:ring-blue-500">
|
||||||
Default category for new tickets
|
Default category for new tickets
|
||||||
</label>
|
</label>
|
||||||
<div class="md:col-span-4 flex gap-2"><flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save category</flux:button><flux:button type="button" wire:click="resetCategoryForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button></div>
|
<div class="md:col-span-4 flex gap-2">
|
||||||
|
<flux:button type="submit" variant="primary"
|
||||||
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save
|
||||||
|
category</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetCategoryForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</x-slot:form>
|
</x-slot:form>
|
||||||
<x-helpdesk::lookup-table :items="$categories" edit="editCategory" delete="deleteCategory" />
|
<x-helpdesk::lookup-table :items="$categories" edit="editCategory" delete="deleteCategory" />
|
||||||
@@ -181,19 +233,36 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($section === 'teams')
|
@if ($section === 'teams')
|
||||||
<x-helpdesk::settings-section title="Teams" description="Create support teams under each company and assign projects to them.">
|
<x-helpdesk::settings-section title="Teams"
|
||||||
|
description="Create support teams under each company and assign projects to them.">
|
||||||
<x-slot:form>
|
<x-slot:form>
|
||||||
<form wire:submit.prevent="saveTeam" class="grid gap-4 md:grid-cols-4">
|
<form wire:submit.prevent="saveTeam" class="grid gap-4 md:grid-cols-4">
|
||||||
<flux:select wire:model="teamForm.company_id" label="Company"><option value="">Global</option>@foreach ($companies as $company)<option value="{{ $company->id }}">{{ $company->name }}</option>@endforeach</flux:select>
|
<flux:select wire:model="teamForm.company_id" label="Company">
|
||||||
|
<option value="">Global</option>
|
||||||
|
@foreach ($companies as $company)
|
||||||
|
<option value="{{ $company->id }}">{{ $company->name }}</option>
|
||||||
|
@endforeach
|
||||||
|
</flux:select>
|
||||||
<flux:input wire:model="teamForm.name" label="Name" />
|
<flux:input wire:model="teamForm.name" label="Name" />
|
||||||
<flux:input wire:model="teamForm.slug" label="Slug" placeholder="auto-generated" />
|
<flux:input wire:model="teamForm.slug" label="Slug" placeholder="auto-generated" />
|
||||||
<flux:input wire:model="teamForm.color" label="Badge colour" />
|
<flux:input wire:model="teamForm.color" label="Badge colour" />
|
||||||
<div class="md:col-span-4"><flux:textarea wire:model="teamForm.description" label="Description" rows="3" /></div>
|
<div class="md:col-span-4">
|
||||||
<label class="md:col-span-4 flex items-center gap-2 text-sm font-semibold text-zinc-700 dark:text-zinc-200">
|
<flux:textarea wire:model="teamForm.description" label="Description" rows="3" />
|
||||||
<input type="checkbox" wire:model="teamForm.is_default" class="rounded border-zinc-300 bg-zinc-950 text-blue-600 focus:ring-blue-500">
|
</div>
|
||||||
|
<label
|
||||||
|
class="md:col-span-4 flex items-center gap-2 text-sm font-semibold text-zinc-700 dark:text-zinc-200">
|
||||||
|
<input type="checkbox" wire:model="teamForm.is_default"
|
||||||
|
class="rounded border-zinc-300 bg-zinc-950 text-blue-600 focus:ring-blue-500">
|
||||||
Default team for new tickets
|
Default team for new tickets
|
||||||
</label>
|
</label>
|
||||||
<div class="md:col-span-4 flex gap-2"><flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save team</flux:button><flux:button type="button" wire:click="resetTeamForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button></div>
|
<div class="md:col-span-4 flex gap-2">
|
||||||
|
<flux:button type="submit" variant="primary"
|
||||||
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save team
|
||||||
|
</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetTeamForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</x-slot:form>
|
</x-slot:form>
|
||||||
<x-helpdesk::team-table :items="$teams" />
|
<x-helpdesk::team-table :items="$teams" />
|
||||||
@@ -201,20 +270,42 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($section === 'projects')
|
@if ($section === 'projects')
|
||||||
<x-helpdesk::settings-section title="Projects" description="Create company projects and optionally assign them to support teams.">
|
<x-helpdesk::settings-section title="Projects"
|
||||||
|
description="Create company projects and optionally assign them to support teams.">
|
||||||
<x-slot:form>
|
<x-slot:form>
|
||||||
<form wire:submit.prevent="saveProject" class="grid gap-4 md:grid-cols-5">
|
<form wire:submit.prevent="saveProject" class="grid gap-4 md:grid-cols-5">
|
||||||
<flux:select wire:model="projectForm.company_id" label="Company"><option value="">Global</option>@foreach ($companies as $company)<option value="{{ $company->id }}">{{ $company->name }}</option>@endforeach</flux:select>
|
<flux:select wire:model="projectForm.company_id" label="Company">
|
||||||
<flux:select wire:model="projectForm.team_id" label="Team"><option value="">No team</option>@foreach ($teams as $team)<option value="{{ $team->id }}">{{ $team->name }}</option>@endforeach</flux:select>
|
<option value="">Global</option>
|
||||||
|
@foreach ($companies as $company)
|
||||||
|
<option value="{{ $company->id }}">{{ $company->name }}</option>
|
||||||
|
@endforeach
|
||||||
|
</flux:select>
|
||||||
|
<flux:select wire:model="projectForm.team_id" label="Team">
|
||||||
|
<option value="">No team</option>
|
||||||
|
@foreach ($teams as $team)
|
||||||
|
<option value="{{ $team->id }}">{{ $team->name }}</option>
|
||||||
|
@endforeach
|
||||||
|
</flux:select>
|
||||||
<flux:input wire:model="projectForm.title" label="Title" />
|
<flux:input wire:model="projectForm.title" label="Title" />
|
||||||
<flux:input wire:model="projectForm.slug" label="Slug" placeholder="auto-generated" />
|
<flux:input wire:model="projectForm.slug" label="Slug" placeholder="auto-generated" />
|
||||||
<flux:input wire:model="projectForm.color" label="Badge colour" />
|
<flux:input wire:model="projectForm.color" label="Badge colour" />
|
||||||
<div class="md:col-span-5"><flux:textarea wire:model="projectForm.description" label="Description" rows="3" /></div>
|
<div class="md:col-span-5">
|
||||||
<label class="md:col-span-5 flex items-center gap-2 text-sm font-semibold text-zinc-700 dark:text-zinc-200">
|
<flux:textarea wire:model="projectForm.description" label="Description" rows="3" />
|
||||||
<input type="checkbox" wire:model="projectForm.is_default" class="rounded border-zinc-300 bg-zinc-950 text-blue-600 focus:ring-blue-500">
|
</div>
|
||||||
|
<label
|
||||||
|
class="md:col-span-5 flex items-center gap-2 text-sm font-semibold text-zinc-700 dark:text-zinc-200">
|
||||||
|
<input type="checkbox" wire:model="projectForm.is_default"
|
||||||
|
class="rounded border-zinc-300 bg-zinc-950 text-blue-600 focus:ring-blue-500">
|
||||||
Default project for new tickets
|
Default project for new tickets
|
||||||
</label>
|
</label>
|
||||||
<div class="md:col-span-5 flex gap-2"><flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save project</flux:button><flux:button type="button" wire:click="resetProjectForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button></div>
|
<div class="md:col-span-5 flex gap-2">
|
||||||
|
<flux:button type="submit" variant="primary"
|
||||||
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save project
|
||||||
|
</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetProjectForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</x-slot:form>
|
</x-slot:form>
|
||||||
<x-helpdesk::project-table :items="$projects" />
|
<x-helpdesk::project-table :items="$projects" />
|
||||||
@@ -223,7 +314,8 @@
|
|||||||
|
|
||||||
|
|
||||||
@if ($section === 'boards')
|
@if ($section === 'boards')
|
||||||
<x-helpdesk::settings-section title="Kanban Boards" description="Create configurable workflow boards and choose which statuses appear as draggable columns.">
|
<x-helpdesk::settings-section title="Kanban Boards"
|
||||||
|
description="Create configurable workflow boards and choose which statuses appear as draggable columns.">
|
||||||
<x-slot:form>
|
<x-slot:form>
|
||||||
<form wire:submit.prevent="saveBoard" class="grid gap-4 md:grid-cols-7">
|
<form wire:submit.prevent="saveBoard" class="grid gap-4 md:grid-cols-7">
|
||||||
<flux:input wire:model="boardForm.name" label="Name" />
|
<flux:input wire:model="boardForm.name" label="Name" />
|
||||||
@@ -236,33 +328,44 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
</flux:select>
|
</flux:select>
|
||||||
<label class="flex items-end gap-2 pb-2 text-sm text-zinc-700 dark:text-zinc-200">
|
<label class="flex items-end gap-2 pb-2 text-sm text-zinc-700 dark:text-zinc-200">
|
||||||
<input type="checkbox" wire:model="boardForm.is_default" class="rounded border-zinc-300"> Default board
|
<input type="checkbox" wire:model="boardForm.is_default" class="rounded border-zinc-300">
|
||||||
|
Default board
|
||||||
</label>
|
</label>
|
||||||
<div class="md:col-span-2">
|
<div class="md:col-span-2">
|
||||||
<flux:textarea wire:model="boardForm.description" label="Description" rows="2" />
|
<flux:textarea wire:model="boardForm.description" label="Description" rows="2" />
|
||||||
</div>
|
</div>
|
||||||
<div class="md:col-span-7">
|
<div class="md:col-span-7">
|
||||||
<label class="mb-2 block text-sm font-medium text-zinc-700 dark:text-zinc-200">Board columns</label>
|
<label class="mb-2 block text-sm font-medium text-zinc-700 dark:text-zinc-200">Board
|
||||||
|
columns</label>
|
||||||
<div class="grid gap-2 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6">
|
<div class="grid gap-2 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6">
|
||||||
@foreach ($statuses as $status)
|
@foreach ($statuses as $status)
|
||||||
<label class="flex items-center gap-2 rounded-xl border border-zinc-200 bg-white px-3 py-2 text-sm text-zinc-700 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-200">
|
<label
|
||||||
<input type="checkbox" wire:model="boardForm.status_ids" value="{{ $status->id }}" class="rounded border-zinc-300">
|
class="flex items-center gap-2 rounded-xl border border-zinc-200 bg-white px-3 py-2 text-sm text-zinc-700 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-200">
|
||||||
<span class="inline-flex h-3 w-3 rounded-full" style="background-color: {{ \Modules\Helpdesk\Support\Color::css($status->color) }}"></span>
|
<input type="checkbox" wire:model="boardForm.status_ids"
|
||||||
|
value="{{ $status->id }}" class="rounded border-zinc-300">
|
||||||
|
<span class="inline-flex h-3 w-3 rounded-full"
|
||||||
|
style="background-color: {{ \Modules\Helpdesk\Support\Color::css($status->color) }}"></span>
|
||||||
<span>{{ $status->name }}</span>
|
<span>{{ $status->name }}</span>
|
||||||
</label>
|
</label>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="md:col-span-7 flex gap-2">
|
<div class="md:col-span-7 flex gap-2">
|
||||||
<flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save board</flux:button>
|
<flux:button type="submit" variant="primary"
|
||||||
<flux:button type="button" wire:click="resetBoardForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button>
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save board
|
||||||
|
</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetBoardForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</x-slot:form>
|
</x-slot:form>
|
||||||
|
|
||||||
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-2xl border border-zinc-200 bg-white dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
||||||
<thead class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
<thead
|
||||||
|
class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="px-4 py-3">Board</th>
|
<th class="px-4 py-3">Board</th>
|
||||||
<th class="px-4 py-3">Owner</th>
|
<th class="px-4 py-3">Owner</th>
|
||||||
@@ -276,26 +379,42 @@
|
|||||||
@forelse ($boards as $boardItem)
|
@forelse ($boards as $boardItem)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-3">
|
<td class="px-4 py-3">
|
||||||
<div class="font-medium text-zinc-900 dark:text-zinc-100">{{ $boardItem->name }}</div>
|
<div class="font-medium text-zinc-900 dark:text-zinc-100">{{ $boardItem->name }}
|
||||||
|
</div>
|
||||||
<div class="text-xs text-zinc-500">{{ $boardItem->slug }}</div>
|
<div class="text-xs text-zinc-500">{{ $boardItem->slug }}</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-3 text-sm text-zinc-600 dark:text-zinc-300">{{ $boardItem->owner?->name ?? 'Unassigned' }}</td>
|
<td class="px-4 py-3 text-sm text-zinc-600 dark:text-zinc-300">
|
||||||
|
{{ $boardItem->owner?->name ?? 'Unassigned' }}</td>
|
||||||
<td class="px-4 py-3">
|
<td class="px-4 py-3">
|
||||||
<div class="flex flex-wrap gap-1">
|
<div class="flex flex-wrap gap-1">
|
||||||
@foreach ($boardItem->statuses as $status)
|
@foreach ($boardItem->statuses as $status)
|
||||||
<span class="rounded-full px-2 py-1 text-xs font-semibold text-white" style="background-color: {{ \Modules\Helpdesk\Support\Color::css($status->color) }}">{{ $status->name }}</span>
|
<span class="rounded-full px-2 py-1 text-xs font-semibold text-white"
|
||||||
|
style="background-color: {{ \Modules\Helpdesk\Support\Color::css($status->color) }}">{{ $status->name }}</span>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-3 text-zinc-500">{{ $boardItem->tickets_count ?? 0 }}</td>
|
<td class="px-4 py-3 text-zinc-500">{{ $boardItem->tickets_count ?? 0 }}</td>
|
||||||
<td class="px-4 py-3"><flux:badge color="{{ $boardItem->is_default ? 'emerald' : 'zinc' }}">{{ $boardItem->is_default ? 'Default' : 'No' }}</flux:badge></td>
|
<td class="px-4 py-3">
|
||||||
|
<flux:badge color="{{ $boardItem->is_default ? 'emerald' : 'zinc' }}">
|
||||||
|
{{ $boardItem->is_default ? 'Default' : 'No' }}</flux:badge>
|
||||||
|
</td>
|
||||||
<td class="px-4 py-3 text-right">
|
<td class="px-4 py-3 text-right">
|
||||||
<flux:button size="sm" variant="primary" wire:click="editBoard({{ $boardItem->id }})" class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit</flux:button>
|
<flux:button size="sm" variant="primary"
|
||||||
<flux:button size="sm" variant="danger" wire:click="deleteBoard({{ $boardItem->id }})" wire:confirm="Delete this board?" class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete</flux:button>
|
wire:click="editBoard({{ $boardItem->id }})"
|
||||||
|
class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">
|
||||||
|
Edit</flux:button>
|
||||||
|
<flux:button size="sm" variant="danger"
|
||||||
|
wire:click="deleteBoard({{ $boardItem->id }})"
|
||||||
|
wire:confirm="Delete this board?"
|
||||||
|
class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete
|
||||||
|
</flux:button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr><td colspan="6" class="px-4 py-8 text-center text-zinc-500">No Kanban boards yet.</td></tr>
|
<tr>
|
||||||
|
<td colspan="6" class="px-4 py-8 text-center text-zinc-500">No Kanban boards yet.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -304,7 +423,8 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($section === 'git')
|
@if ($section === 'git')
|
||||||
<x-helpdesk::settings-section title="Git repositories" description="Configure repositories that can be linked to projects and tickets. Commits can then be stored against tickets for traceability.">
|
<x-helpdesk::settings-section title="Git repositories"
|
||||||
|
description="Configure repositories that can be linked to projects and tickets. Commits can then be stored against tickets for traceability.">
|
||||||
<x-slot:form>
|
<x-slot:form>
|
||||||
<form wire:submit.prevent="saveRepository" class="grid gap-4 md:grid-cols-6">
|
<form wire:submit.prevent="saveRepository" class="grid gap-4 md:grid-cols-6">
|
||||||
<flux:select wire:model="repositoryForm.company_id" label="Company">
|
<flux:select wire:model="repositoryForm.company_id" label="Company">
|
||||||
@@ -320,15 +440,21 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
</flux:select>
|
</flux:select>
|
||||||
<flux:input wire:model="repositoryForm.name" label="Name" />
|
<flux:input wire:model="repositoryForm.name" label="Name" />
|
||||||
<flux:input wire:model="repositoryForm.provider" label="Provider" placeholder="git, github, gitlab" />
|
<flux:input wire:model="repositoryForm.provider" label="Provider"
|
||||||
|
placeholder="git, github, gitlab" />
|
||||||
<flux:input wire:model="repositoryForm.default_branch" label="Default branch" />
|
<flux:input wire:model="repositoryForm.default_branch" label="Default branch" />
|
||||||
<flux:input wire:model="repositoryForm.webhook_secret" label="Webhook secret" />
|
<flux:input wire:model="repositoryForm.webhook_secret" label="Webhook secret" />
|
||||||
<div class="md:col-span-7">
|
<div class="md:col-span-7">
|
||||||
<flux:input wire:model="repositoryForm.remote_url" label="Remote URL" placeholder="git@github.com:company/repo.git" />
|
<flux:input wire:model="repositoryForm.remote_url" label="Remote URL"
|
||||||
|
placeholder="git@github.com:company/repo.git" />
|
||||||
</div>
|
</div>
|
||||||
<div class="md:col-span-7 flex gap-2">
|
<div class="md:col-span-7 flex gap-2">
|
||||||
<flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save repository</flux:button>
|
<flux:button type="submit" variant="primary"
|
||||||
<flux:button type="button" wire:click="resetRepositoryForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button>
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save
|
||||||
|
repository</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetRepositoryForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</x-slot:form>
|
</x-slot:form>
|
||||||
@@ -338,7 +464,8 @@
|
|||||||
|
|
||||||
|
|
||||||
@if ($section === 'workflow')
|
@if ($section === 'workflow')
|
||||||
<x-helpdesk::settings-section title="Workflow messages" description="Define the professional email messages sent when tickets are raised, updated, replied to and closed.">
|
<x-helpdesk::settings-section title="Workflow messages"
|
||||||
|
description="Define the professional email messages sent when tickets are raised, updated, replied to and closed.">
|
||||||
<x-slot:form>
|
<x-slot:form>
|
||||||
<form wire:submit.prevent="saveWorkflowTemplate" class="grid gap-4 md:grid-cols-6">
|
<form wire:submit.prevent="saveWorkflowTemplate" class="grid gap-4 md:grid-cols-6">
|
||||||
<flux:input wire:model="workflowForm.name" label="Name" />
|
<flux:input wire:model="workflowForm.name" label="Name" />
|
||||||
@@ -354,28 +481,41 @@
|
|||||||
<option value="agent">Assigned agent</option>
|
<option value="agent">Assigned agent</option>
|
||||||
<option value="actor">User making change</option>
|
<option value="actor">User making change</option>
|
||||||
</flux:select>
|
</flux:select>
|
||||||
<flux:input wire:model="workflowForm.cc" label="CC" placeholder="Optional comma-separated emails" />
|
<flux:input wire:model="workflowForm.cc" label="CC"
|
||||||
<flux:input wire:model="workflowForm.bcc" label="BCC" placeholder="Optional comma-separated emails" />
|
placeholder="Optional comma-separated emails" />
|
||||||
<label class="flex items-end gap-2 pb-2 text-sm text-zinc-700 dark:text-zinc-200"><input type="checkbox" wire:model="workflowForm.is_active" class="rounded border-zinc-300"> Active</label>
|
<flux:input wire:model="workflowForm.bcc" label="BCC"
|
||||||
|
placeholder="Optional comma-separated emails" />
|
||||||
|
<label class="flex items-end gap-2 pb-2 text-sm text-zinc-700 dark:text-zinc-200"><input
|
||||||
|
type="checkbox" wire:model="workflowForm.is_active" class="rounded border-zinc-300">
|
||||||
|
Active</label>
|
||||||
<div class="md:col-span-7">
|
<div class="md:col-span-7">
|
||||||
<flux:input wire:model="workflowForm.subject" label="Subject" placeholder="Ticket @{{ ticket.reference }} has been raised" />
|
<flux:input wire:model="workflowForm.subject" label="Subject"
|
||||||
|
placeholder="Ticket @{{ ticket.reference }} has been raised" />
|
||||||
</div>
|
</div>
|
||||||
<div class="md:col-span-7">
|
<div class="md:col-span-7">
|
||||||
<flux:textarea wire:model="workflowForm.html_body" label="HTML email body" rows="8" placeholder="Use tokens like @{{ ticket.reference }}, @{{ ticket.subject }}, @{{ ticket.status }}, @{{ requester.name }}, @{{ ticket.url }}" />
|
<flux:textarea wire:model="workflowForm.html_body" label="HTML email body" rows="8"
|
||||||
|
placeholder="Use tokens like @{{ ticket.reference }}, @{{ ticket.subject }}, @{{ ticket.status }}, @{{ requester.name }}, @{{ ticket.url }}" />
|
||||||
</div>
|
</div>
|
||||||
<div class="md:col-span-7">
|
<div class="md:col-span-7">
|
||||||
<flux:textarea wire:model="workflowForm.text_body" label="Plain text body" rows="4" placeholder="Optional fallback text" />
|
<flux:textarea wire:model="workflowForm.text_body" label="Plain text body" rows="4"
|
||||||
|
placeholder="Optional fallback text" />
|
||||||
</div>
|
</div>
|
||||||
<div class="md:col-span-7 flex gap-2">
|
<div class="md:col-span-7 flex gap-2">
|
||||||
<flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save workflow message</flux:button>
|
<flux:button type="submit" variant="primary"
|
||||||
<flux:button type="button" wire:click="resetWorkflowTemplateForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button>
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save
|
||||||
|
workflow message</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetWorkflowTemplateForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</x-slot:form>
|
</x-slot:form>
|
||||||
|
|
||||||
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-2xl border border-zinc-200 bg-white dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
||||||
<thead class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
<thead
|
||||||
|
class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="px-4 py-3">Name</th>
|
<th class="px-4 py-3">Name</th>
|
||||||
<th class="px-4 py-3">Event</th>
|
<th class="px-4 py-3">Event</th>
|
||||||
@@ -387,17 +527,31 @@
|
|||||||
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
||||||
@forelse ($workflowTemplates as $template)
|
@forelse ($workflowTemplates as $template)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-3 font-medium text-zinc-900 dark:text-zinc-100">{{ $template->name }}</td>
|
<td class="px-4 py-3 font-medium text-zinc-900 dark:text-zinc-100">
|
||||||
|
{{ $template->name }}</td>
|
||||||
<td class="px-4 py-3 text-zinc-600 dark:text-zinc-300">{{ $template->event }}</td>
|
<td class="px-4 py-3 text-zinc-600 dark:text-zinc-300">{{ $template->event }}</td>
|
||||||
<td class="px-4 py-3 text-zinc-600 dark:text-zinc-300">{{ $template->to_role }}</td>
|
<td class="px-4 py-3 text-zinc-600 dark:text-zinc-300">{{ $template->to_role }}</td>
|
||||||
<td class="px-4 py-3"><flux:badge color="{{ $template->is_active ? 'emerald' : 'zinc' }}">{{ $template->is_active ? 'Active' : 'Inactive' }}</flux:badge></td>
|
<td class="px-4 py-3">
|
||||||
|
<flux:badge color="{{ $template->is_active ? 'emerald' : 'zinc' }}">
|
||||||
|
{{ $template->is_active ? 'Active' : 'Inactive' }}</flux:badge>
|
||||||
|
</td>
|
||||||
<td class="px-4 py-3 text-right">
|
<td class="px-4 py-3 text-right">
|
||||||
<flux:button size="sm" variant="ghost" wire:click="editWorkflowTemplate({{ $template->id }})" class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit</flux:button>
|
<flux:button size="sm" variant="ghost"
|
||||||
<flux:button size="sm" variant="danger" wire:click="deleteWorkflowTemplate({{ $template->id }})" wire:confirm="Delete this workflow message?" class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete</flux:button>
|
wire:click="editWorkflowTemplate({{ $template->id }})"
|
||||||
|
class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">
|
||||||
|
Edit</flux:button>
|
||||||
|
<flux:button size="sm" variant="danger"
|
||||||
|
wire:click="deleteWorkflowTemplate({{ $template->id }})"
|
||||||
|
wire:confirm="Delete this workflow message?"
|
||||||
|
class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete
|
||||||
|
</flux:button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr><td colspan="5" class="px-4 py-8 text-center text-zinc-500">No workflow messages yet.</td></tr>
|
<tr>
|
||||||
|
<td colspan="5" class="px-4 py-8 text-center text-zinc-500">No workflow messages
|
||||||
|
yet.</td>
|
||||||
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -407,95 +561,394 @@
|
|||||||
|
|
||||||
|
|
||||||
@if ($section === 'canned')
|
@if ($section === 'canned')
|
||||||
<x-helpdesk::settings-section title="Canned responses" description="Save professional reusable replies with macro tokens for ticket, requester, agent, status and URL values.">
|
<x-helpdesk::settings-section title="Canned responses"
|
||||||
|
description="Save professional reusable replies with macro tokens for ticket, requester, agent, status and URL values.">
|
||||||
<x-slot:form>
|
<x-slot:form>
|
||||||
<form wire:submit.prevent="saveCannedResponse" class="grid gap-4 md:grid-cols-6">
|
<form wire:submit.prevent="saveCannedResponse" class="grid gap-4 md:grid-cols-6">
|
||||||
<flux:input wire:model="cannedForm.name" label="Name" />
|
<flux:input wire:model="cannedForm.name" label="Name" />
|
||||||
<flux:input wire:model="cannedForm.slug" label="Slug" placeholder="auto-generated" />
|
<flux:input wire:model="cannedForm.slug" label="Slug" placeholder="auto-generated" />
|
||||||
<flux:input wire:model="cannedForm.sort_order" label="Sort" type="number" min="0" />
|
<flux:input wire:model="cannedForm.sort_order" label="Sort" type="number" min="0" />
|
||||||
<flux:select wire:model="cannedForm.category_id" label="Category"><option value="">Any category</option>@foreach ($categories as $category)<option value="{{ $category->id }}">{{ $category->name }}</option>@endforeach</flux:select>
|
<flux:select wire:model="cannedForm.category_id" label="Category">
|
||||||
<flux:select wire:model="cannedForm.team_id" label="Team"><option value="">Any team</option>@foreach ($teams as $team)<option value="{{ $team->id }}">{{ $team->name }}</option>@endforeach</flux:select>
|
<option value="">Any category</option>
|
||||||
<label class="flex items-end gap-2 pb-2 text-sm text-zinc-700 dark:text-zinc-200"><input type="checkbox" wire:model="cannedForm.is_active" class="rounded border-zinc-300"> Active</label>
|
@foreach ($categories as $category)
|
||||||
<div class="md:col-span-7"><flux:input wire:model="cannedForm.subject" label="Optional subject" /></div>
|
<option value="{{ $category->id }}">{{ $category->name }}</option>
|
||||||
<div class="md:col-span-7"><flux:textarea wire:model="cannedForm.body" label="Reply body" rows="6" placeholder="Hello @{{ requester.name }}, Your ticket @{{ ticket.reference }} has been reviewed." /></div>
|
@endforeach
|
||||||
<div class="md:col-span-7 flex gap-2"><flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save canned response</flux:button><flux:button type="button" wire:click="resetCannedResponseForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button></div>
|
</flux:select>
|
||||||
|
<flux:select wire:model="cannedForm.team_id" label="Team">
|
||||||
|
<option value="">Any team</option>
|
||||||
|
@foreach ($teams as $team)
|
||||||
|
<option value="{{ $team->id }}">{{ $team->name }}</option>
|
||||||
|
@endforeach
|
||||||
|
</flux:select>
|
||||||
|
<label class="flex items-end gap-2 pb-2 text-sm text-zinc-700 dark:text-zinc-200"><input
|
||||||
|
type="checkbox" wire:model="cannedForm.is_active" class="rounded border-zinc-300">
|
||||||
|
Active</label>
|
||||||
|
<div class="md:col-span-7">
|
||||||
|
<flux:input wire:model="cannedForm.subject" label="Optional subject" />
|
||||||
|
</div>
|
||||||
|
<div class="md:col-span-7">
|
||||||
|
<flux:textarea wire:model="cannedForm.body" label="Reply body" rows="6"
|
||||||
|
placeholder="Hello @{{ requester.name }}, Your ticket @{{ ticket.reference }} has been reviewed." />
|
||||||
|
</div>
|
||||||
|
<div class="md:col-span-7 flex gap-2">
|
||||||
|
<flux:button type="submit" variant="primary"
|
||||||
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save canned
|
||||||
|
response</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetCannedResponseForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</x-slot:form>
|
</x-slot:form>
|
||||||
<div class="grid gap-3 md:grid-cols-2 xl:grid-cols-3">
|
<div class="grid gap-3 md:grid-cols-2 xl:grid-cols-3">
|
||||||
@forelse ($cannedResponses as $response)
|
@forelse ($cannedResponses as $response)
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-4 dark:border-zinc-700 dark:bg-zinc-900">
|
<div class="rounded-2xl border border-zinc-200 bg-white p-4 dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="flex items-start justify-between gap-3"><div><h3 class="font-semibold text-zinc-900 dark:text-zinc-100">{{ $response->name }}</h3><p class="text-xs text-zinc-500">{{ $response->category?->name ?? 'Any category' }} · {{ $response->team?->name ?? 'Any team' }}</p></div><flux:badge color="{{ $response->is_active ? 'emerald' : 'zinc' }}">{{ $response->is_active ? 'Active' : 'Inactive' }}</flux:badge></div>
|
<div class="flex items-start justify-between gap-3">
|
||||||
<p class="mt-3 line-clamp-3 text-sm text-zinc-600 dark:text-zinc-300">{{ strip_tags($response->body) }}</p>
|
<div>
|
||||||
<div class="mt-4 flex justify-end gap-2"><flux:button size="sm" variant="primary" wire:click="editCannedResponse({{ $response->id }})" class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit</flux:button><flux:button size="sm" variant="danger" wire:click="deleteCannedResponse({{ $response->id }})" wire:confirm="Delete this canned response?" class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete</flux:button></div>
|
<h3 class="font-semibold text-zinc-900 dark:text-zinc-100">{{ $response->name }}</h3>
|
||||||
|
<p class="text-xs text-zinc-500">{{ $response->category?->name ?? 'Any category' }} ·
|
||||||
|
{{ $response->team?->name ?? 'Any team' }}</p>
|
||||||
|
</div>
|
||||||
|
<flux:badge color="{{ $response->is_active ? 'emerald' : 'zinc' }}">
|
||||||
|
{{ $response->is_active ? 'Active' : 'Inactive' }}</flux:badge>
|
||||||
|
</div>
|
||||||
|
<p class="mt-3 line-clamp-3 text-sm text-zinc-600 dark:text-zinc-300">
|
||||||
|
{{ strip_tags($response->body) }}</p>
|
||||||
|
<div class="mt-4 flex justify-end gap-2">
|
||||||
|
<flux:button size="sm" variant="primary"
|
||||||
|
wire:click="editCannedResponse({{ $response->id }})"
|
||||||
|
class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit
|
||||||
|
</flux:button>
|
||||||
|
<flux:button size="sm" variant="danger"
|
||||||
|
wire:click="deleteCannedResponse({{ $response->id }})"
|
||||||
|
wire:confirm="Delete this canned response?"
|
||||||
|
class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@empty
|
@empty
|
||||||
<div class="rounded-2xl border border-dashed border-zinc-300 p-8 text-center text-sm text-zinc-500 dark:border-zinc-700 md:col-span-2 xl:col-span-3">No canned responses yet.</div>
|
<div
|
||||||
|
class="rounded-2xl border border-dashed border-zinc-300 p-8 text-center text-sm text-zinc-500 dark:border-zinc-700 md:col-span-2 xl:col-span-3">
|
||||||
|
No canned responses yet.</div>
|
||||||
@endforelse
|
@endforelse
|
||||||
</div>
|
</div>
|
||||||
</x-helpdesk::settings-section>
|
</x-helpdesk::settings-section>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($section === 'sla')
|
@if ($section === 'sla')
|
||||||
<x-helpdesk::settings-section title="SLA policies" description="Define first response and resolution targets used for breach indicators, reporting and ticket cards.">
|
<x-helpdesk::settings-section title="SLA policies"
|
||||||
|
description="Define first response and resolution targets used for breach indicators, reporting and ticket cards.">
|
||||||
<x-slot:form>
|
<x-slot:form>
|
||||||
<form wire:submit.prevent="saveSlaPolicy" class="grid gap-4 md:grid-cols-6">
|
<form wire:submit.prevent="saveSlaPolicy" class="grid gap-4 md:grid-cols-6">
|
||||||
<flux:input wire:model="slaForm.name" label="Name" />
|
<flux:input wire:model="slaForm.name" label="Name" />
|
||||||
<flux:input wire:model="slaForm.slug" label="Slug" placeholder="auto-generated" />
|
<flux:input wire:model="slaForm.slug" label="Slug" placeholder="auto-generated" />
|
||||||
<flux:select wire:model="slaForm.priority_id" label="Priority"><option value="">Any priority</option>@foreach ($priorities as $priority)<option value="{{ $priority->id }}">{{ $priority->name }}</option>@endforeach</flux:select>
|
<flux:select wire:model="slaForm.priority_id" label="Priority">
|
||||||
<flux:select wire:model="slaForm.category_id" label="Category"><option value="">Any category</option>@foreach ($categories as $category)<option value="{{ $category->id }}">{{ $category->name }}</option>@endforeach</flux:select>
|
<option value="">Any priority</option>
|
||||||
<flux:input wire:model="slaForm.first_response_minutes" label="First response minutes" type="number" min="1" />
|
@foreach ($priorities as $priority)
|
||||||
<flux:input wire:model="slaForm.resolution_minutes" label="Resolution minutes" type="number" min="1" />
|
<option value="{{ $priority->id }}">{{ $priority->name }}</option>
|
||||||
<label class="flex items-center gap-2 text-sm text-zinc-700 dark:text-zinc-200"><input type="checkbox" wire:model="slaForm.is_default" class="rounded border-zinc-300"> Default</label>
|
@endforeach
|
||||||
<label class="flex items-center gap-2 text-sm text-zinc-700 dark:text-zinc-200"><input type="checkbox" wire:model="slaForm.business_hours_only" class="rounded border-zinc-300"> Business hours</label>
|
</flux:select>
|
||||||
<label class="flex items-center gap-2 text-sm text-zinc-700 dark:text-zinc-200"><input type="checkbox" wire:model="slaForm.is_active" class="rounded border-zinc-300"> Active</label>
|
<flux:select wire:model="slaForm.category_id" label="Category">
|
||||||
<div class="md:col-span-7 flex gap-2"><flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save SLA policy</flux:button><flux:button type="button" wire:click="resetSlaPolicyForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button></div>
|
<option value="">Any category</option>
|
||||||
|
@foreach ($categories as $category)
|
||||||
|
<option value="{{ $category->id }}">{{ $category->name }}</option>
|
||||||
|
@endforeach
|
||||||
|
</flux:select>
|
||||||
|
<flux:input wire:model="slaForm.first_response_minutes" label="First response minutes"
|
||||||
|
type="number" min="1" />
|
||||||
|
<flux:input wire:model="slaForm.resolution_minutes" label="Resolution minutes" type="number"
|
||||||
|
min="1" />
|
||||||
|
<label class="flex items-center gap-2 text-sm text-zinc-700 dark:text-zinc-200"><input
|
||||||
|
type="checkbox" wire:model="slaForm.is_default" class="rounded border-zinc-300">
|
||||||
|
Default</label>
|
||||||
|
<label class="flex items-center gap-2 text-sm text-zinc-700 dark:text-zinc-200"><input
|
||||||
|
type="checkbox" wire:model="slaForm.business_hours_only" class="rounded border-zinc-300">
|
||||||
|
Business hours</label>
|
||||||
|
<label class="flex items-center gap-2 text-sm text-zinc-700 dark:text-zinc-200"><input
|
||||||
|
type="checkbox" wire:model="slaForm.is_active" class="rounded border-zinc-300">
|
||||||
|
Active</label>
|
||||||
|
<div class="md:col-span-7 flex gap-2">
|
||||||
|
<flux:button type="submit" variant="primary"
|
||||||
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save SLA
|
||||||
|
policy</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetSlaPolicyForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</x-slot:form>
|
</x-slot:form>
|
||||||
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white dark:border-zinc-700 dark:bg-zinc-900"><table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700"><thead class="bg-zinc-50 text-left text-xs font-semibold uppercase text-zinc-500 dark:bg-zinc-800"><tr><th class="px-4 py-3">Policy</th><th class="px-4 py-3">Targets</th><th class="px-4 py-3">Applies to</th><th class="px-4 py-3 text-right">Actions</th></tr></thead><tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">@forelse ($slaPolicies as $policy)<tr><td class="px-4 py-3 font-medium">{{ $policy->name }} @if($policy->is_default)<flux:badge color="blue">Default</flux:badge>@endif</td><td class="px-4 py-3">{{ $policy->first_response_minutes }}m response · {{ $policy->resolution_minutes }}m close</td><td class="px-4 py-3">{{ $policy->priority?->name ?? 'Any priority' }} · {{ $policy->category?->name ?? 'Any category' }}</td><td class="px-4 py-3 text-right"><flux:button size="sm" variant="primary" wire:click="editSlaPolicy({{ $policy->id }})" class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit</flux:button> <flux:button size="sm" variant="danger" wire:click="deleteSlaPolicy({{ $policy->id }})" wire:confirm="Delete this SLA policy?" class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete</flux:button></td></tr>@empty<tr><td colspan="6" class="px-4 py-8 text-center text-zinc-500">No SLA policies yet.</td></tr>@endforelse</tbody></table></div>
|
<div
|
||||||
|
class="overflow-hidden rounded-2xl border border-zinc-200 bg-white dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
|
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
||||||
|
<thead class="bg-zinc-50 text-left text-xs font-semibold uppercase text-zinc-500 dark:bg-zinc-800">
|
||||||
|
<tr>
|
||||||
|
<th class="px-4 py-3">Policy</th>
|
||||||
|
<th class="px-4 py-3">Targets</th>
|
||||||
|
<th class="px-4 py-3">Applies to</th>
|
||||||
|
<th class="px-4 py-3 text-right">Actions</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
||||||
|
@forelse ($slaPolicies as $policy)
|
||||||
|
<tr>
|
||||||
|
<td class="px-4 py-3 font-medium">{{ $policy->name }} @if ($policy->is_default)
|
||||||
|
<flux:badge color="blue">Default</flux:badge>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
<td class="px-4 py-3">{{ $policy->first_response_minutes }}m response ·
|
||||||
|
{{ $policy->resolution_minutes }}m close</td>
|
||||||
|
<td class="px-4 py-3">{{ $policy->priority?->name ?? 'Any priority' }} ·
|
||||||
|
{{ $policy->category?->name ?? 'Any category' }}</td>
|
||||||
|
<td class="px-4 py-3 text-right">
|
||||||
|
<flux:button size="sm" variant="primary"
|
||||||
|
wire:click="editSlaPolicy({{ $policy->id }})"
|
||||||
|
class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">
|
||||||
|
Edit</flux:button>
|
||||||
|
<flux:button size="sm" variant="danger"
|
||||||
|
wire:click="deleteSlaPolicy({{ $policy->id }})"
|
||||||
|
wire:confirm="Delete this SLA policy?"
|
||||||
|
class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete
|
||||||
|
</flux:button>
|
||||||
|
</td>
|
||||||
|
</tr>@empty<tr>
|
||||||
|
<td colspan="6" class="px-4 py-8 text-center text-zinc-500">No SLA policies yet.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endforelse
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</x-helpdesk::settings-section>
|
</x-helpdesk::settings-section>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($section === 'automation')
|
@if ($section === 'automation')
|
||||||
<x-helpdesk::settings-section title="Email automation rules" description="Match incoming support messages and automatically assign priority, category, team, project, agent and status.">
|
<x-helpdesk::settings-section title="Email automation rules"
|
||||||
|
description="Match incoming support messages and automatically assign priority, category, team, project, agent and status.">
|
||||||
<x-slot:form>
|
<x-slot:form>
|
||||||
<form wire:submit.prevent="saveAutomationRule" class="grid gap-4 md:grid-cols-6">
|
<form wire:submit.prevent="saveAutomationRule" class="grid gap-4 md:grid-cols-6">
|
||||||
<flux:input wire:model="automationForm.name" label="Name" />
|
<flux:input wire:model="automationForm.name" label="Name" />
|
||||||
<flux:input wire:model="automationForm.slug" label="Slug" placeholder="auto-generated" />
|
<flux:input wire:model="automationForm.slug" label="Slug" placeholder="auto-generated" />
|
||||||
<flux:input wire:model="automationForm.sort_order" label="Sort" type="number" min="0" />
|
<flux:input wire:model="automationForm.sort_order" label="Sort" type="number"
|
||||||
|
min="0" />
|
||||||
<flux:input wire:model="automationForm.match_sender" label="Sender contains" />
|
<flux:input wire:model="automationForm.match_sender" label="Sender contains" />
|
||||||
<flux:input wire:model="automationForm.match_subject" label="Subject contains" />
|
<flux:input wire:model="automationForm.match_subject" label="Subject contains" />
|
||||||
<flux:input wire:model="automationForm.match_mailbox" label="Mailbox contains" />
|
<flux:input wire:model="automationForm.match_mailbox" label="Mailbox contains" />
|
||||||
<flux:select wire:model="automationForm.set_priority_id" label="Set priority"><option value="">No change</option>@foreach ($priorities as $priority)<option value="{{ $priority->id }}">{{ $priority->name }}</option>@endforeach</flux:select>
|
<flux:select wire:model="automationForm.set_priority_id" label="Set priority">
|
||||||
<flux:select wire:model="automationForm.set_category_id" label="Set category"><option value="">No change</option>@foreach ($categories as $category)<option value="{{ $category->id }}">{{ $category->name }}</option>@endforeach</flux:select>
|
<option value="">No change</option>
|
||||||
<flux:select wire:model="automationForm.set_team_id" label="Set team"><option value="">No change</option>@foreach ($teams as $team)<option value="{{ $team->id }}">{{ $team->name }}</option>@endforeach</flux:select>
|
@foreach ($priorities as $priority)
|
||||||
<flux:select wire:model="automationForm.set_project_id" label="Set project"><option value="">No change</option>@foreach ($projects as $project)<option value="{{ $project->id }}">{{ $project->title }}</option>@endforeach</flux:select>
|
<option value="{{ $priority->id }}">{{ $priority->name }}</option>
|
||||||
<flux:select wire:model="automationForm.set_status_id" label="Set status"><option value="">No change</option>@foreach ($statuses as $status)<option value="{{ $status->id }}">{{ $status->name }}</option>@endforeach</flux:select>
|
@endforeach
|
||||||
<label class="flex items-end gap-2 pb-2 text-sm text-zinc-700 dark:text-zinc-200"><input type="checkbox" wire:model="automationForm.is_active" class="rounded border-zinc-300"> Active</label>
|
</flux:select>
|
||||||
<div class="md:col-span-7 flex gap-2"><flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save automation rule</flux:button><flux:button type="button" wire:click="resetAutomationRuleForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button></div>
|
<flux:select wire:model="automationForm.set_category_id" label="Set category">
|
||||||
|
<option value="">No change</option>
|
||||||
|
@foreach ($categories as $category)
|
||||||
|
<option value="{{ $category->id }}">{{ $category->name }}</option>
|
||||||
|
@endforeach
|
||||||
|
</flux:select>
|
||||||
|
<flux:select wire:model="automationForm.set_team_id" label="Set team">
|
||||||
|
<option value="">No change</option>
|
||||||
|
@foreach ($teams as $team)
|
||||||
|
<option value="{{ $team->id }}">{{ $team->name }}</option>
|
||||||
|
@endforeach
|
||||||
|
</flux:select>
|
||||||
|
<flux:select wire:model="automationForm.set_project_id" label="Set project">
|
||||||
|
<option value="">No change</option>
|
||||||
|
@foreach ($projects as $project)
|
||||||
|
<option value="{{ $project->id }}">{{ $project->title }}</option>
|
||||||
|
@endforeach
|
||||||
|
</flux:select>
|
||||||
|
<flux:select wire:model="automationForm.set_status_id" label="Set status">
|
||||||
|
<option value="">No change</option>
|
||||||
|
@foreach ($statuses as $status)
|
||||||
|
<option value="{{ $status->id }}">{{ $status->name }}</option>
|
||||||
|
@endforeach
|
||||||
|
</flux:select>
|
||||||
|
<label class="flex items-end gap-2 pb-2 text-sm text-zinc-700 dark:text-zinc-200"><input
|
||||||
|
type="checkbox" wire:model="automationForm.is_active" class="rounded border-zinc-300">
|
||||||
|
Active</label>
|
||||||
|
<div class="md:col-span-7 flex gap-2">
|
||||||
|
<flux:button type="submit" variant="primary"
|
||||||
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save
|
||||||
|
automation rule</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetAutomationRuleForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</x-slot:form>
|
</x-slot:form>
|
||||||
<div class="grid gap-3 md:grid-cols-2">@forelse ($automationRules as $rule)<div class="rounded-2xl border border-zinc-200 bg-white p-4 dark:border-zinc-700 dark:bg-zinc-900"><h3 class="font-semibold">{{ $rule->name }}</h3><p class="mt-1 text-sm text-zinc-500">Sender: {{ $rule->match_sender ?: 'Any' }} · Subject: {{ $rule->match_subject ?: 'Any' }}</p><div class="mt-4 flex justify-end gap-2"><flux:button size="sm" variant="primary" wire:click="editAutomationRule({{ $rule->id }})" class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit</flux:button><flux:button size="sm" variant="danger" wire:click="deleteAutomationRule({{ $rule->id }})" wire:confirm="Delete this rule?" class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete</flux:button></div></div>@empty<div class="rounded-2xl border border-dashed border-zinc-300 p-8 text-center text-sm text-zinc-500 dark:border-zinc-700 md:col-span-2">No automation rules yet.</div>@endforelse</div>
|
<div class="grid gap-3 md:grid-cols-2">
|
||||||
|
@forelse ($automationRules as $rule)
|
||||||
|
<div class="rounded-2xl border border-zinc-200 bg-white p-4 dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
|
<h3 class="font-semibold">{{ $rule->name }}</h3>
|
||||||
|
<p class="mt-1 text-sm text-zinc-500">Sender: {{ $rule->match_sender ?: 'Any' }} · Subject:
|
||||||
|
{{ $rule->match_subject ?: 'Any' }}</p>
|
||||||
|
<div class="mt-4 flex justify-end gap-2">
|
||||||
|
<flux:button size="sm" variant="primary"
|
||||||
|
wire:click="editAutomationRule({{ $rule->id }})"
|
||||||
|
class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit
|
||||||
|
</flux:button>
|
||||||
|
<flux:button size="sm" variant="danger"
|
||||||
|
wire:click="deleteAutomationRule({{ $rule->id }})"
|
||||||
|
wire:confirm="Delete this rule?"
|
||||||
|
class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
|
</div>@empty<div
|
||||||
|
class="rounded-2xl border border-dashed border-zinc-300 p-8 text-center text-sm text-zinc-500 dark:border-zinc-700 md:col-span-2">
|
||||||
|
No automation rules yet.</div>
|
||||||
|
@endforelse
|
||||||
|
</div>
|
||||||
</x-helpdesk::settings-section>
|
</x-helpdesk::settings-section>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($section === 'checklists')
|
@if ($section === 'checklists')
|
||||||
<x-helpdesk::settings-section title="Checklist templates" description="Apply repeatable checklist items by category or project and show completion progress on tickets and Kanban cards.">
|
<x-helpdesk::settings-section title="Checklist templates"
|
||||||
<x-slot:form><form wire:submit.prevent="saveChecklistTemplate" class="grid gap-4 md:grid-cols-6"><flux:input wire:model="checklistTemplateForm.name" label="Name" /><flux:input wire:model="checklistTemplateForm.slug" label="Slug" /><flux:select wire:model="checklistTemplateForm.category_id" label="Category"><option value="">Any category</option>@foreach ($categories as $category)<option value="{{ $category->id }}">{{ $category->name }}</option>@endforeach</flux:select><flux:select wire:model="checklistTemplateForm.project_id" label="Project"><option value="">Any project</option>@foreach ($projects as $project)<option value="{{ $project->id }}">{{ $project->title }}</option>@endforeach</flux:select><label class="flex items-end gap-2 pb-2 text-sm"><input type="checkbox" wire:model="checklistTemplateForm.is_active" class="rounded border-zinc-300"> Active</label><div class="md:col-span-7"><flux:textarea wire:model="checklistTemplateForm.items_text" label="Checklist items, one per line" rows="6" /></div><div class="md:col-span-7 flex gap-2"><flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save checklist</flux:button><flux:button type="button" wire:click="resetChecklistTemplateForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button></div></form></x-slot:form>
|
description="Apply repeatable checklist items by category or project and show completion progress on tickets and Kanban cards.">
|
||||||
<div class="grid gap-3 md:grid-cols-2 xl:grid-cols-3">@forelse ($checklistTemplates as $template)<div class="rounded-2xl border border-zinc-200 bg-white p-4 dark:border-zinc-700 dark:bg-zinc-900"><h3 class="font-semibold">{{ $template->name }}</h3><p class="mt-1 text-sm text-zinc-500">{{ count($template->items ?? []) }} items</p><div class="mt-4 flex justify-end gap-2"><flux:button size="sm" variant="primary" wire:click="editChecklistTemplate({{ $template->id }})" class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit</flux:button><flux:button size="sm" variant="danger" wire:click="deleteChecklistTemplate({{ $template->id }})" wire:confirm="Delete this checklist?" class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete</flux:button></div></div>@empty<div class="rounded-2xl border border-dashed border-zinc-300 p-8 text-center text-sm text-zinc-500 dark:border-zinc-700 md:col-span-2 xl:col-span-3">No checklist templates yet.</div>@endforelse</div>
|
<x-slot:form>
|
||||||
|
<form wire:submit.prevent="saveChecklistTemplate" class="grid gap-4 md:grid-cols-6">
|
||||||
|
<flux:input wire:model="checklistTemplateForm.name" label="Name" />
|
||||||
|
<flux:input wire:model="checklistTemplateForm.slug" label="Slug" />
|
||||||
|
<flux:select wire:model="checklistTemplateForm.category_id" label="Category">
|
||||||
|
<option value="">Any category</option>
|
||||||
|
@foreach ($categories as $category)
|
||||||
|
<option value="{{ $category->id }}">{{ $category->name }}</option>
|
||||||
|
@endforeach
|
||||||
|
</flux:select>
|
||||||
|
<flux:select wire:model="checklistTemplateForm.project_id" label="Project">
|
||||||
|
<option value="">Any project</option>
|
||||||
|
@foreach ($projects as $project)
|
||||||
|
<option value="{{ $project->id }}">{{ $project->title }}</option>
|
||||||
|
@endforeach
|
||||||
|
</flux:select>
|
||||||
|
<label class="flex items-end gap-2 pb-2 text-sm"><input type="checkbox"
|
||||||
|
wire:model="checklistTemplateForm.is_active" class="rounded border-zinc-300">
|
||||||
|
Active</label>
|
||||||
|
<div class="md:col-span-7">
|
||||||
|
<flux:textarea wire:model="checklistTemplateForm.items_text"
|
||||||
|
label="Checklist items, one per line" rows="6" />
|
||||||
|
</div>
|
||||||
|
<div class="md:col-span-7 flex gap-2">
|
||||||
|
<flux:button type="submit" variant="primary"
|
||||||
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save
|
||||||
|
checklist</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetChecklistTemplateForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</x-slot:form>
|
||||||
|
<div class="grid gap-3 md:grid-cols-2 xl:grid-cols-3">
|
||||||
|
@forelse ($checklistTemplates as $template)
|
||||||
|
<div class="rounded-2xl border border-zinc-200 bg-white p-4 dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
|
<h3 class="font-semibold">{{ $template->name }}</h3>
|
||||||
|
<p class="mt-1 text-sm text-zinc-500">{{ count($template->items ?? []) }} items</p>
|
||||||
|
<div class="mt-4 flex justify-end gap-2">
|
||||||
|
<flux:button size="sm" variant="primary"
|
||||||
|
wire:click="editChecklistTemplate({{ $template->id }})"
|
||||||
|
class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit
|
||||||
|
</flux:button>
|
||||||
|
<flux:button size="sm" variant="danger"
|
||||||
|
wire:click="deleteChecklistTemplate({{ $template->id }})"
|
||||||
|
wire:confirm="Delete this checklist?"
|
||||||
|
class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
|
</div>@empty<div
|
||||||
|
class="rounded-2xl border border-dashed border-zinc-300 p-8 text-center text-sm text-zinc-500 dark:border-zinc-700 md:col-span-2 xl:col-span-3">
|
||||||
|
No checklist templates yet.</div>
|
||||||
|
@endforelse
|
||||||
|
</div>
|
||||||
</x-helpdesk::settings-section>
|
</x-helpdesk::settings-section>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($section === 'tags')
|
@if ($section === 'tags')
|
||||||
<x-helpdesk::settings-section title="Ticket tags" description="Maintain visible ticket labels for search, triage and Kanban card context.">
|
<x-helpdesk::settings-section title="Ticket tags"
|
||||||
<x-slot:form><form wire:submit.prevent="saveTag" class="grid gap-4 md:grid-cols-5"><flux:input wire:model="tagForm.name" label="Name" /><flux:input wire:model="tagForm.slug" label="Slug" /><flux:input wire:model="tagForm.color" label="Colour" /><div class="md:col-span-5 flex gap-2"><flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save tag</flux:button><flux:button type="button" wire:click="resetTagForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button></div></form></x-slot:form>
|
description="Maintain visible ticket labels for search, triage and Kanban card context.">
|
||||||
<div class="flex flex-wrap gap-3">@forelse ($tags as $tag)<div class="rounded-2xl border border-zinc-200 bg-white px-4 py-3 dark:border-zinc-700 dark:bg-zinc-900"><span class="rounded-full px-2 py-1 text-xs font-semibold text-white" style="background-color: {{ \Modules\Helpdesk\Support\Color::css($tag->color) }}">{{ $tag->name }}</span><div class="mt-3 flex gap-2"><flux:button size="sm" variant="primary" wire:click="editTag({{ $tag->id }})" class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit</flux:button><flux:button size="sm" variant="danger" wire:click="deleteTag({{ $tag->id }})" wire:confirm="Delete this tag?" class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete</flux:button></div></div>@empty<div class="rounded-2xl border border-dashed border-zinc-300 p-8 text-center text-sm text-zinc-500 dark:border-zinc-700">No tags yet.</div>@endforelse</div>
|
<x-slot:form>
|
||||||
|
<form wire:submit.prevent="saveTag" class="grid gap-4 md:grid-cols-5">
|
||||||
|
<flux:input wire:model="tagForm.name" label="Name" />
|
||||||
|
<flux:input wire:model="tagForm.slug" label="Slug" />
|
||||||
|
<flux:input wire:model="tagForm.color" label="Colour" />
|
||||||
|
<div class="md:col-span-5 flex gap-2">
|
||||||
|
<flux:button type="submit" variant="primary"
|
||||||
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save tag
|
||||||
|
</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetTagForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</x-slot:form>
|
||||||
|
<div class="flex flex-wrap gap-3">
|
||||||
|
@forelse ($tags as $tag)
|
||||||
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white px-4 py-3 dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
|
<span class="rounded-full px-2 py-1 text-xs font-semibold text-white"
|
||||||
|
style="background-color: {{ \Modules\Helpdesk\Support\Color::css($tag->color) }}">{{ $tag->name }}</span>
|
||||||
|
<div class="mt-3 flex gap-2">
|
||||||
|
<flux:button size="sm" variant="primary" wire:click="editTag({{ $tag->id }})"
|
||||||
|
class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit
|
||||||
|
</flux:button>
|
||||||
|
<flux:button size="sm" variant="danger" wire:click="deleteTag({{ $tag->id }})"
|
||||||
|
wire:confirm="Delete this tag?"
|
||||||
|
class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
|
</div>@empty<div
|
||||||
|
class="rounded-2xl border border-dashed border-zinc-300 p-8 text-center text-sm text-zinc-500 dark:border-zinc-700">
|
||||||
|
No tags yet.</div>
|
||||||
|
@endforelse
|
||||||
|
</div>
|
||||||
</x-helpdesk::settings-section>
|
</x-helpdesk::settings-section>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($section === 'products')
|
@if ($section === 'products')
|
||||||
<x-helpdesk::settings-section title="Products and services" description="Link tickets to products, services, releases or builds and report support cost/time by product.">
|
<x-helpdesk::settings-section title="Products and services"
|
||||||
<x-slot:form><form wire:submit.prevent="saveProduct" class="grid gap-4 md:grid-cols-6"><flux:input wire:model="productForm.name" label="Name" /><flux:input wire:model="productForm.slug" label="Slug" /><flux:input wire:model="productForm.type" label="Type" /><flux:input wire:model="productForm.version" label="Version" /><flux:input wire:model="productForm.release_channel" label="Release/build" /><label class="flex items-end gap-2 pb-2 text-sm"><input type="checkbox" wire:model="productForm.is_active" class="rounded border-zinc-300"> Active</label><div class="md:col-span-7"><flux:textarea wire:model="productForm.description" label="Description" rows="3" /></div><div class="md:col-span-7 flex gap-2"><flux:button type="submit" variant="primary" class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save product/service</flux:button><flux:button type="button" wire:click="resetProductForm" variant="ghost" class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset</flux:button></div></form></x-slot:form>
|
description="Link tickets to products, services, releases or builds and report support cost/time by product.">
|
||||||
<div class="grid gap-3 md:grid-cols-2 xl:grid-cols-3">@forelse ($products as $product)<div class="rounded-2xl border border-zinc-200 bg-white p-4 dark:border-zinc-700 dark:bg-zinc-900"><h3 class="font-semibold">{{ $product->name }}</h3><p class="mt-1 text-sm text-zinc-500">{{ ucfirst($product->type) }} · {{ $product->version ?: 'No version' }} · {{ $product->tickets_count }} tickets</p><div class="mt-4 flex justify-end gap-2"><flux:button size="sm" variant="primary" wire:click="editProduct({{ $product->id }})" class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit</flux:button><flux:button size="sm" variant="danger" wire:click="deleteProduct({{ $product->id }})" wire:confirm="Delete this product/service?" class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete</flux:button></div></div>@empty<div class="rounded-2xl border border-dashed border-zinc-300 p-8 text-center text-sm text-zinc-500 dark:border-zinc-700 md:col-span-2 xl:col-span-3">No products or services yet.</div>@endforelse</div>
|
<x-slot:form>
|
||||||
|
<form wire:submit.prevent="saveProduct" class="grid gap-4 md:grid-cols-6">
|
||||||
|
<flux:input wire:model="productForm.name" label="Name" />
|
||||||
|
<flux:input wire:model="productForm.slug" label="Slug" />
|
||||||
|
<flux:input wire:model="productForm.type" label="Type" />
|
||||||
|
<flux:input wire:model="productForm.version" label="Version" />
|
||||||
|
<flux:input wire:model="productForm.release_channel" label="Release/build" /><label
|
||||||
|
class="flex items-end gap-2 pb-2 text-sm"><input type="checkbox"
|
||||||
|
wire:model="productForm.is_active" class="rounded border-zinc-300"> Active</label>
|
||||||
|
<div class="md:col-span-7">
|
||||||
|
<flux:textarea wire:model="productForm.description" label="Description" rows="3" />
|
||||||
|
</div>
|
||||||
|
<div class="md:col-span-7 flex gap-2">
|
||||||
|
<flux:button type="submit" variant="primary"
|
||||||
|
class="!bg-green-600 !text-white hover:!bg-green-700 focus:!ring-green-400/60">Save
|
||||||
|
product/service</flux:button>
|
||||||
|
<flux:button type="button" wire:click="resetProductForm" variant="ghost"
|
||||||
|
class="!bg-amber-500 !text-white hover:!bg-amber-600 focus:!ring-amber-300/60">Reset
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</x-slot:form>
|
||||||
|
<div class="grid gap-3 md:grid-cols-2 xl:grid-cols-3">
|
||||||
|
@forelse ($products as $product)
|
||||||
|
<div class="rounded-2xl border border-zinc-200 bg-white p-4 dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
|
<h3 class="font-semibold">{{ $product->name }}</h3>
|
||||||
|
<p class="mt-1 text-sm text-zinc-500">{{ ucfirst($product->type) }} ·
|
||||||
|
{{ $product->version ?: 'No version' }} · {{ $product->tickets_count }} tickets</p>
|
||||||
|
<div class="mt-4 flex justify-end gap-2">
|
||||||
|
<flux:button size="sm" variant="primary"
|
||||||
|
wire:click="editProduct({{ $product->id }})"
|
||||||
|
class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Edit
|
||||||
|
</flux:button>
|
||||||
|
<flux:button size="sm" variant="danger"
|
||||||
|
wire:click="deleteProduct({{ $product->id }})"
|
||||||
|
wire:confirm="Delete this product/service?"
|
||||||
|
class="!bg-red-600 !text-white hover:!bg-red-700 focus:!ring-red-400/60">Delete
|
||||||
|
</flux:button>
|
||||||
|
</div>
|
||||||
|
</div>@empty<div
|
||||||
|
class="rounded-2xl border border-dashed border-zinc-300 p-8 text-center text-sm text-zinc-500 dark:border-zinc-700 md:col-span-2 xl:col-span-3">
|
||||||
|
No products or services yet.</div>
|
||||||
|
@endforelse
|
||||||
|
</div>
|
||||||
</x-helpdesk::settings-section>
|
</x-helpdesk::settings-section>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
<div class="hd-helpdesk-surface space-y-6" dusk="helpdesk-ticket-create">
|
<div class="hd-helpdesk-surface space-y-6" dusk="helpdesk-ticket-create">
|
||||||
@vite([
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||||
'resources/css/app.css',
|
|
||||||
'resources/js/app.js',
|
|
||||||
])
|
|
||||||
@include('helpdesk::partials.page-header', [
|
@include('helpdesk::partials.page-header', [
|
||||||
'eyebrow' => 'Helpdesk',
|
'eyebrow' => 'Helpdesk',
|
||||||
'title' => 'Create ticket',
|
'title' => 'Create ticket',
|
||||||
'subtitle' => 'Raise a new support request with priority, product/service, project, category, team and full details.',
|
'subtitle' =>
|
||||||
|
'Raise a new support request with priority, product/service, project, category, team and full details.',
|
||||||
])
|
])
|
||||||
|
|
||||||
<form wire:submit.prevent="save" enctype="multipart/form-data" class="helpdesk-ticket-form space-y-6">
|
<form wire:submit.prevent="save" enctype="multipart/form-data" class="helpdesk-ticket-form space-y-6">
|
||||||
@@ -25,16 +23,9 @@
|
|||||||
Subject <span class="helpdesk-required-star">*</span>
|
Subject <span class="helpdesk-required-star">*</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input
|
<input id="subject" type="text" maxlength="180" wire:model.defer="subject"
|
||||||
id="subject"
|
|
||||||
type="text"
|
|
||||||
maxlength="180"
|
|
||||||
wire:model.defer="subject"
|
|
||||||
class="mt-2 block h-14 w-full max-w-4xl rounded-xl border border-zinc-700 bg-zinc-950 px-4 text-base font-medium text-zinc-100 shadow-sm outline-none transition-colors duration-150 placeholder:text-zinc-500 focus:border-blue-500 focus:bg-zinc-950 focus:ring-2 focus:ring-blue-500/40"
|
class="mt-2 block h-14 w-full max-w-4xl rounded-xl border border-zinc-700 bg-zinc-950 px-4 text-base font-medium text-zinc-100 shadow-sm outline-none transition-colors duration-150 placeholder:text-zinc-500 focus:border-blue-500 focus:bg-zinc-950 focus:ring-2 focus:ring-blue-500/40"
|
||||||
data-dusk="ticket-subject"
|
data-dusk="ticket-subject" dusk="ticket-subject" autocomplete="off" />
|
||||||
dusk="ticket-subject"
|
|
||||||
autocomplete="off"
|
|
||||||
/>
|
|
||||||
|
|
||||||
@error('subject')
|
@error('subject')
|
||||||
<p class="mt-2 text-sm text-red-500">{{ $message }}</p>
|
<p class="mt-2 text-sm text-red-500">{{ $message }}</p>
|
||||||
@@ -48,17 +39,13 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="company_id" dusk="ticket-company" data-helpdesk-select2
|
||||||
id="company_id"
|
data-placeholder="Select option" data-wire-model="company_id"
|
||||||
dusk="ticket-company"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500">
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="company_id"
|
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
|
||||||
>
|
|
||||||
<option value="">Select company</option>
|
<option value="">Select company</option>
|
||||||
@foreach ($companies as $company)
|
@foreach ($companies as $company)
|
||||||
<option value="{{ $company->id }}" @selected((string) $company_id === (string) $company->id)>{{ $company->name }}</option>
|
<option value="{{ $company->id }}" @selected((string) $company_id === (string) $company->id)>
|
||||||
|
{{ $company->name }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -75,18 +62,14 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="board_id" data-helpdesk-select2 data-placeholder="Select option"
|
||||||
id="board_id"
|
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="board_id"
|
data-wire-model="board_id"
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
||||||
data-dusk="ticket-board"
|
data-dusk="ticket-board" dusk="ticket-board">
|
||||||
dusk="ticket-board"
|
|
||||||
>
|
|
||||||
<option value="">No board</option>
|
<option value="">No board</option>
|
||||||
@foreach ($boards as $board)
|
@foreach ($boards as $board)
|
||||||
<option value="{{ $board->id }}" @selected((int) $board_id === (int) $board->id)>{{ $board->name }}{{ $board->owner ? ' · '.$board->owner->name : '' }}</option>
|
<option value="{{ $board->id }}" @selected((int) $board_id === (int) $board->id)>
|
||||||
|
{{ $board->name }}{{ $board->owner ? ' · ' . $board->owner->name : '' }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -102,18 +85,14 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="priority_id" data-helpdesk-select2 data-placeholder="Select option"
|
||||||
id="priority_id"
|
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="priority_id"
|
data-wire-model="priority_id"
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
||||||
data-dusk="ticket-priority"
|
data-dusk="ticket-priority" dusk="ticket-priority">
|
||||||
dusk="ticket-priority"
|
|
||||||
>
|
|
||||||
<option value="">Select priority</option>
|
<option value="">Select priority</option>
|
||||||
@foreach ($priorities as $priority)
|
@foreach ($priorities as $priority)
|
||||||
<option value="{{ $priority->id }}" @selected((string) $priority_id === (string) $priority->id)>{{ $priority->name }}</option>
|
<option value="{{ $priority->id }}" @selected((string) $priority_id === (string) $priority->id)>{{ $priority->name }}
|
||||||
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -129,16 +108,13 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="category_id" data-helpdesk-select2 data-placeholder="Select option"
|
||||||
id="category_id"
|
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="category_id"
|
data-wire-model="category_id"
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500">
|
||||||
>
|
|
||||||
<option value="">Select category</option>
|
<option value="">Select category</option>
|
||||||
@foreach ($categories as $category)
|
@foreach ($categories as $category)
|
||||||
<option value="{{ $category->id }}" @selected((string) $category_id === (string) $category->id)>{{ $category->name }}</option>
|
<option value="{{ $category->id }}" @selected((string) $category_id === (string) $category->id)>{{ $category->name }}
|
||||||
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -154,16 +130,13 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="project_id" data-helpdesk-select2 data-placeholder="Select option"
|
||||||
id="project_id"
|
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="project_id"
|
data-wire-model="project_id"
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500">
|
||||||
>
|
|
||||||
<option value="">Select project</option>
|
<option value="">Select project</option>
|
||||||
@foreach ($projects as $project)
|
@foreach ($projects as $project)
|
||||||
<option value="{{ $project->id }}" @selected((string) $project_id === (string) $project->id)>{{ $project->title ?? $project->name }}</option>
|
<option value="{{ $project->id }}" @selected((string) $project_id === (string) $project->id)>
|
||||||
|
{{ $project->title ?? $project->name }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -179,16 +152,13 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="team_id" data-helpdesk-select2 data-placeholder="Select option"
|
||||||
id="team_id"
|
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="team_id"
|
data-wire-model="team_id"
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500">
|
||||||
>
|
|
||||||
<option value="">Select team</option>
|
<option value="">Select team</option>
|
||||||
@foreach ($teams as $team)
|
@foreach ($teams as $team)
|
||||||
<option value="{{ $team->id }}" @selected((string) $team_id === (string) $team->id)>{{ $team->name }}</option>
|
<option value="{{ $team->id }}" @selected((string) $team_id === (string) $team->id)>{{ $team->name }}
|
||||||
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -212,24 +182,19 @@
|
|||||||
|
|
||||||
<div class="mt-4 grid gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
|
<div class="mt-4 grid gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
|
||||||
@forelse ($tags as $tag)
|
@forelse ($tags as $tag)
|
||||||
<label
|
<label for="tag_{{ $tag->id }}"
|
||||||
for="tag_{{ $tag->id }}"
|
class="flex cursor-pointer items-center gap-3 rounded-xl border border-zinc-700 bg-zinc-900 px-4 py-3 text-sm font-medium text-zinc-200 transition hover:border-blue-500 hover:bg-zinc-800">
|
||||||
class="flex cursor-pointer items-center gap-3 rounded-xl border border-zinc-700 bg-zinc-900 px-4 py-3 text-sm font-medium text-zinc-200 transition hover:border-blue-500 hover:bg-zinc-800"
|
<input id="tag_{{ $tag->id }}" type="checkbox" wire:model.defer="tag_ids"
|
||||||
>
|
|
||||||
<input
|
|
||||||
id="tag_{{ $tag->id }}"
|
|
||||||
type="checkbox"
|
|
||||||
wire:model.defer="tag_ids"
|
|
||||||
value="{{ $tag->id }}"
|
value="{{ $tag->id }}"
|
||||||
class="h-4 w-4 rounded border-zinc-600 bg-zinc-950 text-blue-600 focus:ring-blue-500"
|
class="h-4 w-4 rounded border-zinc-600 bg-zinc-950 text-blue-600 focus:ring-blue-500">
|
||||||
>
|
|
||||||
|
|
||||||
<span class="truncate">
|
<span class="truncate">
|
||||||
{{ $tag->name }}
|
{{ $tag->name }}
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
@empty
|
@empty
|
||||||
<div class="rounded-xl border border-dashed border-zinc-700 bg-zinc-900 px-4 py-3 text-sm text-zinc-400">
|
<div
|
||||||
|
class="rounded-xl border border-dashed border-zinc-700 bg-zinc-900 px-4 py-3 text-sm text-zinc-400">
|
||||||
No tags are available.
|
No tags are available.
|
||||||
</div>
|
</div>
|
||||||
@endforelse
|
@endforelse
|
||||||
@@ -246,13 +211,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="xl:col-span-2">
|
<div class="xl:col-span-2">
|
||||||
<x-helpdesk::date-picker
|
<x-helpdesk::date-picker id="due_at" model="due_at" label="Due date"
|
||||||
id="due_at"
|
placeholder="Select due date" value="{{ $due_at }}" />
|
||||||
model="due_at"
|
|
||||||
label="Due date"
|
|
||||||
placeholder="Select due date"
|
|
||||||
value="{{ $due_at }}"
|
|
||||||
/>
|
|
||||||
|
|
||||||
@error('due_at')
|
@error('due_at')
|
||||||
<p class="mt-2 text-sm text-red-500">{{ $message }}</p>
|
<p class="mt-2 text-sm text-red-500">{{ $message }}</p>
|
||||||
@@ -264,50 +224,54 @@
|
|||||||
Details <span class="helpdesk-required-star">*</span>
|
Details <span class="helpdesk-required-star">*</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2 overflow-hidden rounded-xl border border-zinc-700 bg-zinc-950 shadow-sm focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/40" wire:ignore>
|
<div class="mt-2 overflow-hidden rounded-xl border border-zinc-700 bg-zinc-950 shadow-sm focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/40"
|
||||||
|
wire:ignore>
|
||||||
<div class="flex flex-wrap items-center gap-1 border-b border-zinc-700 bg-zinc-900 px-3 py-2">
|
<div class="flex flex-wrap items-center gap-1 border-b border-zinc-700 bg-zinc-900 px-3 py-2">
|
||||||
<button type="button" class="helpdesk-editor-button" data-helpdesk-editor-command="bold" aria-label="Bold">
|
<button type="button" class="helpdesk-editor-button" data-helpdesk-editor-command="bold"
|
||||||
|
aria-label="Bold">
|
||||||
<i class="fa-solid fa-bold" aria-hidden="true"></i>
|
<i class="fa-solid fa-bold" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="button" class="helpdesk-editor-button" data-helpdesk-editor-command="italic" aria-label="Italic">
|
<button type="button" class="helpdesk-editor-button"
|
||||||
|
data-helpdesk-editor-command="italic" aria-label="Italic">
|
||||||
<i class="fa-solid fa-italic" aria-hidden="true"></i>
|
<i class="fa-solid fa-italic" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="button" class="helpdesk-editor-button" data-helpdesk-editor-command="underline" aria-label="Underline">
|
<button type="button" class="helpdesk-editor-button"
|
||||||
|
data-helpdesk-editor-command="underline" aria-label="Underline">
|
||||||
<i class="fa-solid fa-underline" aria-hidden="true"></i>
|
<i class="fa-solid fa-underline" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<span class="mx-1 h-6 w-px bg-zinc-700" aria-hidden="true"></span>
|
<span class="mx-1 h-6 w-px bg-zinc-700" aria-hidden="true"></span>
|
||||||
|
|
||||||
<button type="button" class="helpdesk-editor-button" data-helpdesk-editor-command="insertUnorderedList" aria-label="Bullet list">
|
<button type="button" class="helpdesk-editor-button"
|
||||||
|
data-helpdesk-editor-command="insertUnorderedList" aria-label="Bullet list">
|
||||||
<i class="fa-solid fa-list-ul" aria-hidden="true"></i>
|
<i class="fa-solid fa-list-ul" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="button" class="helpdesk-editor-button" data-helpdesk-editor-command="insertOrderedList" aria-label="Numbered list">
|
<button type="button" class="helpdesk-editor-button"
|
||||||
|
data-helpdesk-editor-command="insertOrderedList" aria-label="Numbered list">
|
||||||
<i class="fa-solid fa-list-ol" aria-hidden="true"></i>
|
<i class="fa-solid fa-list-ol" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<span class="mx-1 h-6 w-px bg-zinc-700" aria-hidden="true"></span>
|
<span class="mx-1 h-6 w-px bg-zinc-700" aria-hidden="true"></span>
|
||||||
|
|
||||||
<button type="button" class="helpdesk-editor-button" data-helpdesk-editor-format="pre" aria-label="Code block">
|
<button type="button" class="helpdesk-editor-button" data-helpdesk-editor-format="pre"
|
||||||
|
aria-label="Code block">
|
||||||
<i class="fa-solid fa-code" aria-hidden="true"></i>
|
<i class="fa-solid fa-code" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="button" class="helpdesk-editor-button" data-helpdesk-editor-link aria-label="Insert link">
|
<button type="button" class="helpdesk-editor-button" data-helpdesk-editor-link
|
||||||
|
aria-label="Insert link">
|
||||||
<i class="fa-solid fa-link" aria-hidden="true"></i>
|
<i class="fa-solid fa-link" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div id="body-editor"
|
||||||
id="body-editor"
|
|
||||||
class="min-h-[18rem] w-full px-4 py-3 text-sm leading-6 text-zinc-100 outline-none empty:before:text-zinc-500 empty:before:content-[attr(data-placeholder)]"
|
class="min-h-[18rem] w-full px-4 py-3 text-sm leading-6 text-zinc-100 outline-none empty:before:text-zinc-500 empty:before:content-[attr(data-placeholder)]"
|
||||||
contenteditable="true"
|
contenteditable="true" data-helpdesk-details-editor
|
||||||
data-helpdesk-details-editor
|
|
||||||
data-placeholder="Describe the issue, expected outcome, steps to reproduce and any useful context..."
|
data-placeholder="Describe the issue, expected outcome, steps to reproduce and any useful context..."
|
||||||
data-dusk="ticket-body-editor"
|
data-dusk="ticket-body-editor" dusk="ticket-body-editor">{!! $body ?? '' !!}</div>
|
||||||
dusk="ticket-body-editor"
|
|
||||||
>{!! $body ?? '' !!}</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<textarea id="body" wire:model.defer="body" class="sr-only" tabindex="-1" aria-hidden="true"></textarea>
|
<textarea id="body" wire:model.defer="body" class="sr-only" tabindex="-1" aria-hidden="true"></textarea>
|
||||||
@@ -330,28 +294,17 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label
|
<label for="attachments"
|
||||||
for="attachments"
|
class="inline-flex cursor-pointer items-center justify-center gap-2 rounded-xl bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white shadow-sm transition hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-zinc-950">
|
||||||
class="inline-flex cursor-pointer items-center justify-center gap-2 rounded-xl bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white shadow-sm transition hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-zinc-950"
|
|
||||||
>
|
|
||||||
<i class="fa-solid fa-paperclip" aria-hidden="true"></i>
|
<i class="fa-solid fa-paperclip" aria-hidden="true"></i>
|
||||||
<span>Add attachments</span>
|
<span>Add attachments</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input
|
<input id="attachments" type="file" wire:model="attachments" multiple class="sr-only">
|
||||||
id="attachments"
|
|
||||||
type="file"
|
|
||||||
wire:model="attachments"
|
|
||||||
multiple
|
|
||||||
class="sr-only"
|
|
||||||
>
|
|
||||||
|
|
||||||
<div
|
<div wire:loading.flex wire:target="attachments"
|
||||||
wire:loading.flex
|
class="mt-4 items-center gap-2 rounded-xl border border-blue-500/30 bg-blue-500/10 px-4 py-3 text-sm font-medium text-blue-200">
|
||||||
wire:target="attachments"
|
|
||||||
class="mt-4 items-center gap-2 rounded-xl border border-blue-500/30 bg-blue-500/10 px-4 py-3 text-sm font-medium text-blue-200"
|
|
||||||
>
|
|
||||||
<i class="fa-solid fa-circle-notch fa-spin" aria-hidden="true"></i>
|
<i class="fa-solid fa-circle-notch fa-spin" aria-hidden="true"></i>
|
||||||
Uploading attachments...
|
Uploading attachments...
|
||||||
</div>
|
</div>
|
||||||
@@ -368,25 +321,19 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center justify-end gap-3 border-t border-zinc-700 bg-zinc-900 px-6 py-4">
|
<div class="flex items-center justify-end gap-3 border-t border-zinc-700 bg-zinc-900 px-6 py-4">
|
||||||
<button
|
<button type="button" wire:click="clearForm"
|
||||||
type="button"
|
class="rounded-xl bg-red-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-700">
|
||||||
wire:click="clearForm"
|
|
||||||
class="rounded-xl bg-red-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-700"
|
|
||||||
>
|
|
||||||
Clear
|
Clear
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<a href="{{ route('helpdesk.tickets.index') }}" wire:navigate class="rounded-xl bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">
|
<a href="{{ route('helpdesk.tickets.index') }}" wire:navigate
|
||||||
|
class="rounded-xl bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">
|
||||||
Cancel
|
Cancel
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button
|
<button type="submit"
|
||||||
type="submit"
|
|
||||||
class="inline-flex items-center gap-2 rounded-xl bg-green-600 px-5 py-2 text-sm font-semibold text-white shadow-sm hover:bg-green-700 disabled:cursor-not-allowed disabled:opacity-50"
|
class="inline-flex items-center gap-2 rounded-xl bg-green-600 px-5 py-2 text-sm font-semibold text-white shadow-sm hover:bg-green-700 disabled:cursor-not-allowed disabled:opacity-50"
|
||||||
data-dusk="ticket-create-submit"
|
data-dusk="ticket-create-submit" dusk="ticket-create-submit" wire:loading.attr="disabled">
|
||||||
dusk="ticket-create-submit"
|
|
||||||
wire:loading.attr="disabled"
|
|
||||||
>
|
|
||||||
<i class="fa-regular fa-floppy-disk" aria-hidden="true"></i>
|
<i class="fa-regular fa-floppy-disk" aria-hidden="true"></i>
|
||||||
<span wire:loading.remove>Create Ticket</span>
|
<span wire:loading.remove>Create Ticket</span>
|
||||||
<span wire:loading>Creating...</span>
|
<span wire:loading>Creating...</span>
|
||||||
@@ -425,8 +372,12 @@
|
|||||||
|
|
||||||
const syncBody = function() {
|
const syncBody = function() {
|
||||||
bodyField.value = editor.innerHTML.trim();
|
bodyField.value = editor.innerHTML.trim();
|
||||||
bodyField.dispatchEvent(new Event('input', { bubbles: true }));
|
bodyField.dispatchEvent(new Event('input', {
|
||||||
bodyField.dispatchEvent(new Event('change', { bubbles: true }));
|
bubbles: true
|
||||||
|
}));
|
||||||
|
bodyField.dispatchEvent(new Event('change', {
|
||||||
|
bubbles: true
|
||||||
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
document.querySelectorAll('[data-helpdesk-editor-command]').forEach(function(button) {
|
document.querySelectorAll('[data-helpdesk-editor-command]').forEach(function(button) {
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
@vite([
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||||
'resources/css/app.css',
|
|
||||||
'resources/js/app.js',
|
|
||||||
])
|
|
||||||
@include('helpdesk::partials.page-header', [
|
@include('helpdesk::partials.page-header', [
|
||||||
'eyebrow' => 'Helpdesk',
|
'eyebrow' => 'Helpdesk',
|
||||||
'title' => 'Edit Ticket',
|
'title' => 'Edit Ticket',
|
||||||
'subtitle' => 'Update ownership, assignment, workflow status, product/service, project, team, category, priority and ticket details.',
|
'subtitle' =>
|
||||||
|
'Update ownership, assignment, workflow status, product/service, project, team, category, priority and ticket details.',
|
||||||
])
|
])
|
||||||
|
|
||||||
<form wire:submit.prevent="save" class="space-y-6">
|
<form wire:submit.prevent="save" class="space-y-6">
|
||||||
@@ -19,7 +17,8 @@
|
|||||||
{{ $ticket->reference }} · Ticket controls
|
{{ $ticket->reference }} · Ticket controls
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<span class="inline-flex items-center gap-2 rounded-xl border border-zinc-700 bg-zinc-900 px-3 py-1.5 text-sm font-medium text-zinc-200">
|
<span
|
||||||
|
class="inline-flex items-center gap-2 rounded-xl border border-zinc-700 bg-zinc-900 px-3 py-1.5 text-sm font-medium text-zinc-200">
|
||||||
<i class="fa-regular fa-user text-zinc-400" aria-hidden="true"></i>
|
<i class="fa-regular fa-user text-zinc-400" aria-hidden="true"></i>
|
||||||
Owner:
|
Owner:
|
||||||
<span class="font-semibold text-white">{{ $ticket->owner?->name ?? 'Unknown' }}</span>
|
<span class="font-semibold text-white">{{ $ticket->owner?->name ?? 'Unknown' }}</span>
|
||||||
@@ -32,7 +31,8 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="{{ route('helpdesk.tickets.show', $ticket) }}" wire:navigate class="inline-flex items-center justify-center rounded-xl bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">
|
<a href="{{ route('helpdesk.tickets.show', $ticket) }}" wire:navigate
|
||||||
|
class="inline-flex items-center justify-center rounded-xl bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">
|
||||||
Back to ticket
|
Back to ticket
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -44,15 +44,9 @@
|
|||||||
Subject <span class="helpdesk-required-star">*</span>
|
Subject <span class="helpdesk-required-star">*</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input
|
<input id="subject" type="text" maxlength="180" wire:model.defer="subject"
|
||||||
id="subject"
|
|
||||||
type="text"
|
|
||||||
maxlength="180"
|
|
||||||
wire:model.defer="subject"
|
|
||||||
class="mt-2 block h-14 w-full max-w-4xl rounded-xl border border-zinc-700 bg-zinc-950 px-4 text-base font-medium text-zinc-100 shadow-sm outline-none transition-colors duration-150 placeholder:text-zinc-500 focus:border-blue-500 focus:bg-zinc-950 focus:ring-2 focus:ring-blue-500/40"
|
class="mt-2 block h-14 w-full max-w-4xl rounded-xl border border-zinc-700 bg-zinc-950 px-4 text-base font-medium text-zinc-100 shadow-sm outline-none transition-colors duration-150 placeholder:text-zinc-500 focus:border-blue-500 focus:bg-zinc-950 focus:ring-2 focus:ring-blue-500/40"
|
||||||
data-dusk="ticket-edit-subject"
|
data-dusk="ticket-edit-subject" autocomplete="off" />
|
||||||
autocomplete="off"
|
|
||||||
/>
|
|
||||||
|
|
||||||
@error('subject')
|
@error('subject')
|
||||||
<p class="mt-2 text-sm text-red-500">{{ $message }}</p>
|
<p class="mt-2 text-sm text-red-500">{{ $message }}</p>
|
||||||
@@ -66,16 +60,13 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="company_id" data-helpdesk-select2 data-placeholder="Select option"
|
||||||
id="company_id"
|
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="company_id"
|
data-wire-model="company_id"
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500">
|
||||||
>
|
|
||||||
<option value="">Select company</option>
|
<option value="">Select company</option>
|
||||||
@foreach ($companies as $company)
|
@foreach ($companies as $company)
|
||||||
<option value="{{ $company->id }}" @selected((string) $company_id === (string) $company->id)>{{ $company->name }}</option>
|
<option value="{{ $company->id }}" @selected((string) $company_id === (string) $company->id)>
|
||||||
|
{{ $company->name }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -90,17 +81,14 @@
|
|||||||
<label class="block text-sm font-semibold text-zinc-200" for="board_id">Board</label>
|
<label class="block text-sm font-semibold text-zinc-200" for="board_id">Board</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="board_id" data-helpdesk-select2 data-placeholder="Select option"
|
||||||
id="board_id"
|
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="board_id"
|
data-wire-model="board_id"
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
||||||
data-dusk="ticket-edit-board"
|
data-dusk="ticket-edit-board">
|
||||||
>
|
|
||||||
<option value="">No board</option>
|
<option value="">No board</option>
|
||||||
@foreach ($boards as $board)
|
@foreach ($boards as $board)
|
||||||
<option value="{{ $board->id }}" @selected((string) $board_id === (string) $board->id)>{{ $board->name }}{{ $board->owner ? ' · '.$board->owner->name : '' }}</option>
|
<option value="{{ $board->id }}" @selected((string) $board_id === (string) $board->id)>
|
||||||
|
{{ $board->name }}{{ $board->owner ? ' · ' . $board->owner->name : '' }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -116,17 +104,14 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="status_id" data-helpdesk-select2 data-placeholder="Select option"
|
||||||
id="status_id"
|
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="status_id"
|
data-wire-model="status_id"
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
||||||
data-dusk="ticket-edit-status"
|
data-dusk="ticket-edit-status">
|
||||||
>
|
|
||||||
<option value="">No status</option>
|
<option value="">No status</option>
|
||||||
@foreach ($statuses as $status)
|
@foreach ($statuses as $status)
|
||||||
<option value="{{ $status->id }}" @selected((string) $status_id === (string) $status->id)>{{ $status->name }}</option>
|
<option value="{{ $status->id }}" @selected((string) $status_id === (string) $status->id)>{{ $status->name }}
|
||||||
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -142,17 +127,14 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="priority_id" data-helpdesk-select2 data-placeholder="Select option"
|
||||||
id="priority_id"
|
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="priority_id"
|
data-wire-model="priority_id"
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
||||||
data-dusk="ticket-edit-priority"
|
data-dusk="ticket-edit-priority">
|
||||||
>
|
|
||||||
<option value="">Select priority</option>
|
<option value="">Select priority</option>
|
||||||
@foreach ($priorities as $priority)
|
@foreach ($priorities as $priority)
|
||||||
<option value="{{ $priority->id }}" @selected((string) $priority_id === (string) $priority->id)>{{ $priority->name }}</option>
|
<option value="{{ $priority->id }}" @selected((string) $priority_id === (string) $priority->id)>{{ $priority->name }}
|
||||||
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -166,15 +148,13 @@
|
|||||||
<label class="block text-sm font-semibold text-zinc-200" for="agent_id">Assigned agent</label>
|
<label class="block text-sm font-semibold text-zinc-200" for="agent_id">Assigned agent</label>
|
||||||
|
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<select
|
<select id="agent_id" wire:model.live="agent_id"
|
||||||
id="agent_id"
|
|
||||||
wire:model.live="agent_id"
|
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
||||||
data-dusk="ticket-edit-agent"
|
data-dusk="ticket-edit-agent">
|
||||||
>
|
|
||||||
<option value="">Unassigned</option>
|
<option value="">Unassigned</option>
|
||||||
@forelse ($agents as $agent)
|
@forelse ($agents as $agent)
|
||||||
<option value="{{ $agent->id }}">{{ $agent->name }} · {{ $agent->email }}</option>
|
<option value="{{ $agent->id }}">{{ $agent->name }} · {{ $agent->email }}
|
||||||
|
</option>
|
||||||
@empty
|
@empty
|
||||||
<option value="" disabled>No users available for assignment</option>
|
<option value="" disabled>No users available for assignment</option>
|
||||||
@endforelse
|
@endforelse
|
||||||
@@ -192,16 +172,13 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="category_id" data-helpdesk-select2 data-placeholder="Select option"
|
||||||
id="category_id"
|
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="category_id"
|
data-wire-model="category_id"
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500">
|
||||||
>
|
|
||||||
<option value="">No category</option>
|
<option value="">No category</option>
|
||||||
@foreach ($categories as $category)
|
@foreach ($categories as $category)
|
||||||
<option value="{{ $category->id }}" @selected((string) $category_id === (string) $category->id)>{{ $category->name }}</option>
|
<option value="{{ $category->id }}" @selected((string) $category_id === (string) $category->id)>
|
||||||
|
{{ $category->name }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -217,16 +194,13 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="project_id" data-helpdesk-select2 data-placeholder="Select option"
|
||||||
id="project_id"
|
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="project_id"
|
data-wire-model="project_id"
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500">
|
||||||
>
|
|
||||||
<option value="">No project</option>
|
<option value="">No project</option>
|
||||||
@foreach ($projects as $project)
|
@foreach ($projects as $project)
|
||||||
<option value="{{ $project->id }}" @selected((string) $project_id === (string) $project->id)>{{ $project->title ?? $project->name }}</option>
|
<option value="{{ $project->id }}" @selected((string) $project_id === (string) $project->id)>
|
||||||
|
{{ $project->title ?? $project->name }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -242,16 +216,13 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="mt-2" wire:ignore>
|
<div class="mt-2" wire:ignore>
|
||||||
<select
|
<select id="team_id" data-helpdesk-select2 data-placeholder="Select option"
|
||||||
id="team_id"
|
|
||||||
data-helpdesk-select2
|
|
||||||
data-placeholder="Select option"
|
|
||||||
data-wire-model="team_id"
|
data-wire-model="team_id"
|
||||||
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500"
|
class="block w-full rounded-xl border-zinc-700 bg-zinc-950 text-zinc-100 shadow-sm focus:border-blue-500 focus:ring-blue-500">
|
||||||
>
|
|
||||||
<option value="">No team</option>
|
<option value="">No team</option>
|
||||||
@foreach ($teams as $team)
|
@foreach ($teams as $team)
|
||||||
<option value="{{ $team->id }}" @selected((string) $team_id === (string) $team->id)>{{ $team->name }}</option>
|
<option value="{{ $team->id }}" @selected((string) $team_id === (string) $team->id)>{{ $team->name }}
|
||||||
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -275,24 +246,19 @@
|
|||||||
|
|
||||||
<div class="mt-4 grid gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
|
<div class="mt-4 grid gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
|
||||||
@forelse ($tags as $tag)
|
@forelse ($tags as $tag)
|
||||||
<label
|
<label for="tag_{{ $tag->id }}"
|
||||||
for="tag_{{ $tag->id }}"
|
class="flex cursor-pointer items-center gap-3 rounded-xl border border-zinc-700 bg-zinc-900 px-4 py-3 text-sm font-medium text-zinc-200 transition hover:border-blue-500 hover:bg-zinc-800">
|
||||||
class="flex cursor-pointer items-center gap-3 rounded-xl border border-zinc-700 bg-zinc-900 px-4 py-3 text-sm font-medium text-zinc-200 transition hover:border-blue-500 hover:bg-zinc-800"
|
<input id="tag_{{ $tag->id }}" type="checkbox" wire:model.defer="tag_ids"
|
||||||
>
|
|
||||||
<input
|
|
||||||
id="tag_{{ $tag->id }}"
|
|
||||||
type="checkbox"
|
|
||||||
wire:model.defer="tag_ids"
|
|
||||||
value="{{ $tag->id }}"
|
value="{{ $tag->id }}"
|
||||||
class="h-4 w-4 rounded border-zinc-600 bg-zinc-950 text-blue-600 focus:ring-blue-500"
|
class="h-4 w-4 rounded border-zinc-600 bg-zinc-950 text-blue-600 focus:ring-blue-500">
|
||||||
>
|
|
||||||
|
|
||||||
<span class="truncate">
|
<span class="truncate">
|
||||||
{{ $tag->name }}
|
{{ $tag->name }}
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
@empty
|
@empty
|
||||||
<div class="rounded-xl border border-dashed border-zinc-700 bg-zinc-900 px-4 py-3 text-sm text-zinc-400">
|
<div
|
||||||
|
class="rounded-xl border border-dashed border-zinc-700 bg-zinc-900 px-4 py-3 text-sm text-zinc-400">
|
||||||
No tags are available.
|
No tags are available.
|
||||||
</div>
|
</div>
|
||||||
@endforelse
|
@endforelse
|
||||||
@@ -309,13 +275,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="xl:col-span-2">
|
<div class="xl:col-span-2">
|
||||||
<x-helpdesk::date-picker
|
<x-helpdesk::date-picker id="due_at" model="due_at" label="Due date"
|
||||||
id="due_at"
|
placeholder="Select due date" value="{{ $due_at }}" />
|
||||||
model="due_at"
|
|
||||||
label="Due date"
|
|
||||||
placeholder="Select due date"
|
|
||||||
value="{{ $due_at }}"
|
|
||||||
/>
|
|
||||||
|
|
||||||
@error('due_at')
|
@error('due_at')
|
||||||
<p class="mt-2 text-sm text-red-500">{{ $message }}</p>
|
<p class="mt-2 text-sm text-red-500">{{ $message }}</p>
|
||||||
@@ -323,7 +284,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="lg:col-span-3 xl:col-span-6">
|
<div class="lg:col-span-3 xl:col-span-6">
|
||||||
<x-helpdesk::html-editor dusk="ticket-edit-body-editor" wire:model="body" label="Details *" rows="10" placeholder="Update the ticket details..." />
|
<x-helpdesk::html-editor dusk="ticket-edit-body-editor" wire:model="body" label="Details *"
|
||||||
|
rows="10" placeholder="Update the ticket details..." />
|
||||||
|
|
||||||
@error('body')
|
@error('body')
|
||||||
<p class="mt-2 text-sm text-red-500">{{ $message }}</p>
|
<p class="mt-2 text-sm text-red-500">{{ $message }}</p>
|
||||||
@@ -331,12 +293,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="lg:col-span-3 xl:col-span-6">
|
<div class="lg:col-span-3 xl:col-span-6">
|
||||||
<div class="overflow-hidden rounded-2xl border border-blue-500/30 bg-zinc-950/70 shadow-sm shadow-blue-950/30">
|
<div
|
||||||
|
class="overflow-hidden rounded-2xl border border-blue-500/30 bg-zinc-950/70 shadow-sm shadow-blue-950/30">
|
||||||
<div class="bg-gradient-to-r from-blue-700 via-sky-600 to-emerald-600 px-5 py-4 text-white">
|
<div class="bg-gradient-to-r from-blue-700 via-sky-600 to-emerald-600 px-5 py-4 text-white">
|
||||||
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||||
<div>
|
<div>
|
||||||
<label class="flex items-center gap-2 text-base font-extrabold text-white drop-shadow-sm" for="attachments">
|
<label
|
||||||
<span class="inline-flex h-9 w-9 items-center justify-center rounded-xl bg-white/15 ring-1 ring-white/25">
|
class="flex items-center gap-2 text-base font-extrabold text-white drop-shadow-sm"
|
||||||
|
for="attachments">
|
||||||
|
<span
|
||||||
|
class="inline-flex h-9 w-9 items-center justify-center rounded-xl bg-white/15 ring-1 ring-white/25">
|
||||||
<i class="fa-solid fa-paperclip" aria-hidden="true"></i>
|
<i class="fa-solid fa-paperclip" aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
Attachments
|
Attachments
|
||||||
@@ -347,10 +313,8 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label
|
<label for="attachments"
|
||||||
for="attachments"
|
class="inline-flex cursor-pointer items-center justify-center gap-2 rounded-xl bg-white px-4 py-2.5 text-sm font-bold text-blue-700 shadow-sm transition hover:bg-blue-50 focus:outline-none focus:ring-2 focus:ring-white/80 focus:ring-offset-2 focus:ring-offset-blue-700">
|
||||||
class="inline-flex cursor-pointer items-center justify-center gap-2 rounded-xl bg-white px-4 py-2.5 text-sm font-bold text-blue-700 shadow-sm transition hover:bg-blue-50 focus:outline-none focus:ring-2 focus:ring-white/80 focus:ring-offset-2 focus:ring-offset-blue-700"
|
|
||||||
>
|
|
||||||
<i class="fa-solid fa-plus" aria-hidden="true"></i>
|
<i class="fa-solid fa-plus" aria-hidden="true"></i>
|
||||||
<span>Add attachments</span>
|
<span>Add attachments</span>
|
||||||
</label>
|
</label>
|
||||||
@@ -359,56 +323,49 @@
|
|||||||
|
|
||||||
<div class="p-4">
|
<div class="p-4">
|
||||||
|
|
||||||
<input
|
<input id="attachments" type="file" wire:model="attachments" multiple
|
||||||
id="attachments"
|
class="sr-only">
|
||||||
type="file"
|
|
||||||
wire:model="attachments"
|
|
||||||
multiple
|
|
||||||
class="sr-only"
|
|
||||||
>
|
|
||||||
|
|
||||||
<div
|
<div wire:loading.flex wire:target="attachments"
|
||||||
wire:loading.flex
|
class="mt-4 items-center gap-2 rounded-xl border border-blue-500/30 bg-blue-500/10 px-4 py-3 text-sm font-medium text-blue-200">
|
||||||
wire:target="attachments"
|
|
||||||
class="mt-4 items-center gap-2 rounded-xl border border-blue-500/30 bg-blue-500/10 px-4 py-3 text-sm font-medium text-blue-200"
|
|
||||||
>
|
|
||||||
<i class="fa-solid fa-circle-notch fa-spin" aria-hidden="true"></i>
|
<i class="fa-solid fa-circle-notch fa-spin" aria-hidden="true"></i>
|
||||||
Uploading attachments...
|
Uploading attachments...
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($ticket->attachments->isNotEmpty())
|
@if ($ticket->attachments->isNotEmpty())
|
||||||
<div class="mt-4 space-y-3">
|
<div class="mt-4 space-y-3">
|
||||||
<div class="flex flex-wrap items-center justify-between gap-3 rounded-xl border border-emerald-500/30 bg-emerald-500/10 px-4 py-3">
|
<div
|
||||||
<h3 class="inline-flex items-center gap-2 text-sm font-extrabold text-emerald-200">
|
class="flex flex-wrap items-center justify-between gap-3 rounded-xl border border-emerald-500/30 bg-emerald-500/10 px-4 py-3">
|
||||||
<span class="inline-flex h-7 w-7 items-center justify-center rounded-lg bg-emerald-500 text-white shadow-sm">
|
<h3
|
||||||
|
class="inline-flex items-center gap-2 text-sm font-extrabold text-emerald-200">
|
||||||
|
<span
|
||||||
|
class="inline-flex h-7 w-7 items-center justify-center rounded-lg bg-emerald-500 text-white shadow-sm">
|
||||||
<i class="fa-solid fa-folder-open" aria-hidden="true"></i>
|
<i class="fa-solid fa-folder-open" aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
Existing attachments
|
Existing attachments
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<span class="inline-flex items-center gap-2 rounded-full bg-emerald-100 px-3 py-1 text-xs font-extrabold text-emerald-800 shadow-sm ring-1 ring-emerald-300/70">
|
<span
|
||||||
|
class="inline-flex items-center gap-2 rounded-full bg-emerald-100 px-3 py-1 text-xs font-extrabold text-emerald-800 shadow-sm ring-1 ring-emerald-300/70">
|
||||||
<span class="inline-flex h-2 w-2 rounded-full bg-emerald-500"></span>
|
<span class="inline-flex h-2 w-2 rounded-full bg-emerald-500"></span>
|
||||||
{{ $ticket->attachments->count() }} file(s)
|
{{ $ticket->attachments->count() }} file(s)
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@foreach ($ticket->attachments as $attachment)
|
@foreach ($ticket->attachments as $attachment)
|
||||||
<div class="flex flex-col gap-3 rounded-xl border border-zinc-700 bg-zinc-900 p-3 text-sm sm:flex-row sm:items-center sm:justify-between">
|
<div
|
||||||
<a
|
class="flex flex-col gap-3 rounded-xl border border-zinc-700 bg-zinc-900 p-3 text-sm sm:flex-row sm:items-center sm:justify-between">
|
||||||
href="{{ route('helpdesk.attachments.download', $attachment->id) }}"
|
<a href="{{ route('helpdesk.attachments.download', $attachment->id) }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="min-w-0 font-medium text-blue-300 hover:text-blue-200"
|
class="min-w-0 font-medium text-blue-300 hover:text-blue-200">
|
||||||
>
|
|
||||||
<i class="fa-regular fa-file mr-2" aria-hidden="true"></i>
|
<i class="fa-regular fa-file mr-2" aria-hidden="true"></i>
|
||||||
{{ $attachment->original_name ?? $attachment->original_filename ?? $attachment->filename ?? $attachment->file_name ?? basename($attachment->path ?? $attachment->file_path ?? '') }}
|
{{ $attachment->original_name ?? ($attachment->original_filename ?? ($attachment->filename ?? ($attachment->file_name ?? basename($attachment->path ?? ($attachment->file_path ?? ''))))) }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button
|
<button type="button"
|
||||||
type="button"
|
|
||||||
wire:click="removeAttachment({{ $attachment->id }})"
|
wire:click="removeAttachment({{ $attachment->id }})"
|
||||||
wire:confirm="Remove this attachment?"
|
wire:confirm="Remove this attachment?"
|
||||||
class="inline-flex items-center justify-center rounded-lg bg-red-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-red-700"
|
class="inline-flex items-center justify-center rounded-lg bg-red-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-red-700">
|
||||||
>
|
|
||||||
Remove
|
Remove
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -417,8 +374,10 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($attachments !== [])
|
@if ($attachments !== [])
|
||||||
<div class="mt-4 rounded-xl border border-blue-500/30 bg-blue-500/10 px-4 py-3 text-sm text-blue-100">
|
<div
|
||||||
{{ count($attachments) }} new attachment(s) selected. Save the ticket to attach them.
|
class="mt-4 rounded-xl border border-blue-500/30 bg-blue-500/10 px-4 py-3 text-sm text-blue-100">
|
||||||
|
{{ count($attachments) }} new attachment(s) selected. Save the ticket to attach
|
||||||
|
them.
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@@ -435,24 +394,19 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center justify-end gap-3 border-t border-zinc-700 bg-zinc-900 px-6 py-4">
|
<div class="flex items-center justify-end gap-3 border-t border-zinc-700 bg-zinc-900 px-6 py-4">
|
||||||
<button
|
<button type="button" wire:click="clearForm"
|
||||||
type="button"
|
class="rounded-xl bg-red-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-700">
|
||||||
wire:click="clearForm"
|
|
||||||
class="rounded-xl bg-red-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-700"
|
|
||||||
>
|
|
||||||
Clear
|
Clear
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<a href="{{ route('helpdesk.tickets.show', $ticket) }}" wire:navigate class="rounded-xl bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">
|
<a href="{{ route('helpdesk.tickets.show', $ticket) }}" wire:navigate
|
||||||
|
class="rounded-xl bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">
|
||||||
Cancel
|
Cancel
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button
|
<button type="submit"
|
||||||
type="submit"
|
|
||||||
class="inline-flex items-center gap-2 rounded-xl bg-green-600 px-5 py-2 text-sm font-semibold text-white shadow-sm hover:bg-green-700 disabled:cursor-not-allowed disabled:opacity-50"
|
class="inline-flex items-center gap-2 rounded-xl bg-green-600 px-5 py-2 text-sm font-semibold text-white shadow-sm hover:bg-green-700 disabled:cursor-not-allowed disabled:opacity-50"
|
||||||
data-dusk="ticket-edit-submit"
|
data-dusk="ticket-edit-submit" wire:loading.attr="disabled">
|
||||||
wire:loading.attr="disabled"
|
|
||||||
>
|
|
||||||
<i class="fa-regular fa-floppy-disk" aria-hidden="true"></i>
|
<i class="fa-regular fa-floppy-disk" aria-hidden="true"></i>
|
||||||
<span wire:loading.remove>Save Ticket</span>
|
<span wire:loading.remove>Save Ticket</span>
|
||||||
<span wire:loading>Saving...</span>
|
<span wire:loading>Saving...</span>
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
<div class="hd-helpdesk-surface space-y-6" dusk="helpdesk-ticket-index">
|
<div class="hd-helpdesk-surface space-y-6" dusk="helpdesk-ticket-index">
|
||||||
|
<div
|
||||||
<div class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
||||||
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">Ticket management</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.28em] text-blue-200">Ticket management</p>
|
||||||
<h1 class="mt-2 text-3xl font-semibold tracking-tight">Active tickets</h1>
|
<h1 class="mt-2 text-3xl font-semibold tracking-tight">Active tickets</h1>
|
||||||
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">Search, triage and manage support requests across companies, projects, teams, priorities and statuses.</p>
|
<p class="mt-2 max-w-3xl text-sm text-blue-100/90">Search, triage and manage support requests across
|
||||||
|
companies, projects, teams, priorities and statuses.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
<a href="{{ route('helpdesk.index') }}" wire:navigate class="hd-btn hd-btn-blue">
|
<a href="{{ route('helpdesk.index') }}" wire:navigate class="hd-btn hd-btn-blue">
|
||||||
@@ -24,7 +25,8 @@
|
|||||||
|
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div class="rounded-2xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="grid gap-4 md:grid-cols-4">
|
<div class="grid gap-4 md:grid-cols-4">
|
||||||
<flux:input wire:model.live.debounce.350ms="search" icon="magnifying-glass" placeholder="Search reference, subject or body" />
|
<flux:input wire:model.live.debounce.350ms="search" icon="magnifying-glass"
|
||||||
|
placeholder="Search reference, subject or body" />
|
||||||
|
|
||||||
<flux:select wire:model.live="scope">
|
<flux:select wire:model.live="scope">
|
||||||
<option value="open">Open tickets</option>
|
<option value="open">Open tickets</option>
|
||||||
@@ -48,14 +50,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
<div wire:loading.flex class="items-center gap-2 border-b border-zinc-200 bg-blue-50 px-4 py-3 text-sm text-blue-800 dark:border-zinc-700 dark:bg-blue-950 dark:text-blue-200">
|
class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
|
<div wire:loading.flex
|
||||||
|
class="items-center gap-2 border-b border-zinc-200 bg-blue-50 px-4 py-3 text-sm text-blue-800 dark:border-zinc-700 dark:bg-blue-950 dark:text-blue-200">
|
||||||
<flux:icon.arrow-path class="size-4 animate-spin" /> Refreshing tickets...
|
<flux:icon.arrow-path class="size-4 animate-spin" /> Refreshing tickets...
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="overflow-x-auto">
|
<div class="overflow-x-auto">
|
||||||
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-700">
|
||||||
<thead class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
<thead
|
||||||
|
class="bg-zinc-50 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="px-4 py-3">Reference</th>
|
<th class="px-4 py-3">Reference</th>
|
||||||
<th class="px-4 py-3">Subject</th>
|
<th class="px-4 py-3">Subject</th>
|
||||||
@@ -71,43 +76,59 @@
|
|||||||
@forelse ($tickets as $ticket)
|
@forelse ($tickets as $ticket)
|
||||||
<tr class="hover:bg-zinc-50 dark:hover:bg-zinc-800/70">
|
<tr class="hover:bg-zinc-50 dark:hover:bg-zinc-800/70">
|
||||||
<td class="whitespace-nowrap px-4 py-3 font-mono text-xs">
|
<td class="whitespace-nowrap px-4 py-3 font-mono text-xs">
|
||||||
<a href="{{ route('helpdesk.tickets.show', $ticket) }}" wire:navigate class="font-semibold text-blue-700 hover:underline dark:text-blue-300">
|
<a href="{{ route('helpdesk.tickets.show', $ticket) }}" wire:navigate
|
||||||
|
class="font-semibold text-blue-700 hover:underline dark:text-blue-300">
|
||||||
{{ $ticket->reference }}
|
{{ $ticket->reference }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-3">
|
<td class="px-4 py-3">
|
||||||
<div class="font-medium text-zinc-900 dark:text-zinc-100">{{ $ticket->subject }}</div>
|
<div class="font-medium text-zinc-900 dark:text-zinc-100">{{ $ticket->subject }}</div>
|
||||||
<div class="text-xs text-zinc-500">{{ $ticket->category?->name ?? 'No category' }} @if($ticket->project) · {{ $ticket->project->title }} @endif @if($ticket->team) · {{ $ticket->team->name }} @endif</div>
|
<div class="text-xs text-zinc-500">{{ $ticket->category?->name ?? 'No category' }}
|
||||||
|
@if ($ticket->project)
|
||||||
|
· {{ $ticket->project->title }}
|
||||||
|
@endif @if ($ticket->team)
|
||||||
|
· {{ $ticket->team->name }}
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-3"><flux:badge color="{{ $ticket->status->color }}">{{ $ticket->status->name }}</flux:badge></td>
|
<td class="px-4 py-3">
|
||||||
<td class="px-4 py-3"><flux:badge color="{{ $ticket->priority->color }}">{{ $ticket->priority->name }}</flux:badge></td>
|
<flux:badge color="{{ $ticket->status->color }}">{{ $ticket->status->name }}
|
||||||
<td class="px-4 py-3 text-zinc-600 dark:text-zinc-300">{{ $ticket->agent?->name ?? 'Unassigned' }}</td>
|
</flux:badge>
|
||||||
|
</td>
|
||||||
|
<td class="px-4 py-3">
|
||||||
|
<flux:badge color="{{ $ticket->priority->color }}">{{ $ticket->priority->name }}
|
||||||
|
</flux:badge>
|
||||||
|
</td>
|
||||||
|
<td class="px-4 py-3 text-zinc-600 dark:text-zinc-300">
|
||||||
|
{{ $ticket->agent?->name ?? 'Unassigned' }}</td>
|
||||||
<td class="whitespace-nowrap px-4 py-3 text-center">
|
<td class="whitespace-nowrap px-4 py-3 text-center">
|
||||||
@if (($ticket->attachments_count ?? 0) > 0)
|
@if (($ticket->attachments_count ?? 0) > 0)
|
||||||
<span class="inline-flex items-center justify-center gap-1 rounded-full border border-blue-200 bg-blue-50 px-2.5 py-1 text-xs font-black text-blue-700 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-200" title="{{ $ticket->attachments_count }} attachment{{ $ticket->attachments_count === 1 ? '' : 's' }}">
|
<span
|
||||||
|
class="inline-flex items-center justify-center gap-1 rounded-full border border-blue-200 bg-blue-50 px-2.5 py-1 text-xs font-black text-blue-700 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-200"
|
||||||
|
title="{{ $ticket->attachments_count }} attachment{{ $ticket->attachments_count === 1 ? '' : 's' }}">
|
||||||
<i class="fa-solid fa-paperclip" aria-hidden="true"></i>
|
<i class="fa-solid fa-paperclip" aria-hidden="true"></i>
|
||||||
<span>{{ $ticket->attachments_count }}</span>
|
<span>{{ $ticket->attachments_count }}</span>
|
||||||
<span class="sr-only">attachment{{ $ticket->attachments_count === 1 ? '' : 's' }}</span>
|
<span
|
||||||
|
class="sr-only">attachment{{ $ticket->attachments_count === 1 ? '' : 's' }}</span>
|
||||||
</span>
|
</span>
|
||||||
@else
|
@else
|
||||||
<span class="inline-flex items-center justify-center rounded-full border border-zinc-200 bg-zinc-50 px-2.5 py-1 text-xs font-bold text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-500" title="No attachments">
|
<span
|
||||||
|
class="inline-flex items-center justify-center rounded-full border border-zinc-200 bg-zinc-50 px-2.5 py-1 text-xs font-bold text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-500"
|
||||||
|
title="No attachments">
|
||||||
<i class="fa-regular fa-circle" aria-hidden="true"></i>
|
<i class="fa-regular fa-circle" aria-hidden="true"></i>
|
||||||
<span class="sr-only">No attachments</span>
|
<span class="sr-only">No attachments</span>
|
||||||
</span>
|
</span>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td class="whitespace-nowrap px-4 py-3 text-zinc-500">{{ $ticket->last_activity_at?->diffForHumans() ?? $ticket->created_at->diffForHumans() }}</td>
|
<td class="whitespace-nowrap px-4 py-3 text-zinc-500">
|
||||||
|
{{ $ticket->last_activity_at?->diffForHumans() ?? $ticket->created_at->diffForHumans() }}
|
||||||
|
</td>
|
||||||
<td class="whitespace-nowrap px-4 py-3 text-right">
|
<td class="whitespace-nowrap px-4 py-3 text-right">
|
||||||
@can('delete', $ticket)
|
@can('delete', $ticket)
|
||||||
<button
|
<button type="button" wire:click="askToDeleteTicket({{ $ticket->id }})"
|
||||||
type="button"
|
wire:loading.attr="disabled" wire:target="askToDeleteTicket({{ $ticket->id }})"
|
||||||
wire:click="askToDeleteTicket({{ $ticket->id }})"
|
|
||||||
wire:loading.attr="disabled"
|
|
||||||
wire:target="askToDeleteTicket({{ $ticket->id }})"
|
|
||||||
class="hd-btn hd-btn-sm hd-btn-red disabled:cursor-not-allowed disabled:opacity-60"
|
class="hd-btn hd-btn-sm hd-btn-red disabled:cursor-not-allowed disabled:opacity-60"
|
||||||
title="Delete {{ $ticket->reference }}"
|
title="Delete {{ $ticket->reference }}" dusk="delete-ticket-{{ $ticket->id }}">
|
||||||
dusk="delete-ticket-{{ $ticket->id }}"
|
|
||||||
>
|
|
||||||
<i class="fa-solid fa-trash" aria-hidden="true"></i>
|
<i class="fa-solid fa-trash" aria-hidden="true"></i>
|
||||||
<span>Delete</span>
|
<span>Delete</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -116,7 +137,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="8" class="px-4 py-12 text-center text-zinc-500">No tickets matched your filters.</td>
|
<td colspan="8" class="px-4 py-12 text-center text-zinc-500">No tickets matched your
|
||||||
|
filters.</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -129,18 +151,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($deleteModalOpen)
|
@if ($deleteModalOpen)
|
||||||
<div
|
<div class="fixed inset-0 z-[9998] flex items-center justify-center bg-black/75 px-4 py-6 backdrop-blur-sm"
|
||||||
class="fixed inset-0 z-[9998] flex items-center justify-center bg-black/75 px-4 py-6 backdrop-blur-sm"
|
role="dialog" aria-modal="true" aria-labelledby="delete-ticket-modal-title"
|
||||||
role="dialog"
|
|
||||||
aria-modal="true"
|
|
||||||
aria-labelledby="delete-ticket-modal-title"
|
|
||||||
wire:key="ticket-delete-modal-{{ $pendingDeleteTicketId ?? 'none' }}"
|
wire:key="ticket-delete-modal-{{ $pendingDeleteTicketId ?? 'none' }}"
|
||||||
dusk="delete-ticket-confirmation-modal"
|
dusk="delete-ticket-confirmation-modal">
|
||||||
>
|
<div
|
||||||
<div class="w-full max-w-lg overflow-hidden rounded-3xl border border-red-500/30 bg-zinc-950 text-zinc-100 shadow-2xl">
|
class="w-full max-w-lg overflow-hidden rounded-3xl border border-red-500/30 bg-zinc-950 text-zinc-100 shadow-2xl">
|
||||||
<div class="border-b border-red-500/20 bg-red-950/40 px-6 py-5">
|
<div class="border-b border-red-500/20 bg-red-950/40 px-6 py-5">
|
||||||
<div class="flex items-start gap-4">
|
<div class="flex items-start gap-4">
|
||||||
<span class="grid h-12 w-12 shrink-0 place-items-center rounded-2xl bg-red-600 text-white shadow-lg shadow-red-950/40">
|
<span
|
||||||
|
class="grid h-12 w-12 shrink-0 place-items-center rounded-2xl bg-red-600 text-white shadow-lg shadow-red-950/40">
|
||||||
<i class="fa-solid fa-triangle-exclamation" aria-hidden="true"></i>
|
<i class="fa-solid fa-triangle-exclamation" aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@@ -150,7 +170,9 @@
|
|||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<p class="mt-1 text-sm leading-6 text-red-100/90">
|
<p class="mt-1 text-sm leading-6 text-red-100/90">
|
||||||
This will delete <span class="font-mono font-bold">{{ $pendingDeleteTicketReference }}</span>. This action cannot be undone.
|
This will delete <span
|
||||||
|
class="font-mono font-bold">{{ $pendingDeleteTicketReference }}</span>. This
|
||||||
|
action cannot be undone.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -169,25 +191,18 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-col-reverse gap-3 border-t border-zinc-800 bg-zinc-900/80 px-6 py-4 sm:flex-row sm:justify-end">
|
<div
|
||||||
<button
|
class="flex flex-col-reverse gap-3 border-t border-zinc-800 bg-zinc-900/80 px-6 py-4 sm:flex-row sm:justify-end">
|
||||||
type="button"
|
<button type="button" wire:click="cancelTicketDelete" class="hd-btn hd-btn-sm hd-btn-blue"
|
||||||
wire:click="cancelTicketDelete"
|
dusk="cancel-delete-ticket">
|
||||||
class="hd-btn hd-btn-sm hd-btn-blue"
|
|
||||||
dusk="cancel-delete-ticket"
|
|
||||||
>
|
|
||||||
<i class="fa-solid fa-xmark" aria-hidden="true"></i>
|
<i class="fa-solid fa-xmark" aria-hidden="true"></i>
|
||||||
<span>Cancel</span>
|
<span>Cancel</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button type="button" wire:click="confirmTicketDelete" wire:loading.attr="disabled"
|
||||||
type="button"
|
|
||||||
wire:click="confirmTicketDelete"
|
|
||||||
wire:loading.attr="disabled"
|
|
||||||
wire:target="confirmTicketDelete"
|
wire:target="confirmTicketDelete"
|
||||||
class="hd-btn hd-btn-sm hd-btn-red disabled:cursor-not-allowed disabled:opacity-60"
|
class="hd-btn hd-btn-sm hd-btn-red disabled:cursor-not-allowed disabled:opacity-60"
|
||||||
dusk="confirm-delete-ticket"
|
dusk="confirm-delete-ticket">
|
||||||
>
|
|
||||||
<i class="fa-solid fa-trash" aria-hidden="true"></i>
|
<i class="fa-solid fa-trash" aria-hidden="true"></i>
|
||||||
<span wire:loading.remove wire:target="confirmTicketDelete">Delete ticket</span>
|
<span wire:loading.remove wire:target="confirmTicketDelete">Delete ticket</span>
|
||||||
<span wire:loading wire:target="confirmTicketDelete">Deleting...</span>
|
<span wire:loading wire:target="confirmTicketDelete">Deleting...</span>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -4,14 +4,24 @@
|
|||||||
@foreach ($comments as $comment)
|
@foreach ($comments as $comment)
|
||||||
@php
|
@php
|
||||||
$commentUser = $comment->relationLoaded('user') ? $comment->getRelation('user') : null;
|
$commentUser = $comment->relationLoaded('user') ? $comment->getRelation('user') : null;
|
||||||
$commentAttachments = $comment->relationLoaded('attachments') ? $comment->getRelation('attachments') : collect();
|
$commentAttachments = $comment->relationLoaded('attachments')
|
||||||
|
? $comment->getRelation('attachments')
|
||||||
|
: collect();
|
||||||
$commentReplies = $comment->relationLoaded('replies') ? $comment->getRelation('replies') : collect();
|
$commentReplies = $comment->relationLoaded('replies') ? $comment->getRelation('replies') : collect();
|
||||||
$replyFormId = 'helpdesk-reply-form-' . $comment->id;
|
$replyFormId = 'helpdesk-reply-form-' . $comment->id;
|
||||||
$currentTicket = $ticket ?? $comment->ticket ?? null;
|
$currentTicket = $ticket ?? ($comment->ticket ?? null);
|
||||||
$replyCount = $commentReplies->count();
|
$replyCount = $commentReplies->count();
|
||||||
$isInternal = (bool) $comment->is_internal;
|
$isInternal = (bool) $comment->is_internal;
|
||||||
$borderClass = $isInternal ? 'border-purple-400/70 dark:border-purple-600/70' : 'border-zinc-200 dark:border-zinc-700';
|
$borderClass = $isInternal
|
||||||
$railClass = $isInternal ? 'bg-purple-500' : ((int) $level % 3 === 0 ? 'bg-red-500' : (((int) $level % 3 === 1) ? 'bg-blue-500' : 'bg-emerald-500'));
|
? 'border-purple-400/70 dark:border-purple-600/70'
|
||||||
|
: 'border-zinc-200 dark:border-zinc-700';
|
||||||
|
$railClass = $isInternal
|
||||||
|
? 'bg-purple-500'
|
||||||
|
: ((int) $level % 3 === 0
|
||||||
|
? 'bg-red-500'
|
||||||
|
: ((int) $level % 3 === 1
|
||||||
|
? 'bg-blue-500'
|
||||||
|
: 'bg-emerald-500'));
|
||||||
$commentSubject = trim((string) ($comment->subject ?? ''));
|
$commentSubject = trim((string) ($comment->subject ?? ''));
|
||||||
|
|
||||||
if ($commentSubject === '') {
|
if ($commentSubject === '') {
|
||||||
@@ -24,7 +34,11 @@
|
|||||||
}
|
}
|
||||||
$renderedBody = html_entity_decode((string) $comment->body, ENT_QUOTES | ENT_HTML5, 'UTF-8');
|
$renderedBody = html_entity_decode((string) $comment->body, ENT_QUOTES | ENT_HTML5, 'UTF-8');
|
||||||
|
|
||||||
while (str_contains($renderedBody, '<') || str_contains($renderedBody, '>') || str_contains($renderedBody, '&lt;')) {
|
while (
|
||||||
|
str_contains($renderedBody, '<') ||
|
||||||
|
str_contains($renderedBody, '>') ||
|
||||||
|
str_contains($renderedBody, '&lt;')
|
||||||
|
) {
|
||||||
$decodedBody = html_entity_decode($renderedBody, ENT_QUOTES | ENT_HTML5, 'UTF-8');
|
$decodedBody = html_entity_decode($renderedBody, ENT_QUOTES | ENT_HTML5, 'UTF-8');
|
||||||
|
|
||||||
if ($decodedBody === $renderedBody) {
|
if ($decodedBody === $renderedBody) {
|
||||||
@@ -43,10 +57,14 @@
|
|||||||
'{{ ticket . category }}' => (string) e((string) ($currentTicket->category?->name ?? '')),
|
'{{ ticket . category }}' => (string) e((string) ($currentTicket->category?->name ?? '')),
|
||||||
'{{ ticket . project }}' => (string) e((string) ($currentTicket->project?->title ?? '')),
|
'{{ ticket . project }}' => (string) e((string) ($currentTicket->project?->title ?? '')),
|
||||||
'{{ ticket . team }}' => (string) e((string) ($currentTicket->team?->name ?? '')),
|
'{{ ticket . team }}' => (string) e((string) ($currentTicket->team?->name ?? '')),
|
||||||
'{{ requester.name }}' => (string) e((string) ($currentTicket->owner?->name ?? $currentTicket->user?->name ?? '')),
|
'{{ requester . name }}' => (string) e(
|
||||||
|
(string) ($currentTicket->owner?->name ?? ($currentTicket->user?->name ?? '')),
|
||||||
|
),
|
||||||
'{{ agent . name }}' => (string) e((string) ($currentTicket->agent?->name ?? '')),
|
'{{ agent . name }}' => (string) e((string) ($currentTicket->agent?->name ?? '')),
|
||||||
'{{ actor . name }}' => (string) e((string) ($commentUser?->name ?? '')),
|
'{{ actor . name }}' => (string) e((string) ($commentUser?->name ?? '')),
|
||||||
'{{ ticket.url }}' => (string) e(route('helpdesk.tickets.show', ['ticket' => $currentTicket->getKey()])),
|
'{{ ticket . url }}' => (string) e(
|
||||||
|
route('helpdesk.tickets.show', ['ticket' => $currentTicket->getKey()]),
|
||||||
|
),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,34 +72,50 @@
|
|||||||
$renderedBody = preg_replace('/<\s*(script|style)[^>]*>.*?<\s*\/\s*\1\s*>/is', '', $renderedBody) ?: '';
|
$renderedBody = preg_replace('/<\s*(script|style)[^>]*>.*?<\s*\/\s*\1\s*>/is', '', $renderedBody) ?: '';
|
||||||
$renderedBody = preg_replace('/\s+on[a-z]+\s*=\s*("[^"]*"|\'[^\']*\'|[^\s>]+)/i', '', $renderedBody) ?: '';
|
$renderedBody = preg_replace('/\s+on[a-z]+\s*=\s*("[^"]*"|\'[^\']*\'|[^\s>]+)/i', '', $renderedBody) ?: '';
|
||||||
$renderedBody = preg_replace('/javascript\s*:/i', '', $renderedBody) ?: '';
|
$renderedBody = preg_replace('/javascript\s*:/i', '', $renderedBody) ?: '';
|
||||||
$renderedBody = strip_tags($renderedBody, '<p><br><strong><b><em><i><u><ul><ol><li><blockquote><pre><code><a>');
|
$renderedBody = strip_tags(
|
||||||
|
$renderedBody,
|
||||||
|
'<p><br><strong><b><em><i><u><ul><ol><li><blockquote><pre><code><a>',
|
||||||
|
);
|
||||||
$renderedBody = $containsHtml ? $renderedBody : nl2br(e($renderedBody));
|
$renderedBody = $containsHtml ? $renderedBody : nl2br(e($renderedBody));
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if (!$isInternal || $canSeeInternalNotes)
|
@if (!$isInternal || $canSeeInternalNotes)
|
||||||
<details class="group rounded-2xl border {{ $borderClass }} bg-white shadow-sm transition dark:bg-zinc-900" data-helpdesk-comment-card data-helpdesk-comment-text="{{ e(Str::lower($commentSubject.' '.strip_tags((string) $comment->body).' '.($comment->body_text ?? '').' '.($commentUser?->name ?? '').' '.($comment->unid ?? '').' '.($comment->guid ?? ''))) }}" style="margin-left: {{ min((int) $level, 4) * 1.25 }}rem">
|
<details class="group rounded-2xl border {{ $borderClass }} bg-white shadow-sm transition dark:bg-zinc-900"
|
||||||
|
data-helpdesk-comment-card
|
||||||
|
data-helpdesk-comment-text="{{ e(Str::lower($commentSubject . ' ' . strip_tags((string) $comment->body) . ' ' . ($comment->body_text ?? '') . ' ' . ($commentUser?->name ?? '') . ' ' . ($comment->unid ?? '') . ' ' . ($comment->guid ?? ''))) }}"
|
||||||
|
style="margin-left: {{ min((int) $level, 4) * 1.25 }}rem">
|
||||||
<summary class="flex cursor-pointer list-none items-start gap-3 rounded-2xl p-4 marker:hidden">
|
<summary class="flex cursor-pointer list-none items-start gap-3 rounded-2xl p-4 marker:hidden">
|
||||||
<span class="mt-1 inline-flex h-12 w-2 shrink-0 rounded-full {{ $railClass }}" aria-hidden="true"></span>
|
<span class="mt-1 inline-flex h-12 w-2 shrink-0 rounded-full {{ $railClass }}"
|
||||||
|
aria-hidden="true"></span>
|
||||||
|
|
||||||
<div class="min-w-0 flex-1">
|
<div class="min-w-0 flex-1">
|
||||||
<div class="flex flex-wrap items-center gap-2">
|
<div class="flex flex-wrap items-center gap-2">
|
||||||
<span class="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-zinc-100 text-zinc-700 ring-1 ring-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:ring-zinc-700">
|
<span
|
||||||
<i class="fa-solid {{ $isInternal ? 'fa-note-sticky' : 'fa-envelope' }}" aria-hidden="true"></i>
|
class="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-zinc-100 text-zinc-700 ring-1 ring-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:ring-zinc-700">
|
||||||
|
<i class="fa-solid {{ $isInternal ? 'fa-note-sticky' : 'fa-envelope' }}"
|
||||||
|
aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
<div class="min-w-0 flex-1">
|
<div class="min-w-0 flex-1">
|
||||||
<div class="flex flex-wrap items-center gap-2">
|
<div class="flex flex-wrap items-center gap-2">
|
||||||
<span class="truncate text-base font-extrabold text-zinc-900 dark:text-zinc-100">{{ $commentSubject }}</span>
|
<span
|
||||||
<span class="rounded-full bg-zinc-100 px-2.5 py-1 text-[11px] font-extrabold text-zinc-700 dark:bg-zinc-800 dark:text-zinc-100">{{ $replyCount }} {{ $replyCount === 1 ? 'reply' : 'replies' }}</span>
|
class="truncate text-base font-extrabold text-zinc-900 dark:text-zinc-100">{{ $commentSubject }}</span>
|
||||||
|
<span
|
||||||
|
class="rounded-full bg-zinc-100 px-2.5 py-1 text-[11px] font-extrabold text-zinc-700 dark:bg-zinc-800 dark:text-zinc-100">{{ $replyCount }}
|
||||||
|
{{ $replyCount === 1 ? 'reply' : 'replies' }}</span>
|
||||||
@if ($commentAttachments->isNotEmpty())
|
@if ($commentAttachments->isNotEmpty())
|
||||||
<span class="rounded-full bg-emerald-100 px-2.5 py-1 text-[11px] font-extrabold text-emerald-800 dark:bg-emerald-950 dark:text-emerald-100">
|
<span
|
||||||
<i class="fa-solid fa-paperclip mr-1" aria-hidden="true"></i>{{ $commentAttachments->count() }}
|
class="rounded-full bg-emerald-100 px-2.5 py-1 text-[11px] font-extrabold text-emerald-800 dark:bg-emerald-950 dark:text-emerald-100">
|
||||||
|
<i class="fa-solid fa-paperclip mr-1"
|
||||||
|
aria-hidden="true"></i>{{ $commentAttachments->count() }}
|
||||||
</span>
|
</span>
|
||||||
@endif
|
@endif
|
||||||
@if ($isInternal)
|
@if ($isInternal)
|
||||||
<span class="rounded-full bg-red-600 px-2.5 py-1 text-[11px] font-extrabold uppercase tracking-wide text-white">Internal</span>
|
<span
|
||||||
|
class="rounded-full bg-red-600 px-2.5 py-1 text-[11px] font-extrabold uppercase tracking-wide text-white">Internal</span>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-1 flex flex-wrap items-center gap-2 text-xs font-semibold text-zinc-500 dark:text-zinc-400">
|
<div
|
||||||
|
class="mt-1 flex flex-wrap items-center gap-2 text-xs font-semibold text-zinc-500 dark:text-zinc-400">
|
||||||
<span>{{ $commentUser?->name ?? 'Unknown user' }}</span>
|
<span>{{ $commentUser?->name ?? 'Unknown user' }}</span>
|
||||||
<span aria-hidden="true">•</span>
|
<span aria-hidden="true">•</span>
|
||||||
<span>{{ $comment->created_at?->format('d M Y H:i') }}</span>
|
<span>{{ $comment->created_at?->format('d M Y H:i') }}</span>
|
||||||
@@ -90,7 +124,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="mt-1 inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-zinc-100 text-zinc-600 transition group-open:rotate-90 dark:bg-zinc-800 dark:text-zinc-200">
|
<span
|
||||||
|
class="mt-1 inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-zinc-100 text-zinc-600 transition group-open:rotate-90 dark:bg-zinc-800 dark:text-zinc-200">
|
||||||
<i class="fa-solid fa-chevron-right text-xs" aria-hidden="true"></i>
|
<i class="fa-solid fa-chevron-right text-xs" aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
</summary>
|
</summary>
|
||||||
@@ -101,16 +136,20 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($commentAttachments->isNotEmpty())
|
@if ($commentAttachments->isNotEmpty())
|
||||||
<div class="mt-4 rounded-xl border border-zinc-200 bg-zinc-50 p-3 dark:border-zinc-700 dark:bg-zinc-950/60">
|
<div
|
||||||
<div class="mb-2 flex items-center gap-2 text-xs font-extrabold uppercase tracking-wide text-zinc-500">
|
class="mt-4 rounded-xl border border-zinc-200 bg-zinc-50 p-3 dark:border-zinc-700 dark:bg-zinc-950/60">
|
||||||
|
<div
|
||||||
|
class="mb-2 flex items-center gap-2 text-xs font-extrabold uppercase tracking-wide text-zinc-500">
|
||||||
<i class="fa-solid fa-paperclip text-blue-500" aria-hidden="true"></i>
|
<i class="fa-solid fa-paperclip text-blue-500" aria-hidden="true"></i>
|
||||||
Attachments
|
Attachments
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
@foreach ($commentAttachments as $attachment)
|
@foreach ($commentAttachments as $attachment)
|
||||||
<a href="{{ route('helpdesk.attachments.download', $attachment->id) }}" target="_blank" class="inline-flex items-center gap-2 rounded-lg border border-blue-200 bg-white px-3 py-2 text-xs font-bold text-blue-700 shadow-sm hover:bg-blue-50 dark:border-blue-900 dark:bg-zinc-900 dark:text-blue-200 dark:hover:bg-blue-950/50">
|
<a href="{{ route('helpdesk.attachments.download', $attachment->id) }}"
|
||||||
|
target="_blank"
|
||||||
|
class="inline-flex items-center gap-2 rounded-lg border border-blue-200 bg-white px-3 py-2 text-xs font-bold text-blue-700 shadow-sm hover:bg-blue-50 dark:border-blue-900 dark:bg-zinc-900 dark:text-blue-200 dark:hover:bg-blue-950/50">
|
||||||
<i class="fa-solid fa-thumbtack" aria-hidden="true"></i>
|
<i class="fa-solid fa-thumbtack" aria-hidden="true"></i>
|
||||||
{{ $attachment->original_name ?? $attachment->original_filename ?? $attachment->filename ?? $attachment->file_name ?? basename($attachment->path ?? $attachment->file_path ?? '') }}
|
{{ $attachment->original_name ?? ($attachment->original_filename ?? ($attachment->filename ?? ($attachment->file_name ?? basename($attachment->path ?? ($attachment->file_path ?? ''))))) }}
|
||||||
</a>
|
</a>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@@ -119,16 +158,21 @@
|
|||||||
|
|
||||||
@if ($currentTicket !== null)
|
@if ($currentTicket !== null)
|
||||||
<div class="mt-4 flex flex-wrap justify-end gap-2">
|
<div class="mt-4 flex flex-wrap justify-end gap-2">
|
||||||
<button type="button" dusk="reply-to-comment-{{ $comment->id }}" data-helpdesk-reply-toggle="{{ $replyFormId }}" class="inline-flex items-center justify-center rounded-lg bg-blue-600 px-3 py-2 text-xs font-bold text-white shadow-sm transition hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-400/70">
|
<button type="button" dusk="reply-to-comment-{{ $comment->id }}"
|
||||||
|
data-helpdesk-reply-toggle="{{ $replyFormId }}"
|
||||||
|
class="inline-flex items-center justify-center rounded-lg bg-blue-600 px-3 py-2 text-xs font-bold text-white shadow-sm transition hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-400/70">
|
||||||
<i class="fa-solid fa-reply mr-2" aria-hidden="true"></i>
|
<i class="fa-solid fa-reply mr-2" aria-hidden="true"></i>
|
||||||
Respond
|
Respond
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@if (auth()->user()?->isMpbaPlatformAdmin())
|
@if (auth()->user()?->isMpbaPlatformAdmin())
|
||||||
<form method="POST" action="{{ route('helpdesk.tickets.comments.destroy', [$currentTicket, $comment]) }}" onsubmit="return confirm('Delete this response? This will remove it from the visible conversation but keep the replication identity/audit trail.');">
|
<form method="POST"
|
||||||
|
action="{{ route('helpdesk.tickets.comments.destroy', [$currentTicket, $comment]) }}"
|
||||||
|
onsubmit="return confirm('Delete this response? This will remove it from the visible conversation but keep the replication identity/audit trail.');">
|
||||||
@csrf
|
@csrf
|
||||||
@method('DELETE')
|
@method('DELETE')
|
||||||
<button type="submit" dusk="delete-comment-{{ $comment->id }}" class="inline-flex items-center justify-center rounded-lg bg-red-600 px-3 py-2 text-xs font-bold text-white shadow-sm transition hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-400/70">
|
<button type="submit" dusk="delete-comment-{{ $comment->id }}"
|
||||||
|
class="inline-flex items-center justify-center rounded-lg bg-red-600 px-3 py-2 text-xs font-bold text-white shadow-sm transition hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-400/70">
|
||||||
<i class="fa-solid fa-trash-can mr-2" aria-hidden="true"></i>
|
<i class="fa-solid fa-trash-can mr-2" aria-hidden="true"></i>
|
||||||
Delete
|
Delete
|
||||||
</button>
|
</button>
|
||||||
@@ -136,63 +180,98 @@
|
|||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form id="{{ $replyFormId }}" method="POST" action="{{ route('helpdesk.tickets.comments.store', $currentTicket) }}" enctype="multipart/form-data" class="mt-4 hidden rounded-xl border border-red-200 bg-red-50/60 p-4 dark:border-red-900 dark:bg-red-950/20" data-helpdesk-comment-form>
|
<form id="{{ $replyFormId }}" method="POST"
|
||||||
|
action="{{ route('helpdesk.tickets.comments.store', $currentTicket) }}"
|
||||||
|
enctype="multipart/form-data"
|
||||||
|
class="mt-4 hidden rounded-xl border border-red-200 bg-red-50/60 p-4 dark:border-red-900 dark:bg-red-950/20"
|
||||||
|
data-helpdesk-comment-form>
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="parent_id" value="{{ $comment->id }}">
|
<input type="hidden" name="parent_id" value="{{ $comment->id }}">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="reply-subject-{{ $comment->id }}" class="mb-2 block text-sm font-bold text-zinc-700 dark:text-zinc-200">Subject</label>
|
<label for="reply-subject-{{ $comment->id }}"
|
||||||
<input id="reply-subject-{{ $comment->id }}" name="subject" value="{{ old('subject', 'RE: '.$commentSubject) }}" class="block w-full rounded-xl border border-zinc-300 bg-white p-3 text-sm font-semibold text-zinc-900 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100">
|
class="mb-2 block text-sm font-bold text-zinc-700 dark:text-zinc-200">Subject</label>
|
||||||
|
<input id="reply-subject-{{ $comment->id }}" name="subject"
|
||||||
|
value="{{ old('subject', 'RE: ' . $commentSubject) }}"
|
||||||
|
class="block w-full rounded-xl border border-zinc-300 bg-white p-3 text-sm font-semibold text-zinc-900 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100">
|
||||||
</div>
|
</div>
|
||||||
<label for="reply-body-{{ $comment->id }}" class="mb-2 block text-sm font-bold text-zinc-700 dark:text-zinc-200">Response to response</label>
|
<label for="reply-body-{{ $comment->id }}"
|
||||||
<div class="mb-2 flex flex-wrap gap-2" data-helpdesk-html-toolbar="reply-body-{{ $comment->id }}">
|
class="mb-2 block text-sm font-bold text-zinc-700 dark:text-zinc-200">Response to
|
||||||
<button type="button" data-helpdesk-tag="strong" class="rounded-lg border px-2 py-1 text-xs font-black">B</button>
|
response</label>
|
||||||
<button type="button" data-helpdesk-tag="em" class="rounded-lg border px-2 py-1 text-xs italic">I</button>
|
<div class="mb-2 flex flex-wrap gap-2"
|
||||||
<button type="button" data-helpdesk-tag="ul" class="rounded-lg border px-2 py-1 text-xs">List</button>
|
data-helpdesk-html-toolbar="reply-body-{{ $comment->id }}">
|
||||||
<button type="button" data-helpdesk-wrap="<blockquote>" data-helpdesk-wrap-end="</blockquote>" class="rounded-lg border px-2 py-1 text-xs">Quote</button>
|
<button type="button" data-helpdesk-tag="strong"
|
||||||
<button type="button" data-helpdesk-wrap="<code>" data-helpdesk-wrap-end="</code>" class="rounded-lg border px-2 py-1 text-xs">Code</button>
|
class="rounded-lg border px-2 py-1 text-xs font-black">B</button>
|
||||||
|
<button type="button" data-helpdesk-tag="em"
|
||||||
|
class="rounded-lg border px-2 py-1 text-xs italic">I</button>
|
||||||
|
<button type="button" data-helpdesk-tag="ul"
|
||||||
|
class="rounded-lg border px-2 py-1 text-xs">List</button>
|
||||||
|
<button type="button" data-helpdesk-wrap="<blockquote>"
|
||||||
|
data-helpdesk-wrap-end="</blockquote>"
|
||||||
|
class="rounded-lg border px-2 py-1 text-xs">Quote</button>
|
||||||
|
<button type="button" data-helpdesk-wrap="<code>" data-helpdesk-wrap-end="</code>"
|
||||||
|
class="rounded-lg border px-2 py-1 text-xs">Code</button>
|
||||||
</div>
|
</div>
|
||||||
<textarea id="reply-body-{{ $comment->id }}" dusk="reply-body-{{ $comment->id }}" name="commentBody" rows="4" required class="block w-full rounded-xl border border-zinc-300 bg-white p-3 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" placeholder="Write a threaded Lotus Notes-style response..."></textarea>
|
<textarea id="reply-body-{{ $comment->id }}" dusk="reply-body-{{ $comment->id }}" name="commentBody" rows="4"
|
||||||
|
required
|
||||||
|
class="block w-full rounded-xl border border-zinc-300 bg-white p-3 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100"
|
||||||
|
placeholder="Write a threaded Lotus Notes-style response..."></textarea>
|
||||||
|
|
||||||
@can('update', $currentTicket)
|
@can('update', $currentTicket)
|
||||||
@if ($canSeeInternalNotes)
|
@if ($canSeeInternalNotes)
|
||||||
<label class="mt-3 flex items-center gap-2 text-sm font-semibold text-zinc-700 dark:text-zinc-200">
|
<label
|
||||||
<input type="checkbox" name="internal" value="1" class="rounded border-zinc-300">
|
class="mt-3 flex items-center gap-2 text-sm font-semibold text-zinc-700 dark:text-zinc-200">
|
||||||
|
<input type="checkbox" name="internal" value="1"
|
||||||
|
class="rounded border-zinc-300">
|
||||||
MPBA internal note only
|
MPBA internal note only
|
||||||
</label>
|
</label>
|
||||||
@endif
|
@endif
|
||||||
@endcan
|
@endcan
|
||||||
|
|
||||||
<details class="mt-4 overflow-hidden rounded-xl border border-zinc-200 bg-white/80 shadow-sm dark:border-zinc-800 dark:bg-zinc-950/50">
|
<details
|
||||||
<summary class="group flex cursor-pointer list-none items-center justify-between gap-3 bg-gradient-to-r from-slate-950 via-blue-950 to-slate-900 px-4 py-3 text-white [&::-webkit-details-marker]:hidden">
|
class="mt-4 overflow-hidden rounded-xl border border-zinc-200 bg-white/80 shadow-sm dark:border-zinc-800 dark:bg-zinc-950/50">
|
||||||
|
<summary
|
||||||
|
class="group flex cursor-pointer list-none items-center justify-between gap-3 bg-gradient-to-r from-slate-950 via-blue-950 to-slate-900 px-4 py-3 text-white [&::-webkit-details-marker]:hidden">
|
||||||
<span class="flex min-w-0 items-center gap-3">
|
<span class="flex min-w-0 items-center gap-3">
|
||||||
<span class="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-xl border border-blue-400/30 bg-blue-500/15 text-blue-200">
|
<span
|
||||||
|
class="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-xl border border-blue-400/30 bg-blue-500/15 text-blue-200">
|
||||||
<i class="fa-solid fa-paperclip text-xs" aria-hidden="true"></i>
|
<i class="fa-solid fa-paperclip text-xs" aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="min-w-0">
|
<span class="min-w-0">
|
||||||
<span class="block text-[10px] font-black uppercase tracking-[0.22em] text-blue-200">Attachments</span>
|
<span
|
||||||
<span class="block truncate text-xs font-semibold text-zinc-300">Pin response files.</span>
|
class="block text-[10px] font-black uppercase tracking-[0.22em] text-blue-200">Attachments</span>
|
||||||
|
<span class="block truncate text-xs font-semibold text-zinc-300">Pin
|
||||||
|
response files.</span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="flex shrink-0 items-center gap-2">
|
<span class="flex shrink-0 items-center gap-2">
|
||||||
<span class="rounded-full border border-white/10 bg-white/10 px-2.5 py-1 text-[10px] font-black text-white" data-helpdesk-file-count>0 files</span>
|
<span
|
||||||
<i class="fa-solid fa-chevron-down text-[10px] text-blue-200 transition group-open:rotate-180" aria-hidden="true"></i>
|
class="rounded-full border border-white/10 bg-white/10 px-2.5 py-1 text-[10px] font-black text-white"
|
||||||
|
data-helpdesk-file-count>0 files</span>
|
||||||
|
<i class="fa-solid fa-chevron-down text-[10px] text-blue-200 transition group-open:rotate-180"
|
||||||
|
aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
</summary>
|
</summary>
|
||||||
<div class="p-4">
|
<div class="p-4">
|
||||||
<div class="flex min-h-[4.5rem] flex-col gap-3 rounded-xl border border-zinc-200 bg-zinc-50/80 p-4 dark:border-zinc-800 dark:bg-zinc-950/70 sm:flex-row sm:items-center sm:justify-between">
|
<div
|
||||||
<span class="text-xs font-semibold text-zinc-500 dark:text-zinc-400" data-helpdesk-file-label>No files attached</span>
|
class="flex min-h-[4.5rem] flex-col gap-3 rounded-xl border border-zinc-200 bg-zinc-50/80 p-4 dark:border-zinc-800 dark:bg-zinc-950/70 sm:flex-row sm:items-center sm:justify-between">
|
||||||
|
<span class="text-xs font-semibold text-zinc-500 dark:text-zinc-400"
|
||||||
|
data-helpdesk-file-label>No files attached</span>
|
||||||
<label data-helpdesk-file-button>
|
<label data-helpdesk-file-button>
|
||||||
<i class="fa-solid fa-paperclip" aria-hidden="true"></i>
|
<i class="fa-solid fa-paperclip" aria-hidden="true"></i>
|
||||||
<span>Attach files</span>
|
<span>Attach files</span>
|
||||||
<input name="attachments[]" type="file" multiple class="sr-only" data-helpdesk-file-input>
|
<input name="attachments[]" type="file" multiple class="sr-only"
|
||||||
|
data-helpdesk-file-input>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<div class="mt-4 flex justify-end gap-2">
|
<div class="mt-4 flex justify-end gap-2">
|
||||||
<button type="button" data-helpdesk-reply-toggle="{{ $replyFormId }}" class="inline-flex items-center justify-center rounded-lg bg-slate-600 px-3 py-2 text-xs font-bold text-white shadow-sm transition hover:bg-slate-700 focus:outline-none focus:ring-2 focus:ring-slate-400/70">Cancel</button>
|
<button type="button" data-helpdesk-reply-toggle="{{ $replyFormId }}"
|
||||||
<button type="submit" dusk="post-reply-{{ $comment->id }}" class="inline-flex items-center justify-center rounded-lg bg-emerald-600 px-3 py-2 text-xs font-bold text-white shadow-sm transition hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-400/70">Post response</button>
|
class="inline-flex items-center justify-center rounded-lg bg-slate-600 px-3 py-2 text-xs font-bold text-white shadow-sm transition hover:bg-slate-700 focus:outline-none focus:ring-2 focus:ring-slate-400/70">Cancel</button>
|
||||||
|
<button type="submit" dusk="post-reply-{{ $comment->id }}"
|
||||||
|
class="inline-flex items-center justify-center rounded-lg bg-emerald-600 px-3 py-2 text-xs font-bold text-white shadow-sm transition hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-400/70">Post
|
||||||
|
response</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if ($helpdeskEnabled)
|
@if ($helpdeskEnabled)
|
||||||
<a href="{{ route('helpdesk.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.*')) is-active @endif" title="{{ __('Support') }}">
|
<a href="{{ route('helpdesk.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.*')) is-active @endif" title="{{ __('Support') }}">
|
||||||
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Support') }}</span>
|
<span data-wms-sidebar-label>{{ __('Support') }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -6,31 +6,21 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="grid grid-cols-[1fr_auto] gap-2">
|
<div class="grid grid-cols-[1fr_auto] gap-2">
|
||||||
<input
|
<input id="time_minutes" name="minutes" type="number" min="1" max="1440" value="{{ old('minutes') }}"
|
||||||
id="time_minutes"
|
|
||||||
name="minutes"
|
|
||||||
type="number"
|
|
||||||
min="1"
|
|
||||||
max="1440"
|
|
||||||
value="{{ old('minutes') }}"
|
|
||||||
placeholder="Minutes"
|
placeholder="Minutes"
|
||||||
class="block w-full rounded-lg border border-zinc-300 bg-white p-2 text-xs font-semibold text-zinc-900 shadow-sm focus:border-emerald-500 focus:ring-emerald-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100"
|
class="block w-full rounded-lg border border-zinc-300 bg-white p-2 text-xs font-semibold text-zinc-900 shadow-sm focus:border-emerald-500 focus:ring-emerald-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100"
|
||||||
data-dusk="ticket-time-minutes"
|
data-dusk="ticket-time-minutes">
|
||||||
>
|
|
||||||
|
|
||||||
<button type="submit" dusk="log-ticket-time" data-dusk="log-ticket-time" class="inline-flex items-center justify-center rounded-lg bg-emerald-600 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-400/70">
|
<button type="submit" dusk="log-ticket-time" data-dusk="log-ticket-time"
|
||||||
|
class="inline-flex items-center justify-center rounded-lg bg-emerald-600 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-400/70">
|
||||||
<i class="fa-solid fa-clock mr-2" aria-hidden="true"></i>
|
<i class="fa-solid fa-clock mr-2" aria-hidden="true"></i>
|
||||||
<span>Log</span>
|
<span>Log</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<textarea
|
<textarea name="description" rows="2" placeholder="Optional work note"
|
||||||
name="description"
|
|
||||||
rows="2"
|
|
||||||
placeholder="Optional work note"
|
|
||||||
class="block w-full rounded-lg border border-zinc-300 bg-white p-2 text-xs font-semibold text-zinc-900 shadow-sm focus:border-emerald-500 focus:ring-emerald-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100"
|
class="block w-full rounded-lg border border-zinc-300 bg-white p-2 text-xs font-semibold text-zinc-900 shadow-sm focus:border-emerald-500 focus:ring-emerald-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100"
|
||||||
data-dusk="ticket-time-description"
|
data-dusk="ticket-time-description">{{ old('description') }}</textarea>
|
||||||
>{{ old('description') }}</textarea>
|
|
||||||
|
|
||||||
@error('minutes')
|
@error('minutes')
|
||||||
<p class="text-xs font-bold text-red-600 dark:text-red-400">{{ $message }}</p>
|
<p class="text-xs font-bold text-red-600 dark:text-red-400">{{ $message }}</p>
|
||||||
|
|||||||
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-inventory-management">
|
<div class="container-fluid py-4 module-page module-inventory-management">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Inventory Management"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Inventory Management"
|
|
||||||
description="Track inventory movement, stock visibility, pallet quantities, and product availability."
|
description="Track inventory movement, stock visibility, pallet quantities, and product availability."
|
||||||
icon="fa-solid fa-boxes-stacked"
|
icon="fa-solid fa-boxes-stacked" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">Inventory Management workbench</h2>
|
<h2 class="h5 mb-1">Inventory Management workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Stock Overview</td>
|
<td>Stock Overview</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Pallet Quantity Rules</td>
|
<td>Pallet Quantity Rules</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Inventory Exceptions</td>
|
<td>Inventory Exceptions</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Product Movement</td>
|
<td>Product Movement</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-m3-integration">
|
<div class="container-fluid py-4 module-page module-m3-integration">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="M3 Integration"
|
||||||
eyebrow="Operations"
|
|
||||||
title="M3 Integration"
|
|
||||||
description="Observe M3 transactions, delivery methods, close shipment calls, and API exchanges."
|
description="Observe M3 transactions, delivery methods, close shipment calls, and API exchanges."
|
||||||
icon="fa-solid fa-server"
|
icon="fa-solid fa-server" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">M3 Integration workbench</h2>
|
<h2 class="h5 mb-1">M3 Integration workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>M3 Transaction Log</td>
|
<td>M3 Transaction Log</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>M3 Delivery Methods</td>
|
<td>M3 Delivery Methods</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Close Shipment API</td>
|
<td>Close Shipment API</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>M3 Error Queue</td>
|
<td>M3 Error Queue</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,25 +1,47 @@
|
|||||||
<x-layouts::app :title="__('Companies')">
|
<x-layouts::app :title="__('Companies')">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Platform Administration" title="Companies"
|
||||||
eyebrow="Platform Administration"
|
|
||||||
title="Companies"
|
|
||||||
description="Manage tenant companies and keep every company’s users, warehouses and records isolated."
|
description="Manage tenant companies and keep every company’s users, warehouses and records isolated."
|
||||||
icon="fa-solid fa-building"
|
icon="fa-solid fa-building" />
|
||||||
/>
|
|
||||||
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
||||||
<h2 class="text-lg font-bold text-zinc-900 dark:text-white">Create company</h2>
|
<h2 class="text-lg font-bold text-zinc-900 dark:text-white">Create company</h2>
|
||||||
<form method="POST" action="{{ route('platform.companies.store') }}" class="mt-5 grid gap-4 md:grid-cols-4">
|
<form method="POST" action="{{ route('platform.companies.store') }}" class="mt-5 grid gap-4 md:grid-cols-4">
|
||||||
@csrf
|
@csrf
|
||||||
<input name="name" placeholder="Company name" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
<input name="name" placeholder="Company name"
|
||||||
<input name="billing_email" placeholder="billing@example.com" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||||
<select name="status" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950"><option value="active">Active</option><option value="suspended">Suspended</option></select>
|
<input name="billing_email" placeholder="billing@example.com"
|
||||||
<button class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Create</button>
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||||
|
<select name="status" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||||
|
<option value="active">Active</option>
|
||||||
|
<option value="suspended">Suspended</option>
|
||||||
|
</select>
|
||||||
|
<button
|
||||||
|
class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Create</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="overflow-x-auto rounded-2xl bg-white shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
<div
|
||||||
|
class="overflow-x-auto rounded-2xl bg-white shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
||||||
<table class="min-w-full text-sm">
|
<table class="min-w-full text-sm">
|
||||||
<thead><tr class="border-b"><th class="p-4 text-left">Name</th><th class="p-4 text-left">Users</th><th class="p-4 text-left">Warehouses</th><th class="p-4 text-left">Licences</th><th class="p-4 text-left">Status</th></tr></thead>
|
<thead>
|
||||||
<tbody>@foreach($companies as $company)<tr class="border-b border-zinc-100 dark:border-zinc-800"><td class="p-4 font-semibold">{{ $company->name }}</td><td class="p-4">{{ $company->users_count }}</td><td class="p-4">{{ $company->warehouses_count }}</td><td class="p-4">{{ $company->license_keys_count }}</td><td class="p-4">{{ $company->is_system_company ? 'System' : $company->status }}</td></tr>@endforeach</tbody>
|
<tr class="border-b">
|
||||||
|
<th class="p-4 text-left">Name</th>
|
||||||
|
<th class="p-4 text-left">Users</th>
|
||||||
|
<th class="p-4 text-left">Warehouses</th>
|
||||||
|
<th class="p-4 text-left">Licences</th>
|
||||||
|
<th class="p-4 text-left">Status</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach ($companies as $company)
|
||||||
|
<tr class="border-b border-zinc-100 dark:border-zinc-800">
|
||||||
|
<td class="p-4 font-semibold">{{ $company->name }}</td>
|
||||||
|
<td class="p-4">{{ $company->users_count }}</td>
|
||||||
|
<td class="p-4">{{ $company->warehouses_count }}</td>
|
||||||
|
<td class="p-4">{{ $company->license_keys_count }}</td>
|
||||||
|
<td class="p-4">{{ $company->is_system_company ? 'System' : $company->status }}</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{{ $companies->links() }}
|
{{ $companies->links() }}
|
||||||
|
|||||||
@@ -1,54 +1,71 @@
|
|||||||
<x-layouts.app :title="__('Platform Dashboard')">
|
<x-layouts.app :title="__('Platform Dashboard')">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero title="Platform Dashboard"
|
||||||
title="Platform Dashboard"
|
|
||||||
description="System-level tenant, licence, pricing and operational oversight for the WMS platform."
|
description="System-level tenant, licence, pricing and operational oversight for the WMS platform."
|
||||||
eyebrow="Platform Administration"
|
eyebrow="Platform Administration" />
|
||||||
/>
|
|
||||||
|
|
||||||
<section class="grid gap-4 md:grid-cols-2 xl:grid-cols-5">
|
<section class="grid gap-4 md:grid-cols-2 xl:grid-cols-5">
|
||||||
<article class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-950">
|
<article
|
||||||
|
class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-950">
|
||||||
<p class="text-sm font-medium text-slate-500 dark:text-slate-400">Companies</p>
|
<p class="text-sm font-medium text-slate-500 dark:text-slate-400">Companies</p>
|
||||||
<p class="mt-2 text-3xl font-semibold text-slate-950 dark:text-white">{{ number_format($companiesCount ?? 0) }}</p>
|
<p class="mt-2 text-3xl font-semibold text-slate-950 dark:text-white">
|
||||||
|
{{ number_format($companiesCount ?? 0) }}</p>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-950">
|
<article
|
||||||
|
class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-950">
|
||||||
<p class="text-sm font-medium text-slate-500 dark:text-slate-400">Active</p>
|
<p class="text-sm font-medium text-slate-500 dark:text-slate-400">Active</p>
|
||||||
<p class="mt-2 text-3xl font-semibold text-emerald-700 dark:text-emerald-300">{{ number_format($activeCompaniesCount ?? 0) }}</p>
|
<p class="mt-2 text-3xl font-semibold text-emerald-700 dark:text-emerald-300">
|
||||||
|
{{ number_format($activeCompaniesCount ?? 0) }}</p>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-950">
|
<article
|
||||||
|
class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-950">
|
||||||
<p class="text-sm font-medium text-slate-500 dark:text-slate-400">Warehouses</p>
|
<p class="text-sm font-medium text-slate-500 dark:text-slate-400">Warehouses</p>
|
||||||
<p class="mt-2 text-3xl font-semibold text-slate-950 dark:text-white">{{ number_format($warehousesCount ?? 0) }}</p>
|
<p class="mt-2 text-3xl font-semibold text-slate-950 dark:text-white">
|
||||||
|
{{ number_format($warehousesCount ?? 0) }}</p>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-950">
|
<article
|
||||||
|
class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-950">
|
||||||
<p class="text-sm font-medium text-slate-500 dark:text-slate-400">Prices</p>
|
<p class="text-sm font-medium text-slate-500 dark:text-slate-400">Prices</p>
|
||||||
<p class="mt-2 text-3xl font-semibold text-slate-950 dark:text-white">{{ number_format($pricesCount ?? 0) }}</p>
|
<p class="mt-2 text-3xl font-semibold text-slate-950 dark:text-white">
|
||||||
|
{{ number_format($pricesCount ?? 0) }}</p>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-950">
|
<article
|
||||||
|
class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm dark:border-slate-800 dark:bg-slate-950">
|
||||||
<p class="text-sm font-medium text-slate-500 dark:text-slate-400">Licences</p>
|
<p class="text-sm font-medium text-slate-500 dark:text-slate-400">Licences</p>
|
||||||
<p class="mt-2 text-3xl font-semibold text-slate-950 dark:text-white">{{ number_format($licensesCount ?? 0) }}</p>
|
<p class="mt-2 text-3xl font-semibold text-slate-950 dark:text-white">
|
||||||
|
{{ number_format($licensesCount ?? 0) }}</p>
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<section class="grid gap-6 xl:grid-cols-3">
|
<section class="grid gap-6 xl:grid-cols-3">
|
||||||
<article class="rounded-2xl border border-slate-200 bg-white p-6 shadow-sm dark:border-slate-800 dark:bg-slate-950 xl:col-span-1">
|
<article
|
||||||
|
class="rounded-2xl border border-slate-200 bg-white p-6 shadow-sm dark:border-slate-800 dark:bg-slate-950 xl:col-span-1">
|
||||||
<h2 class="text-lg font-semibold text-slate-950 dark:text-white">Administration shortcuts</h2>
|
<h2 class="text-lg font-semibold text-slate-950 dark:text-white">Administration shortcuts</h2>
|
||||||
<div class="mt-4 grid gap-3">
|
<div class="mt-4 grid gap-3">
|
||||||
<a href="{{ route('platform.companies.index') }}" class="rounded-xl border border-slate-200 p-3 text-sm font-semibold hover:bg-slate-50 dark:border-slate-800 dark:hover:bg-slate-900">Manage companies</a>
|
<a href="{{ route('platform.companies.index') }}"
|
||||||
<a href="{{ route('platform.prices.index') }}" class="rounded-xl border border-slate-200 p-3 text-sm font-semibold hover:bg-slate-50 dark:border-slate-800 dark:hover:bg-slate-900">Manage prices</a>
|
class="rounded-xl border border-slate-200 p-3 text-sm font-semibold hover:bg-slate-50 dark:border-slate-800 dark:hover:bg-slate-900">Manage
|
||||||
<a href="{{ route('platform.pricing.index') }}" class="rounded-xl border border-slate-200 p-3 text-sm font-semibold hover:bg-slate-50 dark:border-slate-800 dark:hover:bg-slate-900">View public pricing</a>
|
companies</a>
|
||||||
|
<a href="{{ route('platform.prices.index') }}"
|
||||||
|
class="rounded-xl border border-slate-200 p-3 text-sm font-semibold hover:bg-slate-50 dark:border-slate-800 dark:hover:bg-slate-900">Manage
|
||||||
|
prices</a>
|
||||||
|
<a href="{{ route('platform.pricing.index') }}"
|
||||||
|
class="rounded-xl border border-slate-200 p-3 text-sm font-semibold hover:bg-slate-50 dark:border-slate-800 dark:hover:bg-slate-900">View
|
||||||
|
public pricing</a>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="rounded-2xl border border-slate-200 bg-white p-6 shadow-sm dark:border-slate-800 dark:bg-slate-950 xl:col-span-2">
|
<article
|
||||||
|
class="rounded-2xl border border-slate-200 bg-white p-6 shadow-sm dark:border-slate-800 dark:bg-slate-950 xl:col-span-2">
|
||||||
<h2 class="text-lg font-semibold text-slate-950 dark:text-white">Recent companies</h2>
|
<h2 class="text-lg font-semibold text-slate-950 dark:text-white">Recent companies</h2>
|
||||||
<div class="mt-4 overflow-hidden rounded-xl border border-slate-200 dark:border-slate-800">
|
<div class="mt-4 overflow-hidden rounded-xl border border-slate-200 dark:border-slate-800">
|
||||||
<table class="min-w-full divide-y divide-slate-200 text-sm dark:divide-slate-800">
|
<table class="min-w-full divide-y divide-slate-200 text-sm dark:divide-slate-800">
|
||||||
<thead class="bg-slate-50 text-left text-xs uppercase tracking-wide text-slate-500 dark:bg-slate-900 dark:text-slate-400">
|
<thead
|
||||||
|
class="bg-slate-50 text-left text-xs uppercase tracking-wide text-slate-500 dark:bg-slate-900 dark:text-slate-400">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="px-4 py-3">Company</th>
|
<th class="px-4 py-3">Company</th>
|
||||||
<th class="px-4 py-3">Users</th>
|
<th class="px-4 py-3">Users</th>
|
||||||
@@ -60,7 +77,8 @@
|
|||||||
<tbody class="divide-y divide-slate-200 dark:divide-slate-800">
|
<tbody class="divide-y divide-slate-200 dark:divide-slate-800">
|
||||||
@forelse (($companies ?? collect()) as $company)
|
@forelse (($companies ?? collect()) as $company)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-3 font-medium text-slate-950 dark:text-white">{{ $company->name }}</td>
|
<td class="px-4 py-3 font-medium text-slate-950 dark:text-white">
|
||||||
|
{{ $company->name }}</td>
|
||||||
<td class="px-4 py-3">{{ $company->users_count ?? 0 }}</td>
|
<td class="px-4 py-3">{{ $company->users_count ?? 0 }}</td>
|
||||||
<td class="px-4 py-3">{{ $company->warehouses_count ?? 0 }}</td>
|
<td class="px-4 py-3">{{ $company->warehouses_count ?? 0 }}</td>
|
||||||
<td class="px-4 py-3">{{ $company->license_keys_count ?? 0 }}</td>
|
<td class="px-4 py-3">{{ $company->license_keys_count ?? 0 }}</td>
|
||||||
@@ -68,7 +86,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5" class="px-4 py-6 text-center text-slate-500 dark:text-slate-400">No companies have been created yet.</td>
|
<td colspan="5" class="px-4 py-6 text-center text-slate-500 dark:text-slate-400">
|
||||||
|
No companies have been created yet.</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -1,24 +1,59 @@
|
|||||||
<x-layouts::app :title="__('Licence Keys')">
|
<x-layouts::app :title="__('Licence Keys')">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Platform Administration" title="Licence Keys"
|
||||||
eyebrow="Platform Administration"
|
|
||||||
title="Licence Keys"
|
|
||||||
description="Issue and monitor company licence keys, limits and platform access plans."
|
description="Issue and monitor company licence keys, limits and platform access plans."
|
||||||
icon="fa-solid fa-key"
|
icon="fa-solid fa-key" />
|
||||||
/>
|
@if ($plainKey)
|
||||||
@if($plainKey)<div class="rounded-2xl bg-emerald-50 p-4 text-emerald-900 ring-1 ring-emerald-200">New key: <code class="font-bold">{{ $plainKey }}</code></div>@endif
|
<div class="rounded-2xl bg-emerald-50 p-4 text-emerald-900 ring-1 ring-emerald-200">New key: <code
|
||||||
|
class="font-bold">{{ $plainKey }}</code></div>
|
||||||
|
@endif
|
||||||
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
||||||
<h2 class="text-lg font-bold text-zinc-900 dark:text-white">Issue licence key</h2>
|
<h2 class="text-lg font-bold text-zinc-900 dark:text-white">Issue licence key</h2>
|
||||||
<form method="POST" action="{{ route('platform.licenses.store') }}" class="mt-5 grid gap-4 md:grid-cols-5">
|
<form method="POST" action="{{ route('platform.licenses.store') }}" class="mt-5 grid gap-4 md:grid-cols-5">
|
||||||
@csrf
|
@csrf
|
||||||
<select name="company_id" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">@foreach($companies as $company)<option value="{{ $company->id }}">{{ $company->name }}</option>@endforeach</select>
|
<select name="company_id" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||||
<input name="label" placeholder="Licence label" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
@foreach ($companies as $company)
|
||||||
<select name="plan" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950"><option>standard</option><option>professional</option><option>enterprise</option></select>
|
<option value="{{ $company->id }}">{{ $company->name }}</option>
|
||||||
<input name="max_users" type="number" value="10" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
@endforeach
|
||||||
<button class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Issue</button>
|
</select>
|
||||||
|
<input name="label" placeholder="Licence label"
|
||||||
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||||
|
<select name="plan" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||||
|
<option>standard</option>
|
||||||
|
<option>professional</option>
|
||||||
|
<option>enterprise</option>
|
||||||
|
</select>
|
||||||
|
<input name="max_users" type="number" value="10"
|
||||||
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||||
|
<button
|
||||||
|
class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Issue</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="overflow-x-auto rounded-2xl bg-white shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800"><table class="min-w-full text-sm"><thead><tr class="border-b"><th class="p-4 text-left">Company</th><th class="p-4 text-left">Label</th><th class="p-4 text-left">Plan</th><th class="p-4 text-left">Prefix</th><th class="p-4 text-left">Expires</th></tr></thead><tbody>@foreach($licenses as $license)<tr class="border-b border-zinc-100 dark:border-zinc-800"><td class="p-4">{{ $license->company->name }}</td><td class="p-4 font-semibold">{{ $license->label }}</td><td class="p-4">{{ $license->plan }}</td><td class="p-4"><code>{{ $license->key_prefix }}</code></td><td class="p-4">{{ optional($license->expires_at)->toDateString() }}</td></tr>@endforeach</tbody></table></div>
|
<div
|
||||||
|
class="overflow-x-auto rounded-2xl bg-white shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
||||||
|
<table class="min-w-full text-sm">
|
||||||
|
<thead>
|
||||||
|
<tr class="border-b">
|
||||||
|
<th class="p-4 text-left">Company</th>
|
||||||
|
<th class="p-4 text-left">Label</th>
|
||||||
|
<th class="p-4 text-left">Plan</th>
|
||||||
|
<th class="p-4 text-left">Prefix</th>
|
||||||
|
<th class="p-4 text-left">Expires</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach ($licenses as $license)
|
||||||
|
<tr class="border-b border-zinc-100 dark:border-zinc-800">
|
||||||
|
<td class="p-4">{{ $license->company->name }}</td>
|
||||||
|
<td class="p-4 font-semibold">{{ $license->label }}</td>
|
||||||
|
<td class="p-4">{{ $license->plan }}</td>
|
||||||
|
<td class="p-4"><code>{{ $license->key_prefix }}</code></td>
|
||||||
|
<td class="p-4">{{ optional($license->expires_at)->toDateString() }}</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
{{ $licenses->links() }}
|
{{ $licenses->links() }}
|
||||||
</div>
|
</div>
|
||||||
</x-layouts::app>
|
</x-layouts::app>
|
||||||
|
|||||||
@@ -1,24 +1,58 @@
|
|||||||
<x-layouts::app :title="__('Payments')">
|
<x-layouts::app :title="__('Payments')">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Platform Administration" title="Payments and Overrides"
|
||||||
eyebrow="Platform Administration"
|
|
||||||
title="Payments and Overrides"
|
|
||||||
description="Record platform payments, manual overrides and billing status by company."
|
description="Record platform payments, manual overrides and billing status by company."
|
||||||
icon="fa-solid fa-credit-card"
|
icon="fa-solid fa-credit-card" />
|
||||||
/>
|
|
||||||
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
||||||
<h2 class="text-lg font-bold text-zinc-900 dark:text-white">Add payment or override</h2>
|
<h2 class="text-lg font-bold text-zinc-900 dark:text-white">Add payment or override</h2>
|
||||||
<form method="POST" action="{{ route('platform.payments.store') }}" class="mt-5 grid gap-4 md:grid-cols-6">
|
<form method="POST" action="{{ route('platform.payments.store') }}" class="mt-5 grid gap-4 md:grid-cols-6">
|
||||||
@csrf
|
@csrf
|
||||||
<select name="company_id" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">@foreach($companies as $company)<option value="{{ $company->id }}">{{ $company->name }}</option>@endforeach</select>
|
<select name="company_id" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||||
<input name="amount" type="number" value="0" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
@foreach ($companies as $company)
|
||||||
<input name="currency" value="gbp" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
<option value="{{ $company->id }}">{{ $company->name }}</option>
|
||||||
<select name="status" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950"><option>paid</option><option>pending</option><option>failed</option><option>refunded</option><option>override</option></select>
|
@endforeach
|
||||||
<input name="description" placeholder="Description" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
</select>
|
||||||
<button class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Add</button>
|
<input name="amount" type="number" value="0"
|
||||||
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||||
|
<input name="currency" value="gbp"
|
||||||
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||||
|
<select name="status" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||||
|
<option>paid</option>
|
||||||
|
<option>pending</option>
|
||||||
|
<option>failed</option>
|
||||||
|
<option>refunded</option>
|
||||||
|
<option>override</option>
|
||||||
|
</select>
|
||||||
|
<input name="description" placeholder="Description"
|
||||||
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||||
|
<button
|
||||||
|
class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Add</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="overflow-x-auto rounded-2xl bg-white shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800"><table class="min-w-full text-sm"><thead><tr class="border-b"><th class="p-4 text-left">Company</th><th class="p-4 text-left">Amount</th><th class="p-4 text-left">Status</th><th class="p-4 text-left">Description</th></tr></thead><tbody>@foreach($payments as $payment)<tr class="border-b border-zinc-100 dark:border-zinc-800"><td class="p-4">{{ $payment->company->name }}</td><td class="p-4 font-semibold">{{ strtoupper($payment->currency) }} {{ number_format($payment->amount / 100, 2) }}</td><td class="p-4">{{ $payment->status }}</td><td class="p-4">{{ $payment->description }}</td></tr>@endforeach</tbody></table></div>
|
<div
|
||||||
|
class="overflow-x-auto rounded-2xl bg-white shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
||||||
|
<table class="min-w-full text-sm">
|
||||||
|
<thead>
|
||||||
|
<tr class="border-b">
|
||||||
|
<th class="p-4 text-left">Company</th>
|
||||||
|
<th class="p-4 text-left">Amount</th>
|
||||||
|
<th class="p-4 text-left">Status</th>
|
||||||
|
<th class="p-4 text-left">Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach ($payments as $payment)
|
||||||
|
<tr class="border-b border-zinc-100 dark:border-zinc-800">
|
||||||
|
<td class="p-4">{{ $payment->company->name }}</td>
|
||||||
|
<td class="p-4 font-semibold">{{ strtoupper($payment->currency) }}
|
||||||
|
{{ number_format($payment->amount / 100, 2) }}</td>
|
||||||
|
<td class="p-4">{{ $payment->status }}</td>
|
||||||
|
<td class="p-4">{{ $payment->description }}</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
{{ $payments->links() }}
|
{{ $payments->links() }}
|
||||||
</div>
|
</div>
|
||||||
</x-layouts::app>
|
</x-layouts::app>
|
||||||
|
|||||||
@@ -5,72 +5,120 @@
|
|||||||
<div class="grid gap-5 lg:grid-cols-2">
|
<div class="grid gap-5 lg:grid-cols-2">
|
||||||
<div>
|
<div>
|
||||||
<label for="name" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Name</label>
|
<label for="name" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Name</label>
|
||||||
<input id="name" name="name" value="{{ old('name', $price->name) }}" required class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950" placeholder="Basic">
|
<input id="name" name="name" value="{{ old('name', $price->name) }}" required
|
||||||
@error('name')<p class="mt-1 text-sm text-red-500">{{ $message }}</p>@enderror
|
class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950"
|
||||||
|
placeholder="Basic">
|
||||||
|
@error('name')
|
||||||
|
<p class="mt-1 text-sm text-red-500">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="code" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Code</label>
|
<label for="code" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Code</label>
|
||||||
<input id="code" name="code" value="{{ old('code', $price->code) }}" class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950" placeholder="basic">
|
<input id="code" name="code" value="{{ old('code', $price->code) }}"
|
||||||
@error('code')<p class="mt-1 text-sm text-red-500">{{ $message }}</p>@enderror
|
class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950"
|
||||||
|
placeholder="basic">
|
||||||
|
@error('code')
|
||||||
|
<p class="mt-1 text-sm text-red-500">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="strapline" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Strapline</label>
|
<label for="strapline" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Strapline</label>
|
||||||
<input id="strapline" name="strapline" value="{{ old('strapline', $price->strapline) }}" class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950" placeholder="Core warehouse visibility">
|
<input id="strapline" name="strapline" value="{{ old('strapline', $price->strapline) }}"
|
||||||
@error('strapline')<p class="mt-1 text-sm text-red-500">{{ $message }}</p>@enderror
|
class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950"
|
||||||
|
placeholder="Core warehouse visibility">
|
||||||
|
@error('strapline')
|
||||||
|
<p class="mt-1 text-sm text-red-500">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="badge_label" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Badge label</label>
|
<label for="badge_label" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Badge label</label>
|
||||||
<input id="badge_label" name="badge_label" value="{{ old('badge_label', $price->badge_label) }}" class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950" placeholder="Popular">
|
<input id="badge_label" name="badge_label" value="{{ old('badge_label', $price->badge_label) }}"
|
||||||
@error('badge_label')<p class="mt-1 text-sm text-red-500">{{ $message }}</p>@enderror
|
class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950"
|
||||||
|
placeholder="Popular">
|
||||||
|
@error('badge_label')
|
||||||
|
<p class="mt-1 text-sm text-red-500">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="monthly_amount" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Monthly price</label>
|
<label for="monthly_amount" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Monthly price</label>
|
||||||
<input id="monthly_amount" name="monthly_amount" type="number" step="0.01" min="0" value="{{ old('monthly_amount', $price->exists ? number_format($price->monthly_amount / 100, 2, '.', '') : '0.00') }}" required class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950" placeholder="99.00">
|
<input id="monthly_amount" name="monthly_amount" type="number" step="0.01" min="0"
|
||||||
@error('monthly_amount')<p class="mt-1 text-sm text-red-500">{{ $message }}</p>@enderror
|
value="{{ old('monthly_amount', $price->exists ? number_format($price->monthly_amount / 100, 2, '.', '') : '0.00') }}"
|
||||||
|
required
|
||||||
|
class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950"
|
||||||
|
placeholder="99.00">
|
||||||
|
@error('monthly_amount')
|
||||||
|
<p class="mt-1 text-sm text-red-500">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="annual_amount" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Annual price</label>
|
<label for="annual_amount" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Annual price</label>
|
||||||
<input id="annual_amount" name="annual_amount" type="number" step="0.01" min="0" value="{{ old('annual_amount', $price->annual_amount !== null ? number_format($price->annual_amount / 100, 2, '.', '') : '') }}" class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950" placeholder="990.00">
|
<input id="annual_amount" name="annual_amount" type="number" step="0.01" min="0"
|
||||||
@error('annual_amount')<p class="mt-1 text-sm text-red-500">{{ $message }}</p>@enderror
|
value="{{ old('annual_amount', $price->annual_amount !== null ? number_format($price->annual_amount / 100, 2, '.', '') : '') }}"
|
||||||
|
class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950"
|
||||||
|
placeholder="990.00">
|
||||||
|
@error('annual_amount')
|
||||||
|
<p class="mt-1 text-sm text-red-500">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="currency" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Currency</label>
|
<label for="currency" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Currency</label>
|
||||||
<input id="currency" name="currency" value="{{ old('currency', $price->currency ?: 'gbp') }}" maxlength="3" required class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm uppercase dark:border-zinc-700 dark:bg-zinc-950" placeholder="gbp">
|
<input id="currency" name="currency" value="{{ old('currency', $price->currency ?: 'gbp') }}" maxlength="3"
|
||||||
@error('currency')<p class="mt-1 text-sm text-red-500">{{ $message }}</p>@enderror
|
required
|
||||||
|
class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm uppercase dark:border-zinc-700 dark:bg-zinc-950"
|
||||||
|
placeholder="gbp">
|
||||||
|
@error('currency')
|
||||||
|
<p class="mt-1 text-sm text-red-500">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="sort_order" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Sort order</label>
|
<label for="sort_order" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Sort order</label>
|
||||||
<input id="sort_order" name="sort_order" type="number" min="0" value="{{ old('sort_order', $price->sort_order ?? 0) }}" required class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950">
|
<input id="sort_order" name="sort_order" type="number" min="0"
|
||||||
@error('sort_order')<p class="mt-1 text-sm text-red-500">{{ $message }}</p>@enderror
|
value="{{ old('sort_order', $price->sort_order ?? 0) }}" required
|
||||||
|
class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950">
|
||||||
|
@error('sort_order')
|
||||||
|
<p class="mt-1 text-sm text-red-500">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="lg:col-span-2">
|
<div class="lg:col-span-2">
|
||||||
<label for="description" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Description</label>
|
<label for="description" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Description</label>
|
||||||
<textarea id="description" name="description" rows="3" class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950" placeholder="Short customer-facing description">{{ old('description', $price->description) }}</textarea>
|
<textarea id="description" name="description" rows="3"
|
||||||
@error('description')<p class="mt-1 text-sm text-red-500">{{ $message }}</p>@enderror
|
class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950"
|
||||||
|
placeholder="Short customer-facing description">{{ old('description', $price->description) }}</textarea>
|
||||||
|
@error('description')
|
||||||
|
<p class="mt-1 text-sm text-red-500">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="lg:col-span-2">
|
<div class="lg:col-span-2">
|
||||||
<label for="features" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Features</label>
|
<label for="features" class="text-sm font-semibold text-zinc-700 dark:text-zinc-200">Features</label>
|
||||||
<textarea id="features" name="features" rows="6" class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950" placeholder="One feature per line">{{ $featuresText }}</textarea>
|
<textarea id="features" name="features" rows="6"
|
||||||
@error('features')<p class="mt-1 text-sm text-red-500">{{ $message }}</p>@enderror
|
class="mt-2 w-full rounded-xl border-zinc-300 bg-white px-4 py-3 text-sm dark:border-zinc-700 dark:bg-zinc-950"
|
||||||
|
placeholder="One feature per line">{{ $featuresText }}</textarea>
|
||||||
|
@error('features')
|
||||||
|
<p class="mt-1 text-sm text-red-500">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap gap-4 lg:col-span-2">
|
<div class="flex flex-wrap gap-4 lg:col-span-2">
|
||||||
<label class="inline-flex items-center gap-2 rounded-xl border border-zinc-200 bg-zinc-50 px-4 py-3 text-sm font-semibold dark:border-zinc-800 dark:bg-zinc-950">
|
<label
|
||||||
<input type="checkbox" name="is_featured" value="1" @checked(old('is_featured', $price->is_featured)) class="rounded border-zinc-300">
|
class="inline-flex items-center gap-2 rounded-xl border border-zinc-200 bg-zinc-50 px-4 py-3 text-sm font-semibold dark:border-zinc-800 dark:bg-zinc-950">
|
||||||
|
<input type="checkbox" name="is_featured" value="1" @checked(old('is_featured', $price->is_featured))
|
||||||
|
class="rounded border-zinc-300">
|
||||||
Featured price
|
Featured price
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="inline-flex items-center gap-2 rounded-xl border border-zinc-200 bg-zinc-50 px-4 py-3 text-sm font-semibold dark:border-zinc-800 dark:bg-zinc-950">
|
<label
|
||||||
<input type="checkbox" name="is_active" value="1" @checked(old('is_active', $price->is_active ?? true)) class="rounded border-zinc-300">
|
class="inline-flex items-center gap-2 rounded-xl border border-zinc-200 bg-zinc-50 px-4 py-3 text-sm font-semibold dark:border-zinc-800 dark:bg-zinc-950">
|
||||||
|
<input type="checkbox" name="is_active" value="1" @checked(old('is_active', $price->is_active ?? true))
|
||||||
|
class="rounded border-zinc-300">
|
||||||
Active
|
Active
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
<x-layouts::app :title="__('Create Price')">
|
<x-layouts::app :title="__('Create Price')">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Administration" title="Create Price"
|
||||||
eyebrow="Administration"
|
|
||||||
title="Create Price"
|
|
||||||
description="Add a professional pricing card with billing values, feature bullets and visibility controls."
|
description="Add a professional pricing card with billing values, feature bullets and visibility controls."
|
||||||
icon="fa-solid fa-circle-plus"
|
icon="fa-solid fa-circle-plus">
|
||||||
>
|
<a href="{{ route('platform.prices.index') }}" wire:navigate
|
||||||
<a href="{{ route('platform.prices.index') }}" wire:navigate class="rounded-xl bg-white px-4 py-3 text-sm font-bold text-slate-950 shadow-lg hover:bg-cyan-50">
|
class="rounded-xl bg-white px-4 py-3 text-sm font-bold text-slate-950 shadow-lg hover:bg-cyan-50">
|
||||||
Back to prices
|
Back to prices
|
||||||
</a>
|
</a>
|
||||||
</x-wms.page-hero>
|
</x-wms.page-hero>
|
||||||
@@ -16,10 +14,12 @@
|
|||||||
@include('platform::prices._form')
|
@include('platform::prices._form')
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-end gap-3 border-t border-zinc-100 pt-5 dark:border-zinc-800">
|
<div class="flex flex-wrap justify-end gap-3 border-t border-zinc-100 pt-5 dark:border-zinc-800">
|
||||||
<a href="{{ route('platform.prices.index') }}" wire:navigate class="rounded-xl border border-zinc-200 px-5 py-3 text-sm font-semibold text-zinc-700 dark:border-zinc-700 dark:text-zinc-200">
|
<a href="{{ route('platform.prices.index') }}" wire:navigate
|
||||||
|
class="rounded-xl border border-zinc-200 px-5 py-3 text-sm font-semibold text-zinc-700 dark:border-zinc-700 dark:text-zinc-200">
|
||||||
Cancel
|
Cancel
|
||||||
</a>
|
</a>
|
||||||
<button type="submit" class="rounded-xl bg-cyan-600 px-5 py-3 text-sm font-bold text-white shadow-lg shadow-cyan-950/20 hover:bg-cyan-500">
|
<button type="submit"
|
||||||
|
class="rounded-xl bg-cyan-600 px-5 py-3 text-sm font-bold text-white shadow-lg shadow-cyan-950/20 hover:bg-cyan-500">
|
||||||
Create price
|
Create price
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
<x-layouts::app :title="__('Edit Price')">
|
<x-layouts::app :title="__('Edit Price')">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Administration" :title="'Edit ' . $price->name"
|
||||||
eyebrow="Administration"
|
|
||||||
:title="'Edit ' . $price->name"
|
|
||||||
description="Update pricing, feature text and card visibility while keeping the platform pricing display consistent."
|
description="Update pricing, feature text and card visibility while keeping the platform pricing display consistent."
|
||||||
icon="fa-solid fa-pen-to-square"
|
icon="fa-solid fa-pen-to-square">
|
||||||
>
|
<a href="{{ route('platform.prices.index') }}" wire:navigate
|
||||||
<a href="{{ route('platform.prices.index') }}" wire:navigate class="rounded-xl bg-white px-4 py-3 text-sm font-bold text-slate-950 shadow-lg hover:bg-cyan-50">
|
class="rounded-xl bg-white px-4 py-3 text-sm font-bold text-slate-950 shadow-lg hover:bg-cyan-50">
|
||||||
Back to prices
|
Back to prices
|
||||||
</a>
|
</a>
|
||||||
</x-wms.page-hero>
|
</x-wms.page-hero>
|
||||||
@@ -17,10 +15,12 @@
|
|||||||
@include('platform::prices._form')
|
@include('platform::prices._form')
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-end gap-3 border-t border-zinc-100 pt-5 dark:border-zinc-800">
|
<div class="flex flex-wrap justify-end gap-3 border-t border-zinc-100 pt-5 dark:border-zinc-800">
|
||||||
<a href="{{ route('platform.prices.index') }}" wire:navigate class="rounded-xl border border-zinc-200 px-5 py-3 text-sm font-semibold text-zinc-700 dark:border-zinc-700 dark:text-zinc-200">
|
<a href="{{ route('platform.prices.index') }}" wire:navigate
|
||||||
|
class="rounded-xl border border-zinc-200 px-5 py-3 text-sm font-semibold text-zinc-700 dark:border-zinc-700 dark:text-zinc-200">
|
||||||
Cancel
|
Cancel
|
||||||
</a>
|
</a>
|
||||||
<button type="submit" class="rounded-xl bg-cyan-600 px-5 py-3 text-sm font-bold text-white shadow-lg shadow-cyan-950/20 hover:bg-cyan-500">
|
<button type="submit"
|
||||||
|
class="rounded-xl bg-cyan-600 px-5 py-3 text-sm font-bold text-white shadow-lg shadow-cyan-950/20 hover:bg-cyan-500">
|
||||||
Save changes
|
Save changes
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,17 +1,16 @@
|
|||||||
<x-layouts::app :title="__('Platform Prices')">
|
<x-layouts::app :title="__('Platform Prices')">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Administration" title="Pricing Administration"
|
||||||
eyebrow="Administration"
|
|
||||||
title="Pricing Administration"
|
|
||||||
description="Create, edit and publish the platform pricing cards shown under Platform."
|
description="Create, edit and publish the platform pricing cards shown under Platform."
|
||||||
icon="fa-solid fa-tags"
|
icon="fa-solid fa-tags">
|
||||||
>
|
<a href="{{ route('platform.prices.create') }}" wire:navigate
|
||||||
<a href="{{ route('platform.prices.create') }}" wire:navigate class="rounded-xl bg-white px-4 py-3 text-sm font-bold text-slate-950 shadow-lg hover:bg-cyan-50">
|
class="rounded-xl bg-white px-4 py-3 text-sm font-bold text-slate-950 shadow-lg hover:bg-cyan-50">
|
||||||
Add price
|
Add price
|
||||||
</a>
|
</a>
|
||||||
</x-wms.page-hero>
|
</x-wms.page-hero>
|
||||||
@if (session('status'))
|
@if (session('status'))
|
||||||
<div class="rounded-2xl border border-emerald-200 bg-emerald-50 px-5 py-4 text-sm font-semibold text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200">
|
<div
|
||||||
|
class="rounded-2xl border border-emerald-200 bg-emerald-50 px-5 py-4 text-sm font-semibold text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200">
|
||||||
{{ session('status') }}
|
{{ session('status') }}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@@ -23,12 +22,16 @@
|
|||||||
$isAdvanced = $price->code === 'advanced';
|
$isAdvanced = $price->code === 'advanced';
|
||||||
$headerClass = $isAdvanced
|
$headerClass = $isAdvanced
|
||||||
? 'from-cyan-500 to-blue-600'
|
? 'from-cyan-500 to-blue-600'
|
||||||
: ($isBasic ? 'from-slate-700 to-slate-900' : 'from-indigo-600 to-violet-700');
|
: ($isBasic
|
||||||
|
? 'from-slate-700 to-slate-900'
|
||||||
|
: 'from-indigo-600 to-violet-700');
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<article class="relative overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm transition hover:-translate-y-0.5 hover:shadow-xl dark:border-zinc-800 dark:bg-zinc-900">
|
<article
|
||||||
|
class="relative overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm transition hover:-translate-y-0.5 hover:shadow-xl dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
@if ($price->is_featured)
|
@if ($price->is_featured)
|
||||||
<div class="absolute right-4 top-4 z-10 rounded-full bg-white px-3 py-1 text-xs font-extrabold uppercase tracking-wide text-cyan-700 shadow">
|
<div
|
||||||
|
class="absolute right-4 top-4 z-10 rounded-full bg-white px-3 py-1 text-xs font-extrabold uppercase tracking-wide text-cyan-700 shadow">
|
||||||
Featured
|
Featured
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@@ -42,8 +45,10 @@
|
|||||||
<h2 class="mt-2 text-2xl font-black tracking-tight">{{ $price->name }}</h2>
|
<h2 class="mt-2 text-2xl font-black tracking-tight">{{ $price->name }}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="grid h-11 w-11 place-items-center rounded-2xl bg-white/15 text-lg backdrop-blur">
|
<span
|
||||||
<i class="fa-solid {{ $isBasic ? 'fa-box' : ($isAdvanced ? 'fa-layer-group' : 'fa-crown') }}" aria-hidden="true"></i>
|
class="grid h-11 w-11 place-items-center rounded-2xl bg-white/15 text-lg backdrop-blur">
|
||||||
|
<i class="fa-solid {{ $isBasic ? 'fa-box' : ($isAdvanced ? 'fa-layer-group' : 'fa-crown') }}"
|
||||||
|
aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -78,19 +83,24 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="mt-6 flex items-center justify-between gap-3 border-t border-zinc-100 pt-4 dark:border-zinc-800">
|
<div
|
||||||
<span class="rounded-full px-3 py-1 text-xs font-bold {{ $price->is_active ? 'bg-emerald-100 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-200' : 'bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-300' }}">
|
class="mt-6 flex items-center justify-between gap-3 border-t border-zinc-100 pt-4 dark:border-zinc-800">
|
||||||
|
<span
|
||||||
|
class="rounded-full px-3 py-1 text-xs font-bold {{ $price->is_active ? 'bg-emerald-100 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-200' : 'bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-300' }}">
|
||||||
{{ $price->is_active ? 'Active' : 'Hidden' }}
|
{{ $price->is_active ? 'Active' : 'Hidden' }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<a href="{{ route('platform.prices.edit', $price) }}" wire:navigate class="rounded-lg border border-zinc-200 px-3 py-2 text-sm font-semibold text-zinc-700 hover:border-cyan-400 hover:text-cyan-700 dark:border-zinc-700 dark:text-zinc-200">
|
<a href="{{ route('platform.prices.edit', $price) }}" wire:navigate
|
||||||
|
class="rounded-lg border border-zinc-200 px-3 py-2 text-sm font-semibold text-zinc-700 hover:border-cyan-400 hover:text-cyan-700 dark:border-zinc-700 dark:text-zinc-200">
|
||||||
Edit
|
Edit
|
||||||
</a>
|
</a>
|
||||||
<form method="POST" action="{{ route('platform.prices.destroy', $price) }}" onsubmit="return confirm('Delete this price?');">
|
<form method="POST" action="{{ route('platform.prices.destroy', $price) }}"
|
||||||
|
onsubmit="return confirm('Delete this price?');">
|
||||||
@csrf
|
@csrf
|
||||||
@method('DELETE')
|
@method('DELETE')
|
||||||
<button type="submit" class="rounded-lg border border-red-200 px-3 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 dark:border-red-900/70 dark:hover:bg-red-950/40">
|
<button type="submit"
|
||||||
|
class="rounded-lg border border-red-200 px-3 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 dark:border-red-900/70 dark:hover:bg-red-950/40">
|
||||||
Delete
|
Delete
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
@@ -99,7 +109,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
@empty
|
@empty
|
||||||
<article class="rounded-3xl border border-dashed border-zinc-300 bg-white p-6 text-sm text-zinc-500 shadow-sm dark:border-zinc-700 dark:bg-zinc-900 lg:col-span-3">
|
<article
|
||||||
|
class="rounded-3xl border border-dashed border-zinc-300 bg-white p-6 text-sm text-zinc-500 shadow-sm dark:border-zinc-700 dark:bg-zinc-900 lg:col-span-3">
|
||||||
No pricing plans have been created yet.
|
No pricing plans have been created yet.
|
||||||
</article>
|
</article>
|
||||||
@endforelse
|
@endforelse
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
<x-layouts::app :title="__('Pricing')">
|
<x-layouts::app :title="__('Pricing')">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Platform" title="Pricing"
|
||||||
eyebrow="Platform"
|
description="Clear platform pricing for Basic, Advanced and Pro access." icon="fa-solid fa-tags" />
|
||||||
title="Pricing"
|
|
||||||
description="Clear platform pricing for Basic, Advanced and Pro access."
|
|
||||||
icon="fa-solid fa-tags"
|
|
||||||
/>
|
|
||||||
<section class="grid gap-5 lg:grid-cols-3">
|
<section class="grid gap-5 lg:grid-cols-3">
|
||||||
@forelse ($prices as $price)
|
@forelse ($prices as $price)
|
||||||
@php
|
@php
|
||||||
@@ -13,22 +9,30 @@
|
|||||||
$isAdvanced = $price->code === 'advanced';
|
$isAdvanced = $price->code === 'advanced';
|
||||||
$headerClass = $isAdvanced
|
$headerClass = $isAdvanced
|
||||||
? 'from-cyan-500 to-blue-600'
|
? 'from-cyan-500 to-blue-600'
|
||||||
: ($isBasic ? 'from-slate-700 to-slate-950' : 'from-indigo-600 to-violet-700');
|
: ($isBasic
|
||||||
|
? 'from-slate-700 to-slate-950'
|
||||||
|
: 'from-indigo-600 to-violet-700');
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<article class="relative overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm transition hover:-translate-y-0.5 hover:shadow-xl dark:border-zinc-800 dark:bg-zinc-900">
|
<article
|
||||||
|
class="relative overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm transition hover:-translate-y-0.5 hover:shadow-xl dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
@if ($price->is_featured)
|
@if ($price->is_featured)
|
||||||
<div class="absolute right-4 top-4 z-10 rounded-full bg-white px-3 py-1 text-xs font-extrabold uppercase tracking-wide text-cyan-700 shadow">{{ $price->badge_label ?: 'Popular' }}</div>
|
<div
|
||||||
|
class="absolute right-4 top-4 z-10 rounded-full bg-white px-3 py-1 text-xs font-extrabold uppercase tracking-wide text-cyan-700 shadow">
|
||||||
|
{{ $price->badge_label ?: 'Popular' }}</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="bg-gradient-to-br {{ $headerClass }} p-6 text-white">
|
<div class="bg-gradient-to-br {{ $headerClass }} p-6 text-white">
|
||||||
<div class="flex items-start justify-between gap-4">
|
<div class="flex items-start justify-between gap-4">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-xs font-bold uppercase tracking-[0.24em] text-white/70">{{ $price->badge_label ?: 'Plan' }}</p>
|
<p class="text-xs font-bold uppercase tracking-[0.24em] text-white/70">
|
||||||
|
{{ $price->badge_label ?: 'Plan' }}</p>
|
||||||
<h2 class="mt-2 text-3xl font-black tracking-tight">{{ $price->name }}</h2>
|
<h2 class="mt-2 text-3xl font-black tracking-tight">{{ $price->name }}</h2>
|
||||||
</div>
|
</div>
|
||||||
<span class="grid h-12 w-12 place-items-center rounded-2xl bg-white/15 text-xl backdrop-blur">
|
<span
|
||||||
<i class="fa-solid {{ $isBasic ? 'fa-box' : ($isAdvanced ? 'fa-layer-group' : 'fa-crown') }}" aria-hidden="true"></i>
|
class="grid h-12 w-12 place-items-center rounded-2xl bg-white/15 text-xl backdrop-blur">
|
||||||
|
<i class="fa-solid {{ $isBasic ? 'fa-box' : ($isAdvanced ? 'fa-layer-group' : 'fa-crown') }}"
|
||||||
|
aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="mt-4 text-sm leading-6 text-white/80">{{ $price->strapline }}</p>
|
<p class="mt-4 text-sm leading-6 text-white/80">{{ $price->strapline }}</p>
|
||||||
@@ -36,15 +40,19 @@
|
|||||||
|
|
||||||
<div class="p-6">
|
<div class="p-6">
|
||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<span class="text-4xl font-black tracking-tight text-zinc-950 dark:text-white">{{ $price->formatAmount($price->monthly_amount) }}</span>
|
<span
|
||||||
|
class="text-4xl font-black tracking-tight text-zinc-950 dark:text-white">{{ $price->formatAmount($price->monthly_amount) }}</span>
|
||||||
<span class="pb-1 text-sm font-semibold text-zinc-500">/ month</span>
|
<span class="pb-1 text-sm font-semibold text-zinc-500">/ month</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($price->annual_amount)
|
@if ($price->annual_amount)
|
||||||
<p class="mt-2 text-sm text-zinc-500">Annual: <span class="font-semibold text-zinc-700 dark:text-zinc-200">{{ $price->formatAmount($price->annual_amount) }}</span></p>
|
<p class="mt-2 text-sm text-zinc-500">Annual: <span
|
||||||
|
class="font-semibold text-zinc-700 dark:text-zinc-200">{{ $price->formatAmount($price->annual_amount) }}</span>
|
||||||
|
</p>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<p class="mt-4 min-h-12 text-sm leading-6 text-zinc-600 dark:text-zinc-300">{{ $price->description }}</p>
|
<p class="mt-4 min-h-12 text-sm leading-6 text-zinc-600 dark:text-zinc-300">
|
||||||
|
{{ $price->description }}</p>
|
||||||
|
|
||||||
<ul class="mt-5 space-y-3 text-sm text-zinc-700 dark:text-zinc-200">
|
<ul class="mt-5 space-y-3 text-sm text-zinc-700 dark:text-zinc-200">
|
||||||
@foreach ($price->featureRows() as $feature)
|
@foreach ($price->featureRows() as $feature)
|
||||||
@@ -57,9 +65,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
@empty
|
@empty
|
||||||
<article class="rounded-3xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
<article
|
||||||
|
class="rounded-3xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
<h2 class="text-xl font-bold">No active prices</h2>
|
<h2 class="text-xl font-bold">No active prices</h2>
|
||||||
<p class="mt-2 text-sm text-zinc-500">Add active pricing records from Administration to populate this page.</p>
|
<p class="mt-2 text-sm text-zinc-500">Add active pricing records from Administration to populate
|
||||||
|
this page.</p>
|
||||||
</article>
|
</article>
|
||||||
@endforelse
|
@endforelse
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -1,17 +1,13 @@
|
|||||||
<x-layouts::app :title="__('Pricing')">
|
<x-layouts::app :title="__('Pricing')">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="MPBA WMS" title="Pricing"
|
||||||
eyebrow="MPBA WMS"
|
|
||||||
title="Pricing"
|
|
||||||
description="Platform pricing workspace for plan visibility and commercial administration."
|
description="Platform pricing workspace for plan visibility and commercial administration."
|
||||||
:stats="[
|
:stats="[['label' => 'Status', 'value' => 'Ready', 'icon' => 'fa-solid fa-circle-check']]" />
|
||||||
['label' => 'Status', 'value' => 'Ready', 'icon' => 'fa-solid fa-circle-check'],
|
|
||||||
]"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<section class="rounded-3xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
<section class="rounded-3xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
<h2 class="text-lg font-bold text-zinc-900 dark:text-white">Pricing workspace</h2>
|
<h2 class="text-lg font-bold text-zinc-900 dark:text-white">Pricing workspace</h2>
|
||||||
<p class="mt-2 text-sm text-zinc-500 dark:text-zinc-400">Use the Platform pricing pages to maintain Basic, Advanced and Pro plan cards.</p>
|
<p class="mt-2 text-sm text-zinc-500 dark:text-zinc-400">Use the Platform pricing pages to maintain Basic,
|
||||||
|
Advanced and Pro plan cards.</p>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</x-layouts::app>
|
</x-layouts::app>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
@@ -10,11 +11,14 @@
|
|||||||
{{-- <link rel="stylesheet" href="{{ mix('css/pricing.css') }}"> --}}
|
{{-- <link rel="stylesheet" href="{{ mix('css/pricing.css') }}"> --}}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);" aria-hidden="true"></div>
|
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);"
|
||||||
|
aria-hidden="true"></div>
|
||||||
@yield('content')
|
@yield('content')
|
||||||
|
|
||||||
{{-- Laravel Mix - JS File --}}
|
{{-- Laravel Mix - JS File --}}
|
||||||
{{-- <script src="{{ mix('js/pricing.js') }}"></script> --}}
|
{{-- <script src="{{ mix('js/pricing.js') }}"></script> --}}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-replenishment">
|
<div class="container-fluid py-4 module-page module-replenishment">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Replenishment"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Replenishment"
|
|
||||||
description="Configure replenishment thresholds, review stock gaps, and monitor refill activity."
|
description="Configure replenishment thresholds, review stock gaps, and monitor refill activity."
|
||||||
icon="fa-solid fa-arrows-rotate"
|
icon="fa-solid fa-arrows-rotate" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">Replenishment workbench</h2>
|
<h2 class="h5 mb-1">Replenishment workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Replenishment Rules</td>
|
<td>Replenishment Rules</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Minimum Stock</td>
|
<td>Minimum Stock</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Suggested Transfers</td>
|
<td>Suggested Transfers</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Exception Queue</td>
|
<td>Exception Queue</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-reporting">
|
<div class="container-fluid py-4 module-page module-reporting">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Reporting"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Reporting"
|
|
||||||
description="Provide operational reports for closed orders, user efficiency, and transaction history."
|
description="Provide operational reports for closed orders, user efficiency, and transaction history."
|
||||||
icon="fa-solid fa-chart-column"
|
icon="fa-solid fa-chart-column" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">Reporting workbench</h2>
|
<h2 class="h5 mb-1">Reporting workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Closed Order Lines</td>
|
<td>Closed Order Lines</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Daily User Efficiency</td>
|
<td>Daily User Efficiency</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Export Centre</td>
|
<td>Export Centre</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Report Filters</td>
|
<td>Report Filters</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
@vite([
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||||
'resources/css/app.css',
|
|
||||||
'resources/js/app.js',
|
|
||||||
])
|
|
||||||
<div class="hd-helpdesk-surface space-y-6" dusk="helpdesk-ticket-show">
|
<div class="hd-helpdesk-surface space-y-6" dusk="helpdesk-ticket-show">
|
||||||
<div class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
|
||||||
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
||||||
<div>
|
<div>
|
||||||
@@ -13,14 +11,17 @@
|
|||||||
<flux:badge color="{{ $ticket->priority->color }}">{{ $ticket->priority->name }}</flux:badge>
|
<flux:badge color="{{ $ticket->priority->color }}">{{ $ticket->priority->name }}</flux:badge>
|
||||||
</div>
|
</div>
|
||||||
<h1 class="text-3xl font-semibold tracking-tight">{{ $ticket->subject }}</h1>
|
<h1 class="text-3xl font-semibold tracking-tight">{{ $ticket->subject }}</h1>
|
||||||
<p class="mt-2 text-sm text-blue-100/90">Raised by {{ $ticket->owner?->name ?? 'Unknown user' }} · Assigned to {{ $ticket->agent?->name ?? 'Unassigned' }}</p>
|
<p class="mt-2 text-sm text-blue-100/90">Raised by {{ $ticket->owner?->name ?? 'Unknown user' }} ·
|
||||||
|
Assigned to {{ $ticket->agent?->name ?? 'Unassigned' }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
<a href="{{ route('helpdesk.tickets.index') }}" wire:navigate class="inline-flex items-center rounded-xl bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">
|
<a href="{{ route('helpdesk.tickets.index') }}" wire:navigate
|
||||||
|
class="inline-flex items-center rounded-xl bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700">
|
||||||
<i class="fa-solid fa-arrow-left mr-2" aria-hidden="true"></i> Back
|
<i class="fa-solid fa-arrow-left mr-2" aria-hidden="true"></i> Back
|
||||||
</a>
|
</a>
|
||||||
@can('update', $ticket)
|
@can('update', $ticket)
|
||||||
<a href="{{ route('helpdesk.tickets.edit', $ticket) }}" wire:navigate class="inline-flex items-center rounded-xl bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-700">
|
<a href="{{ route('helpdesk.tickets.edit', $ticket) }}" wire:navigate
|
||||||
|
class="inline-flex items-center rounded-xl bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-700">
|
||||||
<i class="fa-solid fa-pen-to-square mr-2" aria-hidden="true"></i> Edit
|
<i class="fa-solid fa-pen-to-square mr-2" aria-hidden="true"></i> Edit
|
||||||
</a>
|
</a>
|
||||||
@endcan
|
@endcan
|
||||||
@@ -31,19 +32,22 @@
|
|||||||
|
|
||||||
<div class="grid gap-6 lg:grid-cols-3">
|
<div class="grid gap-6 lg:grid-cols-3">
|
||||||
<div class="space-y-6 lg:col-span-2">
|
<div class="space-y-6 lg:col-span-2">
|
||||||
<article class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<article
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<div class="prose max-w-none dark:prose-invert">
|
<div class="prose max-w-none dark:prose-invert">
|
||||||
{!! $ticket->body !!}
|
{!! $ticket->body !!}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
@if ($ticket->attachments->isNotEmpty())
|
@if ($ticket->attachments->isNotEmpty())
|
||||||
<div class="overflow-hidden rounded-2xl border border-blue-200 bg-white shadow-sm dark:border-blue-900/60 dark:bg-zinc-900">
|
<div
|
||||||
|
class="overflow-hidden rounded-2xl border border-blue-200 bg-white shadow-sm dark:border-blue-900/60 dark:bg-zinc-900">
|
||||||
<div class="bg-gradient-to-r from-blue-700 via-sky-600 to-emerald-600 px-6 py-4 text-white">
|
<div class="bg-gradient-to-r from-blue-700 via-sky-600 to-emerald-600 px-6 py-4 text-white">
|
||||||
<div class="flex items-center justify-between gap-4">
|
<div class="flex items-center justify-between gap-4">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="flex items-center gap-2 text-base font-extrabold text-white drop-shadow-sm">
|
<h2 class="flex items-center gap-2 text-base font-extrabold text-white drop-shadow-sm">
|
||||||
<span class="inline-flex h-9 w-9 items-center justify-center rounded-xl bg-white/15 ring-1 ring-white/25">
|
<span
|
||||||
|
class="inline-flex h-9 w-9 items-center justify-center rounded-xl bg-white/15 ring-1 ring-white/25">
|
||||||
<i class="fa-solid fa-paperclip" aria-hidden="true"></i>
|
<i class="fa-solid fa-paperclip" aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
Ticket attachments
|
Ticket attachments
|
||||||
@@ -53,17 +57,24 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="inline-flex items-center gap-2 rounded-full bg-emerald-100 px-3 py-1 text-xs font-extrabold text-emerald-800 shadow-sm ring-1 ring-white/70">
|
<span
|
||||||
<span class="inline-flex h-2 w-2 rounded-full bg-emerald-500"></span>{{ $ticket->attachments->count() }} file(s)
|
class="inline-flex items-center gap-2 rounded-full bg-emerald-100 px-3 py-1 text-xs font-extrabold text-emerald-800 shadow-sm ring-1 ring-white/70">
|
||||||
|
<span
|
||||||
|
class="inline-flex h-2 w-2 rounded-full bg-emerald-500"></span>{{ $ticket->attachments->count() }}
|
||||||
|
file(s)
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid gap-3 p-6 sm:grid-cols-2">
|
<div class="grid gap-3 p-6 sm:grid-cols-2">
|
||||||
@foreach ($ticket->attachments as $attachment)
|
@foreach ($ticket->attachments as $attachment)
|
||||||
<a href="{{ route('helpdesk.attachments.download', $attachment->id) }}" target="_blank" class="rounded-xl border border-zinc-200 p-3 text-sm hover:bg-zinc-50 dark:border-zinc-700 dark:hover:bg-zinc-800">
|
<a href="{{ route('helpdesk.attachments.download', $attachment->id) }}" target="_blank"
|
||||||
<div class="font-medium text-zinc-900 dark:text-zinc-100">{{ $attachment->original_name ?? $attachment->original_filename ?? $attachment->filename ?? $attachment->file_name ?? basename($attachment->path ?? $attachment->file_path ?? '') }}</div>
|
class="rounded-xl border border-zinc-200 p-3 text-sm hover:bg-zinc-50 dark:border-zinc-700 dark:hover:bg-zinc-800">
|
||||||
<div class="text-xs text-zinc-500">{{ Number::fileSize($attachment->size ?? $attachment->size_bytes ?? 0) }}</div>
|
<div class="font-medium text-zinc-900 dark:text-zinc-100">
|
||||||
|
{{ $attachment->original_name ?? ($attachment->original_filename ?? ($attachment->filename ?? ($attachment->file_name ?? basename($attachment->path ?? ($attachment->file_path ?? ''))))) }}
|
||||||
|
</div>
|
||||||
|
<div class="text-xs text-zinc-500">
|
||||||
|
{{ Number::fileSize($attachment->size ?? ($attachment->size_bytes ?? 0)) }}</div>
|
||||||
</a>
|
</a>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@@ -74,13 +85,19 @@
|
|||||||
<h2 class="text-lg font-semibold text-zinc-900 dark:text-white">Conversation</h2>
|
<h2 class="text-lg font-semibold text-zinc-900 dark:text-white">Conversation</h2>
|
||||||
|
|
||||||
@if ($ticket->comments->isNotEmpty())
|
@if ($ticket->comments->isNotEmpty())
|
||||||
@include('helpdesk::partials.comment-thread', ['comments' => $ticket->comments, 'level' => 0])
|
@include('helpdesk::partials.comment-thread', [
|
||||||
|
'comments' => $ticket->comments,
|
||||||
|
'level' => 0,
|
||||||
|
])
|
||||||
@else
|
@else
|
||||||
<div class="rounded-2xl border border-dashed border-zinc-300 p-8 text-center text-zinc-500 dark:border-zinc-700">No responses yet.</div>
|
<div
|
||||||
|
class="rounded-2xl border border-dashed border-zinc-300 p-8 text-center text-zinc-500 dark:border-zinc-700">
|
||||||
|
No responses yet.</div>
|
||||||
@endif
|
@endif
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<form wire:submit="addComment" class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<form wire:submit="addComment"
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<h2 class="mb-4 text-base font-semibold text-zinc-900 dark:text-white">Add reply</h2>
|
<h2 class="mb-4 text-base font-semibold text-zinc-900 dark:text-white">Add reply</h2>
|
||||||
@if ($cannedResponses->isNotEmpty())
|
@if ($cannedResponses->isNotEmpty())
|
||||||
<div class="mb-4 grid gap-3 md:grid-cols-[1fr_auto]">
|
<div class="mb-4 grid gap-3 md:grid-cols-[1fr_auto]">
|
||||||
@@ -91,12 +108,16 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
</flux:select>
|
</flux:select>
|
||||||
<div class="flex items-end">
|
<div class="flex items-end">
|
||||||
<flux:button type="button" wire:click="applyCannedResponse" variant="ghost" icon="document-duplicate" class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Insert response</flux:button>
|
<flux:button type="button" wire:click="applyCannedResponse" variant="ghost"
|
||||||
|
icon="document-duplicate"
|
||||||
|
class="!bg-blue-600 !text-white hover:!bg-blue-700 focus:!ring-blue-400/60">Insert
|
||||||
|
response</flux:button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<x-helpdesk::html-editor dusk="ticket-comment-editor" wire:model="commentBody" label="Comment" rows="5" placeholder="Write a professional response..." />
|
<x-helpdesk::html-editor dusk="ticket-comment-editor" wire:model="commentBody" label="Comment"
|
||||||
|
rows="5" placeholder="Write a professional response..." />
|
||||||
|
|
||||||
@can('update', $ticket)
|
@can('update', $ticket)
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
@@ -106,12 +127,17 @@
|
|||||||
|
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<label class="mb-2 block text-sm font-medium text-zinc-700 dark:text-zinc-200">Attach files</label>
|
<label class="mb-2 block text-sm font-medium text-zinc-700 dark:text-zinc-200">Attach files</label>
|
||||||
<input wire:model="attachments" type="file" multiple class="block w-full rounded-lg border border-zinc-300 bg-white p-2 text-sm dark:border-zinc-700 dark:bg-zinc-950" />
|
<input wire:model="attachments" type="file" multiple
|
||||||
@error('attachments.*') <div class="mt-2 text-sm text-red-600">{{ $message }}</div> @enderror
|
class="block w-full rounded-lg border border-zinc-300 bg-white p-2 text-sm dark:border-zinc-700 dark:bg-zinc-950" />
|
||||||
|
@error('attachments.*')
|
||||||
|
<div class="mt-2 text-sm text-red-600">{{ $message }}</div>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-5 flex justify-end">
|
<div class="mt-5 flex justify-end">
|
||||||
<flux:button dusk="post-comment" type="submit" variant="primary" icon="chat-bubble-left-right" class="!bg-emerald-600 !text-white hover:!bg-emerald-700 focus:!ring-emerald-400/60" wire:loading.attr="disabled">
|
<flux:button dusk="post-comment" type="submit" variant="primary" icon="chat-bubble-left-right"
|
||||||
|
class="!bg-emerald-600 !text-white hover:!bg-emerald-700 focus:!ring-emerald-400/60"
|
||||||
|
wire:loading.attr="disabled">
|
||||||
<span wire:loading.remove>Post reply</span>
|
<span wire:loading.remove>Post reply</span>
|
||||||
<span wire:loading>Posting...</span>
|
<span wire:loading>Posting...</span>
|
||||||
</flux:button>
|
</flux:button>
|
||||||
@@ -120,143 +146,224 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<aside class="space-y-6">
|
<aside class="space-y-6">
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<h2 class="mb-4 text-base font-semibold text-zinc-900 dark:text-white">Ticket details</h2>
|
<h2 class="mb-4 text-base font-semibold text-zinc-900 dark:text-white">Ticket details</h2>
|
||||||
<dl class="space-y-3 text-sm">
|
<dl class="space-y-3 text-sm">
|
||||||
<div class="flex justify-between gap-4"><dt class="text-zinc-500">Category</dt><dd>{{ $ticket->category?->name ?? 'None' }}</dd></div>
|
<div class="flex justify-between gap-4">
|
||||||
<div class="flex justify-between gap-4"><dt class="text-zinc-500">Project</dt><dd>{{ $ticket->project?->title ?? 'None' }}</dd></div>
|
<dt class="text-zinc-500">Category</dt>
|
||||||
<div class="flex justify-between gap-4"><dt class="text-zinc-500">Product/service</dt><dd>{{ $ticket->product?->name ?? 'None' }}</dd></div>
|
<dd>{{ $ticket->category?->name ?? 'None' }}</dd>
|
||||||
<div class="flex justify-between gap-4"><dt class="text-zinc-500">Team</dt><dd>{{ $ticket->team?->name ?? 'None' }}</dd></div>
|
</div>
|
||||||
<div class="flex justify-between gap-4"><dt class="text-zinc-500">Created</dt><dd>{{ $ticket->created_at->format('d M Y H:i') }}</dd></div>
|
<div class="flex justify-between gap-4">
|
||||||
<div class="flex justify-between gap-4"><dt class="text-zinc-500">Due</dt><dd>{{ $ticket->due_at?->format('d M Y') ?? 'No due date' }}</dd></div>
|
<dt class="text-zinc-500">Project</dt>
|
||||||
|
<dd>{{ $ticket->project?->title ?? 'None' }}</dd>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-between gap-4">
|
||||||
|
<dt class="text-zinc-500">Product/service</dt>
|
||||||
|
<dd>{{ $ticket->product?->name ?? 'None' }}</dd>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-between gap-4">
|
||||||
|
<dt class="text-zinc-500">Team</dt>
|
||||||
|
<dd>{{ $ticket->team?->name ?? 'None' }}</dd>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-between gap-4">
|
||||||
|
<dt class="text-zinc-500">Created</dt>
|
||||||
|
<dd>{{ $ticket->created_at->format('d M Y H:i') }}</dd>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-between gap-4">
|
||||||
|
<dt class="text-zinc-500">Due</dt>
|
||||||
|
<dd>{{ $ticket->due_at?->format('d M Y') ?? 'No due date' }}</dd>
|
||||||
|
</div>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<h2 class="mb-4 text-base font-semibold text-zinc-900 dark:text-white">SLA metrics</h2>
|
<h2 class="mb-4 text-base font-semibold text-zinc-900 dark:text-white">SLA metrics</h2>
|
||||||
<div class="grid gap-3 text-sm">
|
<div class="grid gap-3 text-sm">
|
||||||
<div class="rounded-xl border {{ $ticket->sla_first_response_breached ? 'border-red-300 bg-red-50 text-red-900 dark:border-red-900 dark:bg-red-950 dark:text-red-100' : 'border-emerald-200 bg-emerald-50 text-emerald-900 dark:border-emerald-900 dark:bg-emerald-950 dark:text-emerald-100' }} p-3">
|
<div
|
||||||
|
class="rounded-xl border {{ $ticket->sla_first_response_breached ? 'border-red-300 bg-red-50 text-red-900 dark:border-red-900 dark:bg-red-950 dark:text-red-100' : 'border-emerald-200 bg-emerald-50 text-emerald-900 dark:border-emerald-900 dark:bg-emerald-950 dark:text-emerald-100' }} p-3">
|
||||||
<div class="text-xs font-semibold uppercase tracking-wide">First response</div>
|
<div class="text-xs font-semibold uppercase tracking-wide">First response</div>
|
||||||
<div class="mt-1">{{ $ticket->first_response_at?->format('d M Y H:i') ?? 'Awaiting response' }}</div>
|
<div class="mt-1">
|
||||||
<div class="mt-1 text-xs opacity-75">Due {{ $ticket->sla_first_response_due_at?->format('d M Y H:i') ?? 'Not set' }}</div>
|
{{ $ticket->first_response_at?->format('d M Y H:i') ?? 'Awaiting response' }}</div>
|
||||||
|
<div class="mt-1 text-xs opacity-75">Due
|
||||||
|
{{ $ticket->sla_first_response_due_at?->format('d M Y H:i') ?? 'Not set' }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="rounded-xl border {{ $ticket->sla_resolution_breached ? 'border-red-300 bg-red-50 text-red-900 dark:border-red-900 dark:bg-red-950 dark:text-red-100' : 'border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-900 dark:bg-blue-950 dark:text-blue-100' }} p-3">
|
<div
|
||||||
|
class="rounded-xl border {{ $ticket->sla_resolution_breached ? 'border-red-300 bg-red-50 text-red-900 dark:border-red-900 dark:bg-red-950 dark:text-red-100' : 'border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-900 dark:bg-blue-950 dark:text-blue-100' }} p-3">
|
||||||
<div class="text-xs font-semibold uppercase tracking-wide">Resolution</div>
|
<div class="text-xs font-semibold uppercase tracking-wide">Resolution</div>
|
||||||
<div class="mt-1">{{ $ticket->completed_at?->format('d M Y H:i') ?? 'Open' }}</div>
|
<div class="mt-1">{{ $ticket->completed_at?->format('d M Y H:i') ?? 'Open' }}</div>
|
||||||
<div class="mt-1 text-xs opacity-75">Due {{ $ticket->sla_resolution_due_at?->format('d M Y H:i') ?? 'Not set' }}</div>
|
<div class="mt-1 text-xs opacity-75">Due
|
||||||
|
{{ $ticket->sla_resolution_due_at?->format('d M Y H:i') ?? 'Not set' }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2 gap-2 text-center">
|
<div class="grid grid-cols-2 gap-2 text-center">
|
||||||
<div class="rounded-xl border border-zinc-200 p-3 dark:border-zinc-700"><div class="text-xl font-semibold">{{ $ticket->public_replies_count }}</div><div class="text-xs text-zinc-500">Public replies</div></div>
|
<div class="rounded-xl border border-zinc-200 p-3 dark:border-zinc-700">
|
||||||
<div class="rounded-xl border border-zinc-200 p-3 dark:border-zinc-700"><div class="text-xl font-semibold">{{ $ticket->time_spent_minutes }}</div><div class="text-xs text-zinc-500">Minutes logged</div></div>
|
<div class="text-xl font-semibold">{{ $ticket->public_replies_count }}</div>
|
||||||
|
<div class="text-xs text-zinc-500">Public replies</div>
|
||||||
|
</div>
|
||||||
|
<div class="rounded-xl border border-zinc-200 p-3 dark:border-zinc-700">
|
||||||
|
<div class="text-xl font-semibold">{{ $ticket->time_spent_minutes }}</div>
|
||||||
|
<div class="text-xs text-zinc-500">Minutes logged</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<h2 class="mb-4 text-base font-semibold text-zinc-900 dark:text-white">Requester profile</h2>
|
<h2 class="mb-4 text-base font-semibold text-zinc-900 dark:text-white">Requester profile</h2>
|
||||||
<dl class="space-y-3 text-sm">
|
<dl class="space-y-3 text-sm">
|
||||||
<div class="flex justify-between gap-4"><dt class="text-zinc-500">Name</dt><dd>{{ $ticket->owner?->name ?? 'Unknown' }}</dd></div>
|
<div class="flex justify-between gap-4">
|
||||||
<div class="flex justify-between gap-4"><dt class="text-zinc-500">Email</dt><dd class="truncate">{{ $ticket->owner?->email ?? 'None' }}</dd></div>
|
<dt class="text-zinc-500">Name</dt>
|
||||||
<div class="flex justify-between gap-4"><dt class="text-zinc-500">Company</dt><dd>{{ $ticket->owner?->company?->name ?? 'Current company' }}</dd></div>
|
<dd>{{ $ticket->owner?->name ?? 'Unknown' }}</dd>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-between gap-4">
|
||||||
|
<dt class="text-zinc-500">Email</dt>
|
||||||
|
<dd class="truncate">{{ $ticket->owner?->email ?? 'None' }}</dd>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-between gap-4">
|
||||||
|
<dt class="text-zinc-500">Company</dt>
|
||||||
|
<dd>{{ $ticket->owner?->company?->name ?? 'Current company' }}</dd>
|
||||||
|
</div>
|
||||||
</dl>
|
</dl>
|
||||||
@if ($ticket->tags->isNotEmpty())
|
@if ($ticket->tags->isNotEmpty())
|
||||||
<div class="mt-4 flex flex-wrap gap-2">
|
<div class="mt-4 flex flex-wrap gap-2">
|
||||||
@foreach ($ticket->tags as $tag)
|
@foreach ($ticket->tags as $tag)
|
||||||
<span class="rounded-full px-2 py-1 text-xs font-semibold text-white" style="background-color: {{ \Modules\Helpdesk\Support\Color::css($tag->color) }}">{{ $tag->name }}</span>
|
<span class="rounded-full px-2 py-1 text-xs font-semibold text-white"
|
||||||
|
style="background-color: {{ \Modules\Helpdesk\Support\Color::css($tag->color) }}">{{ $tag->name }}</span>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($ticket->checklistItems->isNotEmpty())
|
@if ($ticket->checklistItems->isNotEmpty())
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
@php($completedChecks = $ticket->checklistItems->where('is_completed', true)->count())
|
@php($completedChecks = $ticket->checklistItems->where('is_completed', true)->count())
|
||||||
<div class="mb-4 flex items-center justify-between gap-3">
|
<div class="mb-4 flex items-center justify-between gap-3">
|
||||||
<h2 class="text-base font-semibold text-zinc-900 dark:text-white">Checklist</h2>
|
<h2 class="text-base font-semibold text-zinc-900 dark:text-white">Checklist</h2>
|
||||||
<flux:badge color="blue">{{ $completedChecks }}/{{ $ticket->checklistItems->count() }}</flux:badge>
|
<flux:badge color="blue">{{ $completedChecks }}/{{ $ticket->checklistItems->count() }}
|
||||||
|
</flux:badge>
|
||||||
</div>
|
</div>
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
@foreach ($ticket->checklistItems as $item)
|
@foreach ($ticket->checklistItems as $item)
|
||||||
<label class="flex items-start gap-3 rounded-xl border border-zinc-200 p-3 text-sm dark:border-zinc-700">
|
<label
|
||||||
<input type="checkbox" wire:click="toggleChecklistItem({{ $item->id }})" @checked($item->is_completed) class="mt-1 rounded border-zinc-300">
|
class="flex items-start gap-3 rounded-xl border border-zinc-200 p-3 text-sm dark:border-zinc-700">
|
||||||
<span class="{{ $item->is_completed ? 'text-zinc-500 line-through' : 'text-zinc-800 dark:text-zinc-100' }}">{{ $item->title }}</span>
|
<input type="checkbox" wire:click="toggleChecklistItem({{ $item->id }})"
|
||||||
|
@checked($item->is_completed) class="mt-1 rounded border-zinc-300">
|
||||||
|
<span
|
||||||
|
class="{{ $item->is_completed ? 'text-zinc-500 line-through' : 'text-zinc-800 dark:text-zinc-100' }}">{{ $item->title }}</span>
|
||||||
</label>
|
</label>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<h2 class="mb-4 text-base font-semibold text-zinc-900 dark:text-white">Git commits</h2>
|
<h2 class="mb-4 text-base font-semibold text-zinc-900 dark:text-white">Git commits</h2>
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
@forelse ($ticket->gitCommits as $commit)
|
@forelse ($ticket->gitCommits as $commit)
|
||||||
<a href="{{ $commit->url ?: '#' }}" target="_blank" class="block rounded-xl border border-zinc-100 p-3 dark:border-zinc-800">
|
<a href="{{ $commit->url ?: '#' }}" target="_blank"
|
||||||
<div class="font-mono text-xs text-zinc-500">{{ $commit->short_hash }} · {{ $commit->repository?->name }}</div>
|
class="block rounded-xl border border-zinc-100 p-3 dark:border-zinc-800">
|
||||||
<div class="mt-1 text-sm font-medium text-zinc-900 dark:text-zinc-100">{{ $commit->message }}</div>
|
<div class="font-mono text-xs text-zinc-500">{{ $commit->short_hash }} ·
|
||||||
|
{{ $commit->repository?->name }}</div>
|
||||||
|
<div class="mt-1 text-sm font-medium text-zinc-900 dark:text-zinc-100">
|
||||||
|
{{ $commit->message }}</div>
|
||||||
</a>
|
</a>
|
||||||
@empty
|
@empty
|
||||||
<div class="rounded-xl border border-dashed border-zinc-300 p-4 text-center text-sm text-zinc-500 dark:border-zinc-700">No commits linked.</div>
|
<div
|
||||||
|
class="rounded-xl border border-dashed border-zinc-300 p-4 text-center text-sm text-zinc-500 dark:border-zinc-700">
|
||||||
|
No commits linked.</div>
|
||||||
@endforelse
|
@endforelse
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@can('update', $ticket)
|
@can('update', $ticket)
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
<div
|
||||||
<div class="mb-5 rounded-2xl bg-gradient-to-r from-blue-700 via-indigo-700 to-violet-700 px-4 py-4 text-white shadow-sm">
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
|
<div
|
||||||
|
class="mb-5 rounded-2xl bg-gradient-to-r from-blue-700 via-indigo-700 to-violet-700 px-4 py-4 text-white shadow-sm">
|
||||||
<p class="text-xs font-black uppercase tracking-[0.24em] text-blue-100">Ticket controls</p>
|
<p class="text-xs font-black uppercase tracking-[0.24em] text-blue-100">Ticket controls</p>
|
||||||
<h2 class="mt-1 text-lg font-black tracking-tight">Assignment, status and priority</h2>
|
<h2 class="mt-1 text-lg font-black tracking-tight">Assignment, status and priority</h2>
|
||||||
<p class="mt-1 text-sm font-semibold text-blue-100/90">Use the explicit update buttons below to save each change.</p>
|
<p class="mt-1 text-sm font-semibold text-blue-100/90">Use the explicit update buttons below to
|
||||||
|
save each change.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if (session('ticket-action-updated'))
|
@if (session('ticket-action-updated'))
|
||||||
<div class="mb-5 rounded-xl border border-emerald-200 bg-emerald-50 px-3 py-2 text-sm font-bold text-emerald-800 dark:border-emerald-800 dark:bg-emerald-950 dark:text-emerald-100">
|
<div
|
||||||
|
class="mb-5 rounded-xl border border-emerald-200 bg-emerald-50 px-3 py-2 text-sm font-bold text-emerald-800 dark:border-emerald-800 dark:bg-emerald-950 dark:text-emerald-100">
|
||||||
{{ session('ticket-action-updated') }}
|
{{ session('ticket-action-updated') }}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<form method="POST" action="{{ route('helpdesk.tickets.agent.update', $ticket) }}" class="mb-5 space-y-3">
|
<form method="POST" action="{{ route('helpdesk.tickets.agent.update', $ticket) }}"
|
||||||
|
class="mb-5 space-y-3">
|
||||||
@csrf
|
@csrf
|
||||||
<label class="block text-sm font-bold text-zinc-700 dark:text-zinc-200" for="show_agent_id">Assigned agent</label>
|
<label class="block text-sm font-bold text-zinc-700 dark:text-zinc-200"
|
||||||
<select id="show_agent_id" name="agent_id" class="hd-select block w-full rounded-xl border border-zinc-300 bg-white p-2.5 text-sm font-semibold text-zinc-900 shadow-sm focus:border-emerald-500 focus:ring-emerald-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" data-dusk="ticket-show-agent">
|
for="show_agent_id">Assigned agent</label>
|
||||||
|
<select id="show_agent_id" name="agent_id"
|
||||||
|
class="hd-select block w-full rounded-xl border border-zinc-300 bg-white p-2.5 text-sm font-semibold text-zinc-900 shadow-sm focus:border-emerald-500 focus:ring-emerald-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100"
|
||||||
|
data-dusk="ticket-show-agent">
|
||||||
<option value="" @selected($agent_id === null)>Unassigned</option>
|
<option value="" @selected($agent_id === null)>Unassigned</option>
|
||||||
@forelse ($agents as $agent)
|
@forelse ($agents as $agent)
|
||||||
<option value="{{ $agent->id }}" @selected((int) $agent_id === (int) $agent->id)>{{ $agent->name }} · {{ $agent->email }}</option>
|
<option value="{{ $agent->id }}" @selected((int) $agent_id === (int) $agent->id)>{{ $agent->name }} ·
|
||||||
|
{{ $agent->email }}</option>
|
||||||
@empty
|
@empty
|
||||||
<option value="" disabled>No users available for assignment</option>
|
<option value="" disabled>No users available for assignment</option>
|
||||||
@endforelse
|
@endforelse
|
||||||
</select>
|
</select>
|
||||||
@error('agent_id') <p class="text-sm font-bold text-red-600 dark:text-red-400">{{ $message }}</p> @enderror
|
@error('agent_id')
|
||||||
<button type="submit" dusk="update-agent" class="inline-flex items-center justify-center rounded-lg bg-emerald-600 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-400/70">
|
<p class="text-sm font-bold text-red-600 dark:text-red-400">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
|
<button type="submit" dusk="update-agent"
|
||||||
|
class="inline-flex items-center justify-center rounded-lg bg-emerald-600 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-400/70">
|
||||||
<i class="fa-solid fa-user-check mr-2" aria-hidden="true"></i>
|
<i class="fa-solid fa-user-check mr-2" aria-hidden="true"></i>
|
||||||
<span>Assign agent</span>
|
<span>Assign agent</span>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form method="POST" action="{{ route('helpdesk.tickets.status.update', $ticket) }}" class="mb-5 space-y-3">
|
<form method="POST" action="{{ route('helpdesk.tickets.status.update', $ticket) }}"
|
||||||
|
class="mb-5 space-y-3">
|
||||||
@csrf
|
@csrf
|
||||||
<label class="block text-sm font-bold text-zinc-700 dark:text-zinc-200" for="show_status_id">Status</label>
|
<label class="block text-sm font-bold text-zinc-700 dark:text-zinc-200"
|
||||||
<select id="show_status_id" name="status_id" class="hd-select block w-full rounded-xl border border-zinc-300 bg-white p-2.5 text-sm font-semibold text-zinc-900 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" data-dusk="ticket-show-status">
|
for="show_status_id">Status</label>
|
||||||
|
<select id="show_status_id" name="status_id"
|
||||||
|
class="hd-select block w-full rounded-xl border border-zinc-300 bg-white p-2.5 text-sm font-semibold text-zinc-900 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100"
|
||||||
|
data-dusk="ticket-show-status">
|
||||||
@foreach ($statuses as $status)
|
@foreach ($statuses as $status)
|
||||||
<option value="{{ $status->id }}" @selected((int) $status_id === (int) $status->id)>{{ $status->name }}</option>
|
<option value="{{ $status->id }}" @selected((int) $status_id === (int) $status->id)>{{ $status->name }}
|
||||||
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
@error('status_id') <p class="text-sm font-bold text-red-600 dark:text-red-400">{{ $message }}</p> @enderror
|
@error('status_id')
|
||||||
<button type="submit" dusk="update-status" class="inline-flex items-center justify-center rounded-lg bg-blue-600 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-400/70">
|
<p class="text-sm font-bold text-red-600 dark:text-red-400">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
|
<button type="submit" dusk="update-status"
|
||||||
|
class="inline-flex items-center justify-center rounded-lg bg-blue-600 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-400/70">
|
||||||
<i class="fa-solid fa-circle-check mr-2" aria-hidden="true"></i>
|
<i class="fa-solid fa-circle-check mr-2" aria-hidden="true"></i>
|
||||||
<span>Update status</span>
|
<span>Update status</span>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form method="POST" action="{{ route('helpdesk.tickets.priority.update', $ticket) }}" class="space-y-3">
|
<form method="POST" action="{{ route('helpdesk.tickets.priority.update', $ticket) }}"
|
||||||
|
class="space-y-3">
|
||||||
@csrf
|
@csrf
|
||||||
<label class="block text-sm font-bold text-zinc-700 dark:text-zinc-200" for="show_priority_id">Priority</label>
|
<label class="block text-sm font-bold text-zinc-700 dark:text-zinc-200"
|
||||||
<select id="show_priority_id" name="priority_id" class="hd-select block w-full rounded-xl border border-zinc-300 bg-white p-2.5 text-sm font-semibold text-zinc-900 shadow-sm focus:border-amber-500 focus:ring-amber-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" data-dusk="ticket-show-priority">
|
for="show_priority_id">Priority</label>
|
||||||
|
<select id="show_priority_id" name="priority_id"
|
||||||
|
class="hd-select block w-full rounded-xl border border-zinc-300 bg-white p-2.5 text-sm font-semibold text-zinc-900 shadow-sm focus:border-amber-500 focus:ring-amber-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100"
|
||||||
|
data-dusk="ticket-show-priority">
|
||||||
@foreach ($priorities as $priority)
|
@foreach ($priorities as $priority)
|
||||||
<option value="{{ $priority->id }}" @selected((int) $priority_id === (int) $priority->id)>{{ $priority->name }}</option>
|
<option value="{{ $priority->id }}" @selected((int) $priority_id === (int) $priority->id)>{{ $priority->name }}
|
||||||
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
@error('priority_id') <p class="text-sm font-bold text-red-600 dark:text-red-400">{{ $message }}</p> @enderror
|
@error('priority_id')
|
||||||
<button type="submit" dusk="update-priority" class="inline-flex items-center justify-center rounded-lg bg-amber-500 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-amber-600 focus:outline-none focus:ring-2 focus:ring-amber-300/70">
|
<p class="text-sm font-bold text-red-600 dark:text-red-400">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
|
<button type="submit" dusk="update-priority"
|
||||||
|
class="inline-flex items-center justify-center rounded-lg bg-amber-500 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-amber-600 focus:outline-none focus:ring-2 focus:ring-amber-300/70">
|
||||||
<i class="fa-solid fa-flag mr-2" aria-hidden="true"></i>
|
<i class="fa-solid fa-flag mr-2" aria-hidden="true"></i>
|
||||||
<span>Update priority</span>
|
<span>Update priority</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-security">
|
<div class="container-fluid py-4 module-page module-security">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Security"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Security"
|
|
||||||
description="Control roles, permissions, audit visibility, and protected administration actions."
|
description="Control roles, permissions, audit visibility, and protected administration actions."
|
||||||
icon="fa-solid fa-shield-halved"
|
icon="fa-solid fa-shield-halved" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">Security workbench</h2>
|
<h2 class="h5 mb-1">Security workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Roles</td>
|
<td>Roles</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Permissions</td>
|
<td>Permissions</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Admin Access</td>
|
<td>Admin Access</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Security Audit</td>
|
<td>Security Audit</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-sentinel-integration">
|
<div class="container-fluid py-4 module-page module-sentinel-integration">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Sentinel Integration"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Sentinel Integration"
|
|
||||||
description="Track Sentinel API activity, inbound receiver events, and interface status."
|
description="Track Sentinel API activity, inbound receiver events, and interface status."
|
||||||
icon="fa-solid fa-satellite-dish"
|
icon="fa-solid fa-satellite-dish" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">Sentinel Integration workbench</h2>
|
<h2 class="h5 mb-1">Sentinel Integration workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Sentinel Receiver</td>
|
<td>Sentinel Receiver</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>API Activity</td>
|
<td>API Activity</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Interface Health</td>
|
<td>Interface Health</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Payload Archive</td>
|
<td>Payload Archive</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-shipping">
|
<div class="container-fluid py-4 module-page module-shipping">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Shipping"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Shipping"
|
|
||||||
description="Monitor shipment activity, closed orders, pending loads, and dispatch status."
|
description="Monitor shipment activity, closed orders, pending loads, and dispatch status."
|
||||||
icon="fa-solid fa-truck-fast"
|
icon="fa-solid fa-truck-fast" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">Shipping workbench</h2>
|
<h2 class="h5 mb-1">Shipping workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Open Shipments</td>
|
<td>Open Shipments</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Closed Orders</td>
|
<td>Closed Orders</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Shipment Close Calls</td>
|
<td>Shipment Close Calls</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Dispatch Exceptions</td>
|
<td>Dispatch Exceptions</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -2,12 +2,9 @@
|
|||||||
<div class="container-fluid py-4 module-page module-transportation">
|
<div class="container-fluid py-4 module-page module-transportation">
|
||||||
<div class="row g-4">
|
<div class="row g-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Transportation"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Transportation"
|
|
||||||
description="Manage truck closure, freight terms, trailers, and transport operations."
|
description="Manage truck closure, freight terms, trailers, and transport operations."
|
||||||
icon="fa-solid fa-route"
|
icon="fa-solid fa-route" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-3">
|
<div class="col-md-6 col-xl-3">
|
||||||
@@ -53,7 +50,8 @@
|
|||||||
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
<div class="d-flex flex-column flex-md-row justify-content-between gap-2">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="h5 mb-1">Transportation workbench</h2>
|
<h2 class="h5 mb-1">Transportation workbench</h2>
|
||||||
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers, queries, DataTables, or Livewire.</p>
|
<p class="small text-muted mb-0">Sample table layout ready to wire into controllers,
|
||||||
|
queries, DataTables, or Livewire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -78,26 +76,38 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Pending Truck Closure</td>
|
<td>Pending Truck Closure</td>
|
||||||
<td>Sample 1</td>
|
<td>Sample 1</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Trailer Activity</td>
|
<td>Trailer Activity</td>
|
||||||
<td>Sample 2</td>
|
<td>Sample 2</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Freight Terms</td>
|
<td>Freight Terms</td>
|
||||||
<td>Sample 3</td>
|
<td>Sample 3</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Transport Exceptions</td>
|
<td>Transport Exceptions</td>
|
||||||
<td>Sample 4</td>
|
<td>Sample 4</td>
|
||||||
<td><span class="badge bg-success-subtle text-success border border-success-subtle">Active</span></td>
|
<td><span
|
||||||
<td class="text-end"><a href="#" class="btn btn-sm btn-outline-primary">Open</a></td>
|
class="badge bg-success-subtle text-success border border-success-subtle">Active</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-end"><a href="#"
|
||||||
|
class="btn btn-sm btn-outline-primary">Open</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,24 +1,57 @@
|
|||||||
<x-layouts::app :title="__('Validation Rules')">
|
<x-layouts::app :title="__('Validation Rules')">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Administration" title="Validation Rules"
|
||||||
eyebrow="Administration"
|
|
||||||
title="Validation Rules"
|
|
||||||
description="Configure warehouse validation controls, severity levels and operational rule keys."
|
description="Configure warehouse validation controls, severity levels and operational rule keys."
|
||||||
icon="fa-solid fa-shield-halved"
|
icon="fa-solid fa-shield-halved" />
|
||||||
/>
|
|
||||||
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
||||||
<h2 class="text-lg font-bold text-zinc-900 dark:text-white">Add validation rule</h2>
|
<h2 class="text-lg font-bold text-zinc-900 dark:text-white">Add validation rule</h2>
|
||||||
<form method="POST" action="{{ route('warehouse-rules.store') }}" class="mt-5 grid gap-4 md:grid-cols-6">
|
<form method="POST" action="{{ route('warehouse-rules.store') }}" class="mt-5 grid gap-4 md:grid-cols-6">
|
||||||
@csrf
|
@csrf
|
||||||
<select name="warehouse_id" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">@foreach($warehouses as $warehouse)<option value="{{ $warehouse->id }}">{{ $warehouse->name }}</option>@endforeach</select>
|
<select name="warehouse_id" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||||
<input name="name" placeholder="Rule name" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
@foreach ($warehouses as $warehouse)
|
||||||
<input name="rule_key" placeholder="stock.location.required" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
<option value="{{ $warehouse->id }}">{{ $warehouse->name }}</option>
|
||||||
<select name="severity" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950"><option>error</option><option>warning</option><option>blocker</option><option>info</option></select>
|
@endforeach
|
||||||
<input name="configuration" placeholder='{"min": 1}' class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
</select>
|
||||||
<button class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Add rule</button>
|
<input name="name" placeholder="Rule name"
|
||||||
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||||
|
<input name="rule_key" placeholder="stock.location.required"
|
||||||
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||||
|
<select name="severity" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||||
|
<option>error</option>
|
||||||
|
<option>warning</option>
|
||||||
|
<option>blocker</option>
|
||||||
|
<option>info</option>
|
||||||
|
</select>
|
||||||
|
<input name="configuration" placeholder='{"min": 1}'
|
||||||
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||||
|
<button
|
||||||
|
class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Add
|
||||||
|
rule</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="overflow-x-auto rounded-2xl bg-white shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800"><table class="min-w-full text-sm"><thead><tr class="border-b"><th class="p-4 text-left">Warehouse</th><th class="p-4 text-left">Rule</th><th class="p-4 text-left">Key</th><th class="p-4 text-left">Severity</th></tr></thead><tbody>@foreach($rules as $rule)<tr class="border-b border-zinc-100 dark:border-zinc-800"><td class="p-4">{{ $rule->warehouse->name }}</td><td class="p-4 font-semibold">{{ $rule->name }}</td><td class="p-4"><code>{{ $rule->rule_key }}</code></td><td class="p-4">{{ $rule->severity }}</td></tr>@endforeach</tbody></table></div>
|
<div
|
||||||
|
class="overflow-x-auto rounded-2xl bg-white shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
||||||
|
<table class="min-w-full text-sm">
|
||||||
|
<thead>
|
||||||
|
<tr class="border-b">
|
||||||
|
<th class="p-4 text-left">Warehouse</th>
|
||||||
|
<th class="p-4 text-left">Rule</th>
|
||||||
|
<th class="p-4 text-left">Key</th>
|
||||||
|
<th class="p-4 text-left">Severity</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach ($rules as $rule)
|
||||||
|
<tr class="border-b border-zinc-100 dark:border-zinc-800">
|
||||||
|
<td class="p-4">{{ $rule->warehouse->name }}</td>
|
||||||
|
<td class="p-4 font-semibold">{{ $rule->name }}</td>
|
||||||
|
<td class="p-4"><code>{{ $rule->rule_key }}</code></td>
|
||||||
|
<td class="p-4">{{ $rule->severity }}</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
{{ $rules->links() }}
|
{{ $rules->links() }}
|
||||||
</div>
|
</div>
|
||||||
</x-layouts::app>
|
</x-layouts::app>
|
||||||
|
|||||||
@@ -1,23 +1,35 @@
|
|||||||
<x-layouts::app :title="__('WMS Dashboard')">
|
<x-layouts::app :title="__('WMS Dashboard')">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="MPBA WMS" :title="auth()->user()->company->name"
|
||||||
eyebrow="MPBA WMS"
|
|
||||||
:title="auth()->user()->company->name"
|
|
||||||
description="Tenant warehouse dashboard for operational status, warehouse coverage and validation readiness."
|
description="Tenant warehouse dashboard for operational status, warehouse coverage and validation readiness."
|
||||||
:stats="[
|
:stats="[
|
||||||
['label' => 'Warehouses', 'value' => $warehouses->count(), 'icon' => 'fa-solid fa-warehouse'],
|
['label' => 'Warehouses', 'value' => $warehouses->count(), 'icon' => 'fa-solid fa-warehouse'],
|
||||||
['label' => 'Status', 'value' => 'Live', 'icon' => 'fa-solid fa-circle-check'],
|
['label' => 'Status', 'value' => 'Live', 'icon' => 'fa-solid fa-circle-check'],
|
||||||
]"
|
]" />
|
||||||
/>
|
|
||||||
|
|
||||||
<section class="grid gap-4 md:grid-cols-2 xl:grid-cols-3">
|
<section class="grid gap-4 md:grid-cols-2 xl:grid-cols-3">
|
||||||
@forelse($warehouses as $warehouse)
|
@forelse($warehouses as $warehouse)
|
||||||
<article class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
<article
|
||||||
<div class="flex items-start justify-between gap-4"><div><p class="text-sm font-semibold text-cyan-600">{{ $warehouse->code }}</p><h2 class="mt-1 text-xl font-bold">{{ $warehouse->name }}</h2></div><span class="rounded-full bg-emerald-100 px-3 py-1 text-xs font-semibold text-emerald-800">{{ $warehouse->status }}</span></div>
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
<p class="mt-4 text-sm text-zinc-500">{{ $warehouse->validation_rules_count }} validation rules configured.</p>
|
<div class="flex items-start justify-between gap-4">
|
||||||
|
<div>
|
||||||
|
<p class="text-sm font-semibold text-cyan-600">{{ $warehouse->code }}</p>
|
||||||
|
<h2 class="mt-1 text-xl font-bold">{{ $warehouse->name }}</h2>
|
||||||
|
</div><span
|
||||||
|
class="rounded-full bg-emerald-100 px-3 py-1 text-xs font-semibold text-emerald-800">{{ $warehouse->status }}</span>
|
||||||
|
</div>
|
||||||
|
<p class="mt-4 text-sm text-zinc-500">{{ $warehouse->validation_rules_count }} validation rules
|
||||||
|
configured.</p>
|
||||||
</article>
|
</article>
|
||||||
@empty
|
@empty
|
||||||
<article class="rounded-2xl border border-dashed border-zinc-300 bg-white p-8 text-center dark:border-zinc-800 dark:bg-zinc-900 md:col-span-2 xl:col-span-3"><h2 class="text-xl font-bold">Create your first warehouse</h2><p class="mt-2 text-zinc-500">Warehouses are isolated to your company tenant.</p><a href="{{ route('warehouses.index') }}" class="mt-5 inline-flex rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Add warehouse</a></article>
|
<article
|
||||||
|
class="rounded-2xl border border-dashed border-zinc-300 bg-white p-8 text-center dark:border-zinc-800 dark:bg-zinc-900 md:col-span-2 xl:col-span-3">
|
||||||
|
<h2 class="text-xl font-bold">Create your first warehouse</h2>
|
||||||
|
<p class="mt-2 text-zinc-500">Warehouses are isolated to your company tenant.</p><a
|
||||||
|
href="{{ route('warehouses.index') }}"
|
||||||
|
class="mt-5 inline-flex rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Add
|
||||||
|
warehouse</a>
|
||||||
|
</article>
|
||||||
@endforelse
|
@endforelse
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,24 +1,30 @@
|
|||||||
<x-layouts::app :title="__('Warehouses')">
|
<x-layouts::app :title="__('Warehouses')">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Administration" title="Warehouses"
|
||||||
eyebrow="Administration"
|
|
||||||
title="Warehouses"
|
|
||||||
description="Create and manage warehouse records, tenant ownership and operational locations."
|
description="Create and manage warehouse records, tenant ownership and operational locations."
|
||||||
icon="fa-solid fa-warehouse"
|
icon="fa-solid fa-warehouse" />
|
||||||
/>
|
|
||||||
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
||||||
<h2 class="text-lg font-bold text-zinc-900 dark:text-white">Create warehouse</h2>
|
<h2 class="text-lg font-bold text-zinc-900 dark:text-white">Create warehouse</h2>
|
||||||
<form method="POST" action="{{ route('warehouses.store') }}" class="mt-5 grid gap-4 md:grid-cols-4">
|
<form method="POST" action="{{ route('warehouses.store') }}" class="mt-5 grid gap-4 md:grid-cols-4">
|
||||||
@csrf
|
@csrf
|
||||||
<input name="code" placeholder="Code" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
<input name="code" placeholder="Code"
|
||||||
<input name="name" placeholder="Warehouse name" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||||
<input name="address" placeholder="Address" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
<input name="name" placeholder="Warehouse name"
|
||||||
<button class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Create</button>
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||||
|
<input name="address" placeholder="Address"
|
||||||
|
class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||||
|
<button
|
||||||
|
class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Create</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid gap-4 md:grid-cols-2 xl:grid-cols-3">
|
<div class="grid gap-4 md:grid-cols-2 xl:grid-cols-3">
|
||||||
@foreach ($warehouses as $warehouse)
|
@foreach ($warehouses as $warehouse)
|
||||||
<article class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900"><p class="text-sm text-cyan-600">{{ $warehouse->code }}</p><h2 class="mt-1 text-xl font-bold">{{ $warehouse->name }}</h2><p class="mt-3 text-sm text-zinc-500">{{ $warehouse->validation_rules_count }} rules</p></article>
|
<article
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
|
<p class="text-sm text-cyan-600">{{ $warehouse->code }}</p>
|
||||||
|
<h2 class="mt-1 text-xl font-bold">{{ $warehouse->name }}</h2>
|
||||||
|
<p class="mt-3 text-sm text-zinc-500">{{ $warehouse->validation_rules_count }} rules</p>
|
||||||
|
</article>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
{{ $warehouses->links() }}
|
{{ $warehouses->links() }}
|
||||||
|
|||||||
+3
-1
@@ -8,7 +8,8 @@
|
|||||||
"modules:build": "node scripts/build-modules.mjs",
|
"modules:build": "node scripts/build-modules.mjs",
|
||||||
"build:all": "npm run build && npm run modules:build",
|
"build:all": "npm run build && npm run modules:build",
|
||||||
"modules:install": "find Modules -maxdepth 2 -name package.json -not -path '*/node_modules/*' -execdir npm install \\;",
|
"modules:install": "find Modules -maxdepth 2 -name package.json -not -path '*/node_modules/*' -execdir npm install \\;",
|
||||||
"install:all": "npm install && npm run modules:install"
|
"install:all": "npm install && npm run modules:install",
|
||||||
|
"format:blade": "blade-formatter \"resources/views/**/*.blade.php\" \"Modules/**/*.blade.php\" --write"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^7.2.0",
|
"@fortawesome/fontawesome-free": "^7.2.0",
|
||||||
@@ -32,6 +33,7 @@
|
|||||||
"lightningcss-linux-x64-gnu": "^1.29.1"
|
"lightningcss-linux-x64-gnu": "^1.29.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"blade-formatter": "^1.44.4",
|
||||||
"chokidar": "^5.0.0"
|
"chokidar": "^5.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 42" {{ $attributes }}>
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 42" {{ $attributes }}>
|
||||||
<path
|
<path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"
|
||||||
fill="currentColor"
|
d="M17.2 5.633 8.6.855 0 5.633v26.51l16.2 9 16.2-9v-8.442l7.6-4.223V9.856l-8.6-4.777-8.6 4.777V18.3l-5.6 3.111V5.633ZM38 18.301l-5.6 3.11v-6.157l5.6-3.11V18.3Zm-1.06-7.856-5.54 3.078-5.54-3.079 5.54-3.078 5.54 3.079ZM24.8 18.3v-6.157l5.6 3.111v6.158L24.8 18.3Zm-1 1.732 5.54 3.078-13.14 7.302-5.54-3.078 13.14-7.3v-.002Zm-16.2 7.89 7.6 4.222V38.3L2 30.966V7.92l5.6 3.111v16.892ZM8.6 9.3 3.06 6.222 8.6 3.143l5.54 3.08L8.6 9.3Zm21.8 15.51-13.2 7.334V38.3l13.2-7.334v-6.156ZM9.6 11.034l5.6-3.11v14.6l-5.6 3.11v-14.6Z" />
|
||||||
fill-rule="evenodd"
|
|
||||||
clip-rule="evenodd"
|
|
||||||
d="M17.2 5.633 8.6.855 0 5.633v26.51l16.2 9 16.2-9v-8.442l7.6-4.223V9.856l-8.6-4.777-8.6 4.777V18.3l-5.6 3.111V5.633ZM38 18.301l-5.6 3.11v-6.157l5.6-3.11V18.3Zm-1.06-7.856-5.54 3.078-5.54-3.079 5.54-3.078 5.54 3.079ZM24.8 18.3v-6.157l5.6 3.111v6.158L24.8 18.3Zm-1 1.732 5.54 3.078-13.14 7.302-5.54-3.078 13.14-7.3v-.002Zm-16.2 7.89 7.6 4.222V38.3L2 30.966V7.92l5.6 3.111v16.892ZM8.6 9.3 3.06 6.222 8.6 3.143l5.54 3.08L8.6 9.3Zm21.8 15.51-13.2 7.334V38.3l13.2-7.334v-6.156ZM9.6 11.034l5.6-3.11v14.6l-5.6 3.11v-14.6Z"
|
|
||||||
/>
|
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 714 B After Width: | Height: | Size: 683 B |
@@ -4,13 +4,15 @@
|
|||||||
|
|
||||||
@if ($sidebar)
|
@if ($sidebar)
|
||||||
<flux:sidebar.brand name="Warehouse Management System" {{ $attributes }}>
|
<flux:sidebar.brand name="Warehouse Management System" {{ $attributes }}>
|
||||||
<x-slot name="logo" class="flex aspect-square size-8 items-center justify-center rounded-md bg-accent-content text-accent-foreground">
|
<x-slot name="logo"
|
||||||
|
class="flex aspect-square size-8 items-center justify-center rounded-md bg-accent-content text-accent-foreground">
|
||||||
<x-app-logo-icon class="size-5 fill-current text-white dark:text-black" />
|
<x-app-logo-icon class="size-5 fill-current text-white dark:text-black" />
|
||||||
</x-slot>
|
</x-slot>
|
||||||
</flux:sidebar.brand>
|
</flux:sidebar.brand>
|
||||||
@else
|
@else
|
||||||
<flux:brand name="Warehouse Management System" {{ $attributes }}>
|
<flux:brand name="Warehouse Management System" {{ $attributes }}>
|
||||||
<x-slot name="logo" class="flex aspect-square size-8 items-center justify-center rounded-md bg-accent-content text-accent-foreground">
|
<x-slot name="logo"
|
||||||
|
class="flex aspect-square size-8 items-center justify-center rounded-md bg-accent-content text-accent-foreground">
|
||||||
<x-app-logo-icon class="size-5 fill-current text-white dark:text-black" />
|
<x-app-logo-icon class="size-5 fill-current text-white dark:text-black" />
|
||||||
</x-slot>
|
</x-slot>
|
||||||
</flux:brand>
|
</flux:brand>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
@props([
|
@props(['title', 'description'])
|
||||||
'title',
|
|
||||||
'description',
|
|
||||||
])
|
|
||||||
|
|
||||||
<div class="flex w-full flex-col text-center">
|
<div class="flex w-full flex-col text-center">
|
||||||
<flux:heading size="xl">{{ $title }}</flux:heading>
|
<flux:heading size="xl">{{ $title }}</flux:heading>
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
@props([
|
@props(['status'])
|
||||||
'status',
|
|
||||||
])
|
|
||||||
|
|
||||||
@if ($status)
|
@if ($status)
|
||||||
<div {{ $attributes->merge(['class' => 'font-medium text-sm text-green-600']) }}>
|
<div {{ $attributes->merge(['class' => 'font-medium text-sm text-green-600']) }}>
|
||||||
|
|||||||
@@ -1,11 +1,4 @@
|
|||||||
@props([
|
@props(['title', 'description' => '', 'type' => 'line', 'config' => [], 'height' => 300, 'icon' => 'fa-chart-line'])
|
||||||
'title',
|
|
||||||
'description' => '',
|
|
||||||
'type' => 'line',
|
|
||||||
'config' => [],
|
|
||||||
'height' => 300,
|
|
||||||
'icon' => 'fa-chart-line',
|
|
||||||
])
|
|
||||||
|
|
||||||
<div class="card wms-chart-card mb-4 h-100">
|
<div class="card wms-chart-card mb-4 h-100">
|
||||||
<div class="card-header wms-chart-card__header">
|
<div class="card-header wms-chart-card__header">
|
||||||
@@ -22,13 +15,8 @@
|
|||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="wms-chart-card__canvas" style="height: {{ (int) $height }}px;">
|
<div class="wms-chart-card__canvas" style="height: {{ (int) $height }}px;">
|
||||||
<canvas
|
<canvas data-wms-chart data-chart-type="{{ $type }}" data-chart-config='@json($config)'
|
||||||
data-wms-chart
|
aria-label="{{ $title }} chart" role="img"></canvas>
|
||||||
data-chart-type="{{ $type }}"
|
|
||||||
data-chart-config='@json($config)'
|
|
||||||
aria-label="{{ $title }} chart"
|
|
||||||
role="img"
|
|
||||||
></canvas>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
@props([
|
@props(['label', 'value' => 0, 'hint' => '', 'icon' => 'fa-chart-simple'])
|
||||||
'label',
|
|
||||||
'value' => 0,
|
|
||||||
'hint' => '',
|
|
||||||
'icon' => 'fa-chart-simple',
|
|
||||||
])
|
|
||||||
|
|
||||||
<div class="col-xl-3 col-md-6">
|
<div class="col-xl-3 col-md-6">
|
||||||
<div class="card wms-metric-card mb-4">
|
<div class="card wms-metric-card mb-4">
|
||||||
|
|||||||
@@ -1,17 +1,10 @@
|
|||||||
<flux:dropdown position="bottom" align="start">
|
<flux:dropdown position="bottom" align="start">
|
||||||
<flux:sidebar.profile
|
<flux:sidebar.profile :name="auth()->user()->name" :initials="auth()->user()->initials()"
|
||||||
:name="auth()->user()->name"
|
icon:trailing="chevrons-up-down" data-test="sidebar-menu-button" />
|
||||||
:initials="auth()->user()->initials()"
|
|
||||||
icon:trailing="chevrons-up-down"
|
|
||||||
data-test="sidebar-menu-button"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<flux:menu>
|
<flux:menu>
|
||||||
<div class="flex items-center gap-2 px-1 py-1.5 text-start text-sm">
|
<div class="flex items-center gap-2 px-1 py-1.5 text-start text-sm">
|
||||||
<flux:avatar
|
<flux:avatar :name="auth()->user()->name" :initials="auth()->user()->initials()" />
|
||||||
:name="auth()->user()->name"
|
|
||||||
:initials="auth()->user()->initials()"
|
|
||||||
/>
|
|
||||||
<div class="grid flex-1 text-start text-sm leading-tight">
|
<div class="grid flex-1 text-start text-sm leading-tight">
|
||||||
<flux:heading class="truncate">{{ auth()->user()->name }}</flux:heading>
|
<flux:heading class="truncate">{{ auth()->user()->name }}</flux:heading>
|
||||||
<flux:text class="truncate">{{ auth()->user()->email }}</flux:text>
|
<flux:text class="truncate">{{ auth()->user()->email }}</flux:text>
|
||||||
@@ -24,13 +17,8 @@
|
|||||||
</flux:menu.item>
|
</flux:menu.item>
|
||||||
<form method="POST" action="{{ route('logout') }}" class="w-full">
|
<form method="POST" action="{{ route('logout') }}" class="w-full">
|
||||||
@csrf
|
@csrf
|
||||||
<flux:menu.item
|
<flux:menu.item as="button" type="submit" icon="arrow-right-start-on-rectangle"
|
||||||
as="button"
|
class="w-full cursor-pointer" data-test="logout-button">
|
||||||
type="submit"
|
|
||||||
icon="arrow-right-start-on-rectangle"
|
|
||||||
class="w-full cursor-pointer"
|
|
||||||
data-test="logout-button"
|
|
||||||
>
|
|
||||||
{{ __('Log out') }}
|
{{ __('Log out') }}
|
||||||
</flux:menu.item>
|
</flux:menu.item>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -24,8 +24,10 @@
|
|||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<body class="h-screen min-h-screen overflow-hidden bg-white font-sans text-zinc-950 antialiased dark:bg-zinc-950 dark:text-zinc-100">
|
<body
|
||||||
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);" aria-hidden="true"></div>
|
class="h-screen min-h-screen overflow-hidden bg-white font-sans text-zinc-950 antialiased dark:bg-zinc-950 dark:text-zinc-100">
|
||||||
|
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);"
|
||||||
|
aria-hidden="true"></div>
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--wms-sidebar-width: 288px;
|
--wms-sidebar-width: 288px;
|
||||||
@@ -362,11 +364,14 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="wms-app-shell" data-wms-shell data-wms-mobile-shell>
|
<div class="wms-app-shell" data-wms-shell data-wms-mobile-shell>
|
||||||
<button type="button" class="wms-mobile-overlay" data-wms-mobile-close aria-label="{{ __('Close navigation menu') }}"></button>
|
<button type="button" class="wms-mobile-overlay" data-wms-mobile-close
|
||||||
|
aria-label="{{ __('Close navigation menu') }}"></button>
|
||||||
|
|
||||||
<aside id="wms-main-sidebar" class="wms-sidebar" data-wms-sidebar data-test="desktop-sidebar" aria-label="{{ __('Main navigation') }}">
|
<aside id="wms-main-sidebar" class="wms-sidebar" data-wms-sidebar data-test="desktop-sidebar"
|
||||||
|
aria-label="{{ __('Main navigation') }}">
|
||||||
<div class="wms-sidebar-header">
|
<div class="wms-sidebar-header">
|
||||||
<a href="{{ auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard') ? route('platform.dashboard') : route('dashboard') }}" wire:navigate class="wms-brand" aria-label="{{ __('Warehouse Management System') }}">
|
<a href="{{ auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard') ? route('platform.dashboard') : route('dashboard') }}"
|
||||||
|
wire:navigate class="wms-brand" aria-label="{{ __('Warehouse Management System') }}">
|
||||||
<span class="wms-brand-mark" data-wms-brand-toggle title="{{ __('Expand sidebar') }}">
|
<span class="wms-brand-mark" data-wms-brand-toggle title="{{ __('Expand sidebar') }}">
|
||||||
<span class="wms-brand-mark-inner">W</span>
|
<span class="wms-brand-mark-inner">W</span>
|
||||||
</span>
|
</span>
|
||||||
@@ -377,29 +382,30 @@
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button type="button" class="wms-sidebar-toggle" data-wms-sidebar-toggle aria-label="{{ __('Collapse sidebar') }}" aria-expanded="true">
|
<button type="button" class="wms-sidebar-toggle" data-wms-sidebar-toggle
|
||||||
|
aria-label="{{ __('Collapse sidebar') }}" aria-expanded="true">
|
||||||
<span class="wms-toggle-expanded">‹</span>
|
<span class="wms-toggle-expanded">‹</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="button" class="wms-mobile-close" data-wms-mobile-close aria-label="{{ __('Close navigation') }}">×</button>
|
<button type="button" class="wms-mobile-close" data-wms-mobile-close
|
||||||
|
aria-label="{{ __('Close navigation') }}">×</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="wms-sidebar-nav" aria-label="{{ __('Main navigation') }}">
|
<nav class="wms-sidebar-nav" aria-label="{{ __('Main navigation') }}">
|
||||||
@php
|
@php
|
||||||
$platformRoute = auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard')
|
$platformRoute =
|
||||||
|
auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard')
|
||||||
? 'platform.dashboard'
|
? 'platform.dashboard'
|
||||||
: (Route::has('dashboard') ? 'dashboard' : null);
|
: (Route::has('dashboard')
|
||||||
|
? 'dashboard'
|
||||||
|
: null);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if ($platformRoute)
|
@if ($platformRoute)
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="platform">
|
<div class="wms-sidebar-group" data-wms-menu-group="platform">
|
||||||
<a
|
<a href="{{ route($platformRoute) }}" wire:navigate
|
||||||
href="{{ route($platformRoute) }}"
|
|
||||||
wire:navigate
|
|
||||||
class="wms-sidebar-link wms-sidebar-primary-link @if (request()->routeIs('platform.dashboard') || request()->routeIs('dashboard')) is-active @endif"
|
class="wms-sidebar-link wms-sidebar-primary-link @if (request()->routeIs('platform.dashboard') || request()->routeIs('dashboard')) is-active @endif"
|
||||||
title="{{ __('Platform') }}"
|
title="{{ __('Platform') }}" data-wms-sidebar-label>
|
||||||
data-wms-sidebar-label
|
|
||||||
>
|
|
||||||
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Platform') }}</span>
|
<span>{{ __('Platform') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -407,7 +413,8 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="operations">
|
<div class="wms-sidebar-group" data-wms-menu-group="operations">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-chart-simple wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-chart-simple wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Operations') }}</span>
|
<span>{{ __('Operations') }}</span>
|
||||||
@@ -416,42 +423,54 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('analytics.index'))
|
@if (Route::has('analytics.index'))
|
||||||
<a href="{{ route('analytics.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('analytics.*')) is-active @endif" title="{{ __('Analytics') }}">
|
<a href="{{ route('analytics.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('analytics.*')) is-active @endif"
|
||||||
|
title="{{ __('Analytics') }}">
|
||||||
<i class="fa-solid fa-chart-line wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-chart-line wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Analytics') }}</span>
|
<span data-wms-sidebar-label>{{ __('Analytics') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('inventory-management.index'))
|
@if (Route::has('inventory-management.index'))
|
||||||
<a href="{{ route('inventory-management.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('inventory-management.*')) is-active @endif" title="{{ __('Inventory') }}">
|
<a href="{{ route('inventory-management.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('inventory-management.*')) is-active @endif"
|
||||||
|
title="{{ __('Inventory') }}">
|
||||||
<i class="fa-solid fa-boxes-stacked wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-boxes-stacked wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Inventory') }}</span>
|
<span data-wms-sidebar-label>{{ __('Inventory') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('replenishment.index'))
|
@if (Route::has('replenishment.index'))
|
||||||
<a href="{{ route('replenishment.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('replenishment.*')) is-active @endif" title="{{ __('Replenishment') }}">
|
<a href="{{ route('replenishment.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('replenishment.*')) is-active @endif"
|
||||||
|
title="{{ __('Replenishment') }}">
|
||||||
<i class="fa-solid fa-arrows-rotate wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-arrows-rotate wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Replenishment') }}</span>
|
<span data-wms-sidebar-label>{{ __('Replenishment') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('shipping.index'))
|
@if (Route::has('shipping.index'))
|
||||||
<a href="{{ route('shipping.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('shipping.*')) is-active @endif" title="{{ __('Shipping') }}">
|
<a href="{{ route('shipping.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('shipping.*')) is-active @endif"
|
||||||
|
title="{{ __('Shipping') }}">
|
||||||
<i class="fa-solid fa-truck-fast wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-truck-fast wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Shipping') }}</span>
|
<span data-wms-sidebar-label>{{ __('Shipping') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('transportation.index'))
|
@if (Route::has('transportation.index'))
|
||||||
<a href="{{ route('transportation.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('transportation.*')) is-active @endif" title="{{ __('Transportation') }}">
|
<a href="{{ route('transportation.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('transportation.*')) is-active @endif"
|
||||||
|
title="{{ __('Transportation') }}">
|
||||||
<i class="fa-solid fa-truck-ramp-box wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-truck-ramp-box wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Transportation') }}</span>
|
<span data-wms-sidebar-label>{{ __('Transportation') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('carrier-management.index'))
|
@if (Route::has('carrier-management.index'))
|
||||||
<a href="{{ route('carrier-management.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('carrier-management.*')) is-active @endif" title="{{ __('Carriers') }}">
|
<a href="{{ route('carrier-management.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('carrier-management.*')) is-active @endif"
|
||||||
|
title="{{ __('Carriers') }}">
|
||||||
<i class="fa-solid fa-route wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-route wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Carriers') }}</span>
|
<span data-wms-sidebar-label>{{ __('Carriers') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -464,34 +483,40 @@
|
|||||||
|
|
||||||
$helpdeskSettingsRoute = Route::has('helpdesk.settings')
|
$helpdeskSettingsRoute = Route::has('helpdesk.settings')
|
||||||
? 'helpdesk.settings'
|
? 'helpdesk.settings'
|
||||||
: (Route::has('helpdesk.settings.index') ? 'helpdesk.settings.index' : null);
|
: (Route::has('helpdesk.settings.index')
|
||||||
|
? 'helpdesk.settings.index'
|
||||||
|
: null);
|
||||||
|
|
||||||
$helpdeskGitRoute = Route::has('helpdesk.git.index')
|
$helpdeskGitRoute = Route::has('helpdesk.git.index') ? 'helpdesk.git.index' : null;
|
||||||
? 'helpdesk.git.index'
|
|
||||||
: null;
|
|
||||||
|
|
||||||
$helpdeskWorkflowRoute = Route::has('helpdesk.workflow-templates.index')
|
$helpdeskWorkflowRoute = Route::has('helpdesk.workflow-templates.index')
|
||||||
? 'helpdesk.workflow-templates.index'
|
? 'helpdesk.workflow-templates.index'
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
$documentationEnabled = Route::has('documentation.index') || Route::has('documentation.documents.index');
|
$documentationEnabled =
|
||||||
|
Route::has('documentation.index') || Route::has('documentation.documents.index');
|
||||||
|
|
||||||
$documentationRoute = Route::has('documentation.index')
|
$documentationRoute = Route::has('documentation.index')
|
||||||
? 'documentation.index'
|
? 'documentation.index'
|
||||||
: (Route::has('documentation.documents.index') ? 'documentation.documents.index' : null);
|
: (Route::has('documentation.documents.index')
|
||||||
|
? 'documentation.documents.index'
|
||||||
|
: null);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if ($helpdeskEnabled || $documentationEnabled)
|
@if ($helpdeskEnabled || $documentationEnabled)
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="support">
|
<div class="wms-sidebar-group" data-wms-menu-group="support">
|
||||||
@if (Route::has('helpdesk.index'))
|
@if (Route::has('helpdesk.index'))
|
||||||
<a href="{{ route('helpdesk.index') }}" wire:navigate class="wms-sidebar-heading wms-sidebar-heading-button @if(request()->routeIs('helpdesk.*')) is-active @endif" data-wms-sidebar-label title="{{ __('Support') }}">
|
<a href="{{ route('helpdesk.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-heading wms-sidebar-heading-button @if (request()->routeIs('helpdesk.*')) is-active @endif"
|
||||||
|
data-wms-sidebar-label title="{{ __('Support') }}">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Support') }}</span>
|
<span>{{ __('Support') }}</span>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
@else
|
@else
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button"
|
||||||
|
data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Support') }}</span>
|
<span>{{ __('Support') }}</span>
|
||||||
@@ -501,28 +526,37 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items mt-2 space-y-1" data-wms-menu-items>
|
<div class="wms-sidebar-group-items mt-2 space-y-1" data-wms-menu-items>
|
||||||
@if ($helpdeskGitRoute)
|
@if ($helpdeskGitRoute)
|
||||||
<a href="{{ route($helpdeskGitRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.git.*')) is-active @endif" title="{{ __('Git Tracking') }}">
|
<a href="{{ route($helpdeskGitRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.git.*')) is-active @endif"
|
||||||
|
title="{{ __('Git Tracking') }}">
|
||||||
<i class="fa-solid fa-code-commit wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-code-commit wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Git Tracking') }}</span>
|
<span data-wms-sidebar-label>{{ __('Git Tracking') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($helpdeskWorkflowRoute)
|
@if ($helpdeskWorkflowRoute)
|
||||||
<a href="{{ route($helpdeskWorkflowRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.workflow-templates.*')) is-active @endif" title="{{ __('Workflow Emails') }}">
|
<a href="{{ route($helpdeskWorkflowRoute) }}" wire:navigate
|
||||||
<i class="fa-solid fa-envelope-circle-check wms-sidebar-icon" aria-hidden="true"></i>
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.workflow-templates.*')) is-active @endif"
|
||||||
|
title="{{ __('Workflow Emails') }}">
|
||||||
|
<i class="fa-solid fa-envelope-circle-check wms-sidebar-icon"
|
||||||
|
aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Workflow Emails') }}</span>
|
<span data-wms-sidebar-label>{{ __('Workflow Emails') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($documentationRoute)
|
@if ($documentationRoute)
|
||||||
<a href="{{ route($documentationRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('documentation.*')) is-active @endif" title="{{ __('Documentation') }}">
|
<a href="{{ route($documentationRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('documentation.*')) is-active @endif"
|
||||||
|
title="{{ __('Documentation') }}">
|
||||||
<i class="fa-solid fa-book-open wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-book-open wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Documentation') }}</span>
|
<span data-wms-sidebar-label>{{ __('Documentation') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($helpdeskSettingsRoute)
|
@if ($helpdeskSettingsRoute)
|
||||||
<a href="{{ route($helpdeskSettingsRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.settings') || request()->routeIs('helpdesk.settings.index')) is-active @endif" title="{{ __('Helpdesk Settings') }}">
|
<a href="{{ route($helpdeskSettingsRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.settings') || request()->routeIs('helpdesk.settings.index')) is-active @endif"
|
||||||
|
title="{{ __('Helpdesk Settings') }}">
|
||||||
<i class="fa-solid fa-gears wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-gears wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Settings') }}</span>
|
<span data-wms-sidebar-label>{{ __('Settings') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -532,7 +566,8 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="integration-reporting">
|
<div class="wms-sidebar-group" data-wms-menu-group="integration-reporting">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Integration & Reporting') }}</span>
|
<span>{{ __('Integration & Reporting') }}</span>
|
||||||
@@ -541,28 +576,36 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('m3-integration.index'))
|
@if (Route::has('m3-integration.index'))
|
||||||
<a href="{{ route('m3-integration.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('m3-integration.*')) is-active @endif" title="{{ __('M3 Integration') }}">
|
<a href="{{ route('m3-integration.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('m3-integration.*')) is-active @endif"
|
||||||
|
title="{{ __('M3 Integration') }}">
|
||||||
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('M3 Integration') }}</span>
|
<span data-wms-sidebar-label>{{ __('M3 Integration') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('sentinel-integration.index'))
|
@if (Route::has('sentinel-integration.index'))
|
||||||
<a href="{{ route('sentinel-integration.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('sentinel-integration.*')) is-active @endif" title="{{ __('Sentinel') }}">
|
<a href="{{ route('sentinel-integration.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('sentinel-integration.*')) is-active @endif"
|
||||||
|
title="{{ __('Sentinel') }}">
|
||||||
<i class="fa-solid fa-satellite-dish wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-satellite-dish wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Sentinel') }}</span>
|
<span data-wms-sidebar-label>{{ __('Sentinel') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('document-archive.index'))
|
@if (Route::has('document-archive.index'))
|
||||||
<a href="{{ route('document-archive.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('document-archive.*')) is-active @endif" title="{{ __('Documents') }}">
|
<a href="{{ route('document-archive.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('document-archive.*')) is-active @endif"
|
||||||
|
title="{{ __('Documents') }}">
|
||||||
<i class="fa-solid fa-box-archive wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-box-archive wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Documents') }}</span>
|
<span data-wms-sidebar-label>{{ __('Documents') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('reporting.index'))
|
@if (Route::has('reporting.index'))
|
||||||
<a href="{{ route('reporting.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('reporting.*')) is-active @endif" title="{{ __('Reporting') }}">
|
<a href="{{ route('reporting.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('reporting.*')) is-active @endif"
|
||||||
|
title="{{ __('Reporting') }}">
|
||||||
<i class="fa-solid fa-file-lines wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-file-lines wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Reporting') }}</span>
|
<span data-wms-sidebar-label>{{ __('Reporting') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -571,7 +614,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="administration">
|
<div class="wms-sidebar-group" data-wms-menu-group="administration">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Administration') }}</span>
|
<span>{{ __('Administration') }}</span>
|
||||||
@@ -580,42 +624,54 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('warehouses.index'))
|
@if (Route::has('warehouses.index'))
|
||||||
<a href="{{ route('warehouses.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('warehouses.*')) is-active @endif" title="{{ __('Warehouses') }}">
|
<a href="{{ route('warehouses.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('warehouses.*')) is-active @endif"
|
||||||
|
title="{{ __('Warehouses') }}">
|
||||||
<i class="fa-solid fa-warehouse wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-warehouse wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Warehouses') }}</span>
|
<span data-wms-sidebar-label>{{ __('Warehouses') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('warehouse-rules.index'))
|
@if (Route::has('warehouse-rules.index'))
|
||||||
<a href="{{ route('warehouse-rules.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('warehouse-rules.*')) is-active @endif" title="{{ __('Validation Rules') }}">
|
<a href="{{ route('warehouse-rules.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('warehouse-rules.*')) is-active @endif"
|
||||||
|
title="{{ __('Validation Rules') }}">
|
||||||
<i class="fa-solid fa-shield-halved wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-shield-halved wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Validation Rules') }}</span>
|
<span data-wms-sidebar-label>{{ __('Validation Rules') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.prices.index'))
|
@if (auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.prices.index'))
|
||||||
<a href="{{ route('platform.prices.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.prices.*')) is-active @endif" title="{{ __('Prices') }}">
|
<a href="{{ route('platform.prices.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.prices.*')) is-active @endif"
|
||||||
|
title="{{ __('Prices') }}">
|
||||||
<i class="fa-solid fa-tags wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-tags wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Prices') }}</span>
|
<span data-wms-sidebar-label>{{ __('Prices') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('configuration.index'))
|
@if (Route::has('configuration.index'))
|
||||||
<a href="{{ route('configuration.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('configuration.*')) is-active @endif" title="{{ __('Configuration') }}">
|
<a href="{{ route('configuration.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('configuration.*')) is-active @endif"
|
||||||
|
title="{{ __('Configuration') }}">
|
||||||
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Configuration') }}</span>
|
<span data-wms-sidebar-label>{{ __('Configuration') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('security.index'))
|
@if (Route::has('security.index'))
|
||||||
<a href="{{ route('security.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('security.*')) is-active @endif" title="{{ __('Security') }}">
|
<a href="{{ route('security.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('security.*')) is-active @endif"
|
||||||
|
title="{{ __('Security') }}">
|
||||||
<i class="fa-solid fa-user-shield wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-user-shield wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Security') }}</span>
|
<span data-wms-sidebar-label>{{ __('Security') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('audit.index'))
|
@if (Route::has('audit.index'))
|
||||||
<a href="{{ route('audit.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('audit.*')) is-active @endif" title="{{ __('Audit') }}">
|
<a href="{{ route('audit.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('audit.*')) is-active @endif"
|
||||||
|
title="{{ __('Audit') }}">
|
||||||
<i class="fa-solid fa-clipboard-check wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-clipboard-check wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Audit') }}</span>
|
<span data-wms-sidebar-label>{{ __('Audit') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -627,11 +683,14 @@
|
|||||||
@php
|
@php
|
||||||
$countriesRoute = Route::has('platform.countries.index')
|
$countriesRoute = Route::has('platform.countries.index')
|
||||||
? 'platform.countries.index'
|
? 'platform.countries.index'
|
||||||
: (Route::has('countries.index') ? 'countries.index' : null);
|
: (Route::has('countries.index')
|
||||||
|
? 'countries.index'
|
||||||
|
: null);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="platform-administration">
|
<div class="wms-sidebar-group" data-wms-menu-group="platform-administration">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button"
|
||||||
|
data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-building-shield wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-building-shield wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Platform Administration') }}</span>
|
<span>{{ __('Platform Administration') }}</span>
|
||||||
@@ -640,28 +699,36 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('platform.companies.index'))
|
@if (Route::has('platform.companies.index'))
|
||||||
<a href="{{ route('platform.companies.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.companies.*')) is-active @endif" title="{{ __('Companies') }}">
|
<a href="{{ route('platform.companies.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.companies.*')) is-active @endif"
|
||||||
|
title="{{ __('Companies') }}">
|
||||||
<i class="fa-solid fa-building wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-building wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Companies') }}</span>
|
<span data-wms-sidebar-label>{{ __('Companies') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('platform.licenses.index'))
|
@if (Route::has('platform.licenses.index'))
|
||||||
<a href="{{ route('platform.licenses.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.licenses.*')) is-active @endif" title="{{ __('Licences') }}">
|
<a href="{{ route('platform.licenses.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.licenses.*')) is-active @endif"
|
||||||
|
title="{{ __('Licences') }}">
|
||||||
<i class="fa-solid fa-key wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-key wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Licences') }}</span>
|
<span data-wms-sidebar-label>{{ __('Licences') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('platform.payments.index'))
|
@if (Route::has('platform.payments.index'))
|
||||||
<a href="{{ route('platform.payments.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.payments.*')) is-active @endif" title="{{ __('Payments') }}">
|
<a href="{{ route('platform.payments.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.payments.*')) is-active @endif"
|
||||||
|
title="{{ __('Payments') }}">
|
||||||
<i class="fa-solid fa-credit-card wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-credit-card wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($countriesRoute)
|
@if ($countriesRoute)
|
||||||
<a href="{{ route($countriesRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.countries.*') || request()->routeIs('countries.*') || request()->routeIs('country.*')) is-active @endif" title="{{ __('Countries') }}">
|
<a href="{{ route($countriesRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.countries.*') || request()->routeIs('countries.*') || request()->routeIs('country.*')) is-active @endif"
|
||||||
|
title="{{ __('Countries') }}">
|
||||||
<i class="fa-solid fa-globe wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-globe wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Countries') }}</span>
|
<span data-wms-sidebar-label>{{ __('Countries') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -671,17 +738,12 @@
|
|||||||
@endif
|
@endif
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<button
|
<button type="button" class="wms-sidebar-resizer" data-wms-sidebar-resizer
|
||||||
type="button"
|
aria-label="{{ __('Resize sidebar') }}" title="{{ __('Drag to resize sidebar') }}"></button>
|
||||||
class="wms-sidebar-resizer"
|
|
||||||
data-wms-sidebar-resizer
|
|
||||||
aria-label="{{ __('Resize sidebar') }}"
|
|
||||||
title="{{ __('Drag to resize sidebar') }}"
|
|
||||||
></button>
|
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<div class="wms-main-panel" data-test="main-panel">
|
<div class="wms-main-panel" data-test="main-panel">
|
||||||
@include("layouts.partials.topbar")
|
@include('layouts.partials.topbar')
|
||||||
|
|
||||||
<main class="wms-content" data-test="main-content" tabindex="-1">
|
<main class="wms-content" data-test="main-content" tabindex="-1">
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
@@ -727,7 +789,8 @@
|
|||||||
const expanded = root.dataset.wmsSidebar !== 'collapsed';
|
const expanded = root.dataset.wmsSidebar !== 'collapsed';
|
||||||
|
|
||||||
button.setAttribute('aria-expanded', expanded ? 'true' : 'false');
|
button.setAttribute('aria-expanded', expanded ? 'true' : 'false');
|
||||||
button.setAttribute('aria-label', expanded ? '{{ __('Collapse sidebar') }}' : '{{ __('Expand sidebar') }}');
|
button.setAttribute('aria-label', expanded ? '{{ __('Collapse sidebar') }}' :
|
||||||
|
'{{ __('Expand sidebar') }}');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -782,7 +845,8 @@
|
|||||||
const selectedByRoute = groups.find((group) => groupHasActiveLink(group)) || null;
|
const selectedByRoute = groups.find((group) => groupHasActiveLink(group)) || null;
|
||||||
const selectedByManualClick = groups.find((group) => group.dataset.wmsManualActive === 'true') || null;
|
const selectedByManualClick = groups.find((group) => group.dataset.wmsManualActive === 'true') || null;
|
||||||
const selectedGroup = selectedByRoute || selectedByManualClick;
|
const selectedGroup = selectedByRoute || selectedByManualClick;
|
||||||
const shouldOpenPlatformForFirstVisit = !selectedGroup && localStorage.getItem(PLATFORM_FIRST_OPEN_KEY) !== '1';
|
const shouldOpenPlatformForFirstVisit = !selectedGroup && localStorage.getItem(
|
||||||
|
PLATFORM_FIRST_OPEN_KEY) !== '1';
|
||||||
|
|
||||||
resetAllMenuGroups();
|
resetAllMenuGroups();
|
||||||
|
|
||||||
@@ -857,7 +921,8 @@
|
|||||||
startX = getClientX(event);
|
startX = getClientX(event);
|
||||||
|
|
||||||
const currentWidth = Number.parseInt(
|
const currentWidth = Number.parseInt(
|
||||||
getComputedStyle(document.documentElement).getPropertyValue('--wms-sidebar-width'),
|
getComputedStyle(document.documentElement).getPropertyValue(
|
||||||
|
'--wms-sidebar-width'),
|
||||||
10
|
10
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -892,10 +957,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
handle.addEventListener('mousedown', startResize);
|
handle.addEventListener('mousedown', startResize);
|
||||||
handle.addEventListener('touchstart', startResize, { passive: false });
|
handle.addEventListener('touchstart', startResize, {
|
||||||
|
passive: false
|
||||||
|
});
|
||||||
|
|
||||||
window.addEventListener('mousemove', moveResize);
|
window.addEventListener('mousemove', moveResize);
|
||||||
window.addEventListener('touchmove', moveResize, { passive: false });
|
window.addEventListener('touchmove', moveResize, {
|
||||||
|
passive: false
|
||||||
|
});
|
||||||
|
|
||||||
window.addEventListener('mouseup', stopResize);
|
window.addEventListener('mouseup', stopResize);
|
||||||
window.addEventListener('touchend', stopResize);
|
window.addEventListener('touchend', stopResize);
|
||||||
@@ -1004,7 +1073,9 @@
|
|||||||
button.addEventListener('click', closeMobileSidebar);
|
button.addEventListener('click', closeMobileSidebar);
|
||||||
});
|
});
|
||||||
|
|
||||||
document.querySelectorAll('.wms-sidebar-link[wire\\:navigate], .wms-sidebar-heading-button[wire\\:navigate]').forEach((link) => {
|
document.querySelectorAll(
|
||||||
|
'.wms-sidebar-link[wire\\:navigate], .wms-sidebar-heading-button[wire\\:navigate]').forEach((
|
||||||
|
link) => {
|
||||||
if (link.dataset.wmsMobileBound === '1') {
|
if (link.dataset.wmsMobileBound === '1') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1012,7 +1083,9 @@
|
|||||||
link.dataset.wmsMobileBound = '1';
|
link.dataset.wmsMobileBound = '1';
|
||||||
|
|
||||||
link.addEventListener('click', function() {
|
link.addEventListener('click', function() {
|
||||||
document.querySelectorAll('.wms-sidebar-link.is-active, .wms-sidebar-heading-button.is-active').forEach((activeLink) => {
|
document.querySelectorAll(
|
||||||
|
'.wms-sidebar-link.is-active, .wms-sidebar-heading-button.is-active')
|
||||||
|
.forEach((activeLink) => {
|
||||||
activeLink.classList.remove('is-active');
|
activeLink.classList.remove('is-active');
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1038,4 +1111,5 @@
|
|||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -24,17 +24,22 @@
|
|||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<body class="h-screen min-h-screen overflow-hidden bg-white font-sans text-zinc-950 antialiased dark:bg-zinc-950 dark:text-zinc-100">
|
<body
|
||||||
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);" aria-hidden="true"></div>
|
class="h-screen min-h-screen overflow-hidden bg-white font-sans text-zinc-950 antialiased dark:bg-zinc-950 dark:text-zinc-100">
|
||||||
|
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);"
|
||||||
|
aria-hidden="true"></div>
|
||||||
|
|
||||||
@vite(['resources/css/app.css'])
|
@vite(['resources/css/app.css'])
|
||||||
|
|
||||||
<div class="wms-app-shell" data-wms-shell data-wms-mobile-shell>
|
<div class="wms-app-shell" data-wms-shell data-wms-mobile-shell>
|
||||||
<button type="button" class="wms-mobile-overlay" data-wms-mobile-close aria-label="{{ __('Close navigation menu') }}"></button>
|
<button type="button" class="wms-mobile-overlay" data-wms-mobile-close
|
||||||
|
aria-label="{{ __('Close navigation menu') }}"></button>
|
||||||
|
|
||||||
<aside id="wms-main-sidebar" class="wms-sidebar" data-wms-sidebar data-test="desktop-sidebar" aria-label="{{ __('Main navigation') }}">
|
<aside id="wms-main-sidebar" class="wms-sidebar" data-wms-sidebar data-test="desktop-sidebar"
|
||||||
|
aria-label="{{ __('Main navigation') }}">
|
||||||
<div class="wms-sidebar-header">
|
<div class="wms-sidebar-header">
|
||||||
<a href="{{ auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard') ? route('platform.dashboard') : route('dashboard') }}" wire:navigate class="wms-brand" aria-label="{{ __('Warehouse Management System') }}">
|
<a href="{{ auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard') ? route('platform.dashboard') : route('dashboard') }}"
|
||||||
|
wire:navigate class="wms-brand" aria-label="{{ __('Warehouse Management System') }}">
|
||||||
<span class="wms-brand-mark" data-wms-brand-toggle title="{{ __('Expand sidebar') }}">
|
<span class="wms-brand-mark" data-wms-brand-toggle title="{{ __('Expand sidebar') }}">
|
||||||
<span class="wms-brand-mark-inner">W</span>
|
<span class="wms-brand-mark-inner">W</span>
|
||||||
</span>
|
</span>
|
||||||
@@ -45,40 +50,39 @@
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button type="button" class="wms-sidebar-toggle" data-wms-sidebar-toggle aria-label="{{ __('Collapse sidebar') }}" aria-expanded="true">
|
<button type="button" class="wms-sidebar-toggle" data-wms-sidebar-toggle
|
||||||
|
aria-label="{{ __('Collapse sidebar') }}" aria-expanded="true">
|
||||||
<span class="wms-toggle-expanded">‹</span>
|
<span class="wms-toggle-expanded">‹</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="button" class="wms-mobile-close" data-wms-mobile-close aria-label="{{ __('Close navigation') }}">×</button>
|
<button type="button" class="wms-mobile-close" data-wms-mobile-close
|
||||||
|
aria-label="{{ __('Close navigation') }}">×</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="wms-sidebar-nav" aria-label="{{ __('Main navigation') }}">
|
<nav class="wms-sidebar-nav" aria-label="{{ __('Main navigation') }}">
|
||||||
@php
|
@php
|
||||||
$platformRoute = auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard')
|
$platformRoute =
|
||||||
|
auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard')
|
||||||
? 'platform.dashboard'
|
? 'platform.dashboard'
|
||||||
: (Route::has('dashboard') ? 'dashboard' : null);
|
: (Route::has('dashboard')
|
||||||
|
? 'dashboard'
|
||||||
|
: null);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if ($platformRoute)
|
@if ($platformRoute)
|
||||||
<div
|
<div class="wms-sidebar-group" data-wms-menu-group="platform"
|
||||||
class="wms-sidebar-group"
|
@if (request()->routeIs('platform.dashboard') || request()->routeIs('dashboard')) data-wms-selected="true" data-wms-has-active="true" @endif>
|
||||||
data-wms-menu-group="platform"
|
<a href="{{ route($platformRoute) }}" wire:navigate
|
||||||
@if(request()->routeIs('platform.dashboard') || request()->routeIs('dashboard')) data-wms-selected="true" data-wms-has-active="true" @endif
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
href="{{ route($platformRoute) }}"
|
|
||||||
wire:navigate
|
|
||||||
class="wms-sidebar-heading wms-sidebar-heading-button wms-sidebar-primary-link"
|
class="wms-sidebar-heading wms-sidebar-heading-button wms-sidebar-primary-link"
|
||||||
title="{{ __('Platform') }}"
|
title="{{ __('Platform') }}" data-wms-sidebar-label>
|
||||||
data-wms-sidebar-label
|
|
||||||
>
|
|
||||||
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Platform') }}</span>
|
<span>{{ __('Platform') }}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="operations">
|
<div class="wms-sidebar-group" data-wms-menu-group="operations">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-chart-simple wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-chart-simple wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Operations') }}</span>
|
<span>{{ __('Operations') }}</span>
|
||||||
@@ -87,42 +91,54 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('analytics.index'))
|
@if (Route::has('analytics.index'))
|
||||||
<a href="{{ route('analytics.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('analytics.*')) is-active @endif" title="{{ __('Analytics') }}">
|
<a href="{{ route('analytics.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('analytics.*')) is-active @endif"
|
||||||
|
title="{{ __('Analytics') }}">
|
||||||
<i class="fa-solid fa-chart-line wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-chart-line wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Analytics') }}</span>
|
<span data-wms-sidebar-label>{{ __('Analytics') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('inventory-management.index'))
|
@if (Route::has('inventory-management.index'))
|
||||||
<a href="{{ route('inventory-management.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('inventory-management.*')) is-active @endif" title="{{ __('Inventory') }}">
|
<a href="{{ route('inventory-management.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('inventory-management.*')) is-active @endif"
|
||||||
|
title="{{ __('Inventory') }}">
|
||||||
<i class="fa-solid fa-boxes-stacked wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-boxes-stacked wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Inventory') }}</span>
|
<span data-wms-sidebar-label>{{ __('Inventory') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('replenishment.index'))
|
@if (Route::has('replenishment.index'))
|
||||||
<a href="{{ route('replenishment.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('replenishment.*')) is-active @endif" title="{{ __('Replenishment') }}">
|
<a href="{{ route('replenishment.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('replenishment.*')) is-active @endif"
|
||||||
|
title="{{ __('Replenishment') }}">
|
||||||
<i class="fa-solid fa-arrows-rotate wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-arrows-rotate wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Replenishment') }}</span>
|
<span data-wms-sidebar-label>{{ __('Replenishment') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('shipping.index'))
|
@if (Route::has('shipping.index'))
|
||||||
<a href="{{ route('shipping.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('shipping.*')) is-active @endif" title="{{ __('Shipping') }}">
|
<a href="{{ route('shipping.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('shipping.*')) is-active @endif"
|
||||||
|
title="{{ __('Shipping') }}">
|
||||||
<i class="fa-solid fa-truck-fast wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-truck-fast wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Shipping') }}</span>
|
<span data-wms-sidebar-label>{{ __('Shipping') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('transportation.index'))
|
@if (Route::has('transportation.index'))
|
||||||
<a href="{{ route('transportation.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('transportation.*')) is-active @endif" title="{{ __('Transportation') }}">
|
<a href="{{ route('transportation.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('transportation.*')) is-active @endif"
|
||||||
|
title="{{ __('Transportation') }}">
|
||||||
<i class="fa-solid fa-truck-ramp-box wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-truck-ramp-box wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Transportation') }}</span>
|
<span data-wms-sidebar-label>{{ __('Transportation') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('carrier-management.index'))
|
@if (Route::has('carrier-management.index'))
|
||||||
<a href="{{ route('carrier-management.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('carrier-management.*')) is-active @endif" title="{{ __('Carriers') }}">
|
<a href="{{ route('carrier-management.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('carrier-management.*')) is-active @endif"
|
||||||
|
title="{{ __('Carriers') }}">
|
||||||
<i class="fa-solid fa-route wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-route wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Carriers') }}</span>
|
<span data-wms-sidebar-label>{{ __('Carriers') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -135,34 +151,40 @@
|
|||||||
|
|
||||||
$helpdeskSettingsRoute = Route::has('helpdesk.settings')
|
$helpdeskSettingsRoute = Route::has('helpdesk.settings')
|
||||||
? 'helpdesk.settings'
|
? 'helpdesk.settings'
|
||||||
: (Route::has('helpdesk.settings.index') ? 'helpdesk.settings.index' : null);
|
: (Route::has('helpdesk.settings.index')
|
||||||
|
? 'helpdesk.settings.index'
|
||||||
|
: null);
|
||||||
|
|
||||||
$helpdeskGitRoute = Route::has('helpdesk.git.index')
|
$helpdeskGitRoute = Route::has('helpdesk.git.index') ? 'helpdesk.git.index' : null;
|
||||||
? 'helpdesk.git.index'
|
|
||||||
: null;
|
|
||||||
|
|
||||||
$helpdeskWorkflowRoute = Route::has('helpdesk.workflow-templates.index')
|
$helpdeskWorkflowRoute = Route::has('helpdesk.workflow-templates.index')
|
||||||
? 'helpdesk.workflow-templates.index'
|
? 'helpdesk.workflow-templates.index'
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
$documentationEnabled = Route::has('documentation.index') || Route::has('documentation.documents.index');
|
$documentationEnabled =
|
||||||
|
Route::has('documentation.index') || Route::has('documentation.documents.index');
|
||||||
|
|
||||||
$documentationRoute = Route::has('documentation.index')
|
$documentationRoute = Route::has('documentation.index')
|
||||||
? 'documentation.index'
|
? 'documentation.index'
|
||||||
: (Route::has('documentation.documents.index') ? 'documentation.documents.index' : null);
|
: (Route::has('documentation.documents.index')
|
||||||
|
? 'documentation.documents.index'
|
||||||
|
: null);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if ($helpdeskEnabled || $documentationEnabled)
|
@if ($helpdeskEnabled || $documentationEnabled)
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="support">
|
<div class="wms-sidebar-group" data-wms-menu-group="support">
|
||||||
@if (Route::has('helpdesk.index'))
|
@if (Route::has('helpdesk.index'))
|
||||||
<a href="{{ route('helpdesk.index') }}" wire:navigate class="wms-sidebar-heading wms-sidebar-heading-button @if(request()->routeIs('helpdesk.*')) is-active @endif" data-wms-sidebar-label title="{{ __('Support') }}">
|
<a href="{{ route('helpdesk.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-heading wms-sidebar-heading-button @if (request()->routeIs('helpdesk.*')) is-active @endif"
|
||||||
|
data-wms-sidebar-label title="{{ __('Support') }}">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Support') }}</span>
|
<span>{{ __('Support') }}</span>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
@else
|
@else
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button"
|
||||||
|
data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Support') }}</span>
|
<span>{{ __('Support') }}</span>
|
||||||
@@ -172,28 +194,37 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items mt-2 space-y-1" data-wms-menu-items>
|
<div class="wms-sidebar-group-items mt-2 space-y-1" data-wms-menu-items>
|
||||||
@if ($helpdeskGitRoute)
|
@if ($helpdeskGitRoute)
|
||||||
<a href="{{ route($helpdeskGitRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.git.*')) is-active @endif" title="{{ __('Git Tracking') }}">
|
<a href="{{ route($helpdeskGitRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.git.*')) is-active @endif"
|
||||||
|
title="{{ __('Git Tracking') }}">
|
||||||
<i class="fa-solid fa-code-commit wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-code-commit wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Git Tracking') }}</span>
|
<span data-wms-sidebar-label>{{ __('Git Tracking') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($helpdeskWorkflowRoute)
|
@if ($helpdeskWorkflowRoute)
|
||||||
<a href="{{ route($helpdeskWorkflowRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.workflow-templates.*')) is-active @endif" title="{{ __('Workflow Emails') }}">
|
<a href="{{ route($helpdeskWorkflowRoute) }}" wire:navigate
|
||||||
<i class="fa-solid fa-envelope-circle-check wms-sidebar-icon" aria-hidden="true"></i>
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.workflow-templates.*')) is-active @endif"
|
||||||
|
title="{{ __('Workflow Emails') }}">
|
||||||
|
<i class="fa-solid fa-envelope-circle-check wms-sidebar-icon"
|
||||||
|
aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Workflow Emails') }}</span>
|
<span data-wms-sidebar-label>{{ __('Workflow Emails') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($documentationRoute)
|
@if ($documentationRoute)
|
||||||
<a href="{{ route($documentationRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('documentation.*')) is-active @endif" title="{{ __('Documentation') }}">
|
<a href="{{ route($documentationRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('documentation.*')) is-active @endif"
|
||||||
|
title="{{ __('Documentation') }}">
|
||||||
<i class="fa-solid fa-book-open wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-book-open wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Documentation') }}</span>
|
<span data-wms-sidebar-label>{{ __('Documentation') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($helpdeskSettingsRoute)
|
@if ($helpdeskSettingsRoute)
|
||||||
<a href="{{ route($helpdeskSettingsRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.settings') || request()->routeIs('helpdesk.settings.index')) is-active @endif" title="{{ __('Helpdesk Settings') }}">
|
<a href="{{ route($helpdeskSettingsRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.settings') || request()->routeIs('helpdesk.settings.index')) is-active @endif"
|
||||||
|
title="{{ __('Helpdesk Settings') }}">
|
||||||
<i class="fa-solid fa-gears wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-gears wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Settings') }}</span>
|
<span data-wms-sidebar-label>{{ __('Settings') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -203,7 +234,8 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="integration-reporting">
|
<div class="wms-sidebar-group" data-wms-menu-group="integration-reporting">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Integration & Reporting') }}</span>
|
<span>{{ __('Integration & Reporting') }}</span>
|
||||||
@@ -212,28 +244,36 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('m3-integration.index'))
|
@if (Route::has('m3-integration.index'))
|
||||||
<a href="{{ route('m3-integration.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('m3-integration.*')) is-active @endif" title="{{ __('M3 Integration') }}">
|
<a href="{{ route('m3-integration.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('m3-integration.*')) is-active @endif"
|
||||||
|
title="{{ __('M3 Integration') }}">
|
||||||
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('M3 Integration') }}</span>
|
<span data-wms-sidebar-label>{{ __('M3 Integration') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('sentinel-integration.index'))
|
@if (Route::has('sentinel-integration.index'))
|
||||||
<a href="{{ route('sentinel-integration.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('sentinel-integration.*')) is-active @endif" title="{{ __('Sentinel') }}">
|
<a href="{{ route('sentinel-integration.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('sentinel-integration.*')) is-active @endif"
|
||||||
|
title="{{ __('Sentinel') }}">
|
||||||
<i class="fa-solid fa-satellite-dish wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-satellite-dish wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Sentinel') }}</span>
|
<span data-wms-sidebar-label>{{ __('Sentinel') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('document-archive.index'))
|
@if (Route::has('document-archive.index'))
|
||||||
<a href="{{ route('document-archive.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('document-archive.*')) is-active @endif" title="{{ __('Documents') }}">
|
<a href="{{ route('document-archive.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('document-archive.*')) is-active @endif"
|
||||||
|
title="{{ __('Documents') }}">
|
||||||
<i class="fa-solid fa-box-archive wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-box-archive wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Documents') }}</span>
|
<span data-wms-sidebar-label>{{ __('Documents') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('reporting.index'))
|
@if (Route::has('reporting.index'))
|
||||||
<a href="{{ route('reporting.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('reporting.*')) is-active @endif" title="{{ __('Reporting') }}">
|
<a href="{{ route('reporting.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('reporting.*')) is-active @endif"
|
||||||
|
title="{{ __('Reporting') }}">
|
||||||
<i class="fa-solid fa-file-lines wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-file-lines wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Reporting') }}</span>
|
<span data-wms-sidebar-label>{{ __('Reporting') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -242,7 +282,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="administration">
|
<div class="wms-sidebar-group" data-wms-menu-group="administration">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Administration') }}</span>
|
<span>{{ __('Administration') }}</span>
|
||||||
@@ -251,42 +292,54 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('warehouses.index'))
|
@if (Route::has('warehouses.index'))
|
||||||
<a href="{{ route('warehouses.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('warehouses.*')) is-active @endif" title="{{ __('Warehouses') }}">
|
<a href="{{ route('warehouses.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('warehouses.*')) is-active @endif"
|
||||||
|
title="{{ __('Warehouses') }}">
|
||||||
<i class="fa-solid fa-warehouse wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-warehouse wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Warehouses') }}</span>
|
<span data-wms-sidebar-label>{{ __('Warehouses') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('warehouse-rules.index'))
|
@if (Route::has('warehouse-rules.index'))
|
||||||
<a href="{{ route('warehouse-rules.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('warehouse-rules.*')) is-active @endif" title="{{ __('Validation Rules') }}">
|
<a href="{{ route('warehouse-rules.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('warehouse-rules.*')) is-active @endif"
|
||||||
|
title="{{ __('Validation Rules') }}">
|
||||||
<i class="fa-solid fa-shield-halved wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-shield-halved wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Validation Rules') }}</span>
|
<span data-wms-sidebar-label>{{ __('Validation Rules') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.prices.index'))
|
@if (auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.prices.index'))
|
||||||
<a href="{{ route('platform.prices.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.prices.*')) is-active @endif" title="{{ __('Prices') }}">
|
<a href="{{ route('platform.prices.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.prices.*')) is-active @endif"
|
||||||
|
title="{{ __('Prices') }}">
|
||||||
<i class="fa-solid fa-tags wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-tags wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Prices') }}</span>
|
<span data-wms-sidebar-label>{{ __('Prices') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('configuration.index'))
|
@if (Route::has('configuration.index'))
|
||||||
<a href="{{ route('configuration.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('configuration.*')) is-active @endif" title="{{ __('Configuration') }}">
|
<a href="{{ route('configuration.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('configuration.*')) is-active @endif"
|
||||||
|
title="{{ __('Configuration') }}">
|
||||||
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Configuration') }}</span>
|
<span data-wms-sidebar-label>{{ __('Configuration') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('security.index'))
|
@if (Route::has('security.index'))
|
||||||
<a href="{{ route('security.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('security.*')) is-active @endif" title="{{ __('Security') }}">
|
<a href="{{ route('security.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('security.*')) is-active @endif"
|
||||||
|
title="{{ __('Security') }}">
|
||||||
<i class="fa-solid fa-user-shield wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-user-shield wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Security') }}</span>
|
<span data-wms-sidebar-label>{{ __('Security') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('audit.index'))
|
@if (Route::has('audit.index'))
|
||||||
<a href="{{ route('audit.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('audit.*')) is-active @endif" title="{{ __('Audit') }}">
|
<a href="{{ route('audit.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('audit.*')) is-active @endif"
|
||||||
|
title="{{ __('Audit') }}">
|
||||||
<i class="fa-solid fa-clipboard-check wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-clipboard-check wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Audit') }}</span>
|
<span data-wms-sidebar-label>{{ __('Audit') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -296,7 +349,8 @@
|
|||||||
|
|
||||||
@if (auth()->user()?->isMpbaPlatformAdmin())
|
@if (auth()->user()?->isMpbaPlatformAdmin())
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="platform-administration">
|
<div class="wms-sidebar-group" data-wms-menu-group="platform-administration">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button"
|
||||||
|
data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-building-shield wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-building-shield wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Platform Administration') }}</span>
|
<span>{{ __('Platform Administration') }}</span>
|
||||||
@@ -305,28 +359,36 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('platform.companies.index'))
|
@if (Route::has('platform.companies.index'))
|
||||||
<a href="{{ route('platform.companies.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.companies.*')) is-active @endif" title="{{ __('Companies') }}">
|
<a href="{{ route('platform.companies.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.companies.*')) is-active @endif"
|
||||||
|
title="{{ __('Companies') }}">
|
||||||
<i class="fa-solid fa-building wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-building wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Companies') }}</span>
|
<span data-wms-sidebar-label>{{ __('Companies') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('platform.licenses.index'))
|
@if (Route::has('platform.licenses.index'))
|
||||||
<a href="{{ route('platform.licenses.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.licenses.*')) is-active @endif" title="{{ __('Licences') }}">
|
<a href="{{ route('platform.licenses.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.licenses.*')) is-active @endif"
|
||||||
|
title="{{ __('Licences') }}">
|
||||||
<i class="fa-solid fa-key wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-key wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Licences') }}</span>
|
<span data-wms-sidebar-label>{{ __('Licences') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('platform.payments.index'))
|
@if (Route::has('platform.payments.index'))
|
||||||
<a href="{{ route('platform.payments.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.payments.*')) is-active @endif" title="{{ __('Payments') }}">
|
<a href="{{ route('platform.payments.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.payments.*')) is-active @endif"
|
||||||
|
title="{{ __('Payments') }}">
|
||||||
<i class="fa-solid fa-credit-card wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-credit-card wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('countries.index'))
|
@if (Route::has('countries.index'))
|
||||||
<a href="{{ route('countries.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('countries.*')) is-active @endif" title="{{ __('Countries') }}">
|
<a href="{{ route('countries.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('countries.*')) is-active @endif"
|
||||||
|
title="{{ __('Countries') }}">
|
||||||
<i class="fa-solid fa-globe wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-globe wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Countries') }}</span>
|
<span data-wms-sidebar-label>{{ __('Countries') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -335,17 +397,12 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</nav>
|
</nav>
|
||||||
<button
|
<button type="button" class="wms-sidebar-resizer" data-wms-sidebar-resizer
|
||||||
type="button"
|
aria-label="{{ __('Resize sidebar') }}" title="{{ __('Drag to resize sidebar') }}"></button>
|
||||||
class="wms-sidebar-resizer"
|
|
||||||
data-wms-sidebar-resizer
|
|
||||||
aria-label="{{ __('Resize sidebar') }}"
|
|
||||||
title="{{ __('Drag to resize sidebar') }}"
|
|
||||||
></button>
|
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<div class="wms-main-panel" data-test="main-panel">
|
<div class="wms-main-panel" data-test="main-panel">
|
||||||
@include("layouts.partials.topbar")
|
@include('layouts.partials.topbar')
|
||||||
|
|
||||||
<main class="wms-content" data-test="main-content" tabindex="-1">
|
<main class="wms-content" data-test="main-content" tabindex="-1">
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
@@ -353,12 +410,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div id="wms-toast-stack"
|
||||||
id="wms-toast-stack"
|
|
||||||
class="fixed right-4 top-4 z-[9999] flex w-[min(24rem,calc(100vw-2rem))] flex-col gap-3 font-sans"
|
class="fixed right-4 top-4 z-[9999] flex w-[min(24rem,calc(100vw-2rem))] flex-col gap-3 font-sans"
|
||||||
aria-live="polite"
|
aria-live="polite" aria-atomic="true"></div>
|
||||||
aria-atomic="true"
|
|
||||||
></div>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.wmsToast = function(options) {
|
window.wmsToast = function(options) {
|
||||||
@@ -520,7 +574,8 @@
|
|||||||
const expanded = root.dataset.wmsSidebar !== 'collapsed';
|
const expanded = root.dataset.wmsSidebar !== 'collapsed';
|
||||||
|
|
||||||
button.setAttribute('aria-expanded', expanded ? 'true' : 'false');
|
button.setAttribute('aria-expanded', expanded ? 'true' : 'false');
|
||||||
button.setAttribute('aria-label', expanded ? '{{ __('Collapse sidebar') }}' : '{{ __('Expand sidebar') }}');
|
button.setAttribute('aria-label', expanded ? '{{ __('Collapse sidebar') }}' :
|
||||||
|
'{{ __('Expand sidebar') }}');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -538,9 +593,11 @@
|
|||||||
return child.matches('.wms-sidebar-heading-button.is-active');
|
return child.matches('.wms-sidebar-heading-button.is-active');
|
||||||
});
|
});
|
||||||
|
|
||||||
const routeSelectedGroup = group.dataset.wmsSelected === 'true' && group.dataset.wmsHasActive === 'true';
|
const routeSelectedGroup = group.dataset.wmsSelected === 'true' && group.dataset.wmsHasActive ===
|
||||||
|
'true';
|
||||||
|
|
||||||
return routeSelectedGroup || activeHeading || (items ? items.querySelector('.wms-sidebar-link.is-active') !== null : false);
|
return routeSelectedGroup || activeHeading || (items ? items.querySelector(
|
||||||
|
'.wms-sidebar-link.is-active') !== null : false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setMenuGroupOpen(group, isOpen) {
|
function setMenuGroupOpen(group, isOpen) {
|
||||||
@@ -577,7 +634,8 @@
|
|||||||
const selectedByRoute = groups.find((group) => groupHasActiveLink(group)) || null;
|
const selectedByRoute = groups.find((group) => groupHasActiveLink(group)) || null;
|
||||||
const selectedByManualClick = groups.find((group) => group.dataset.wmsManualActive === 'true') || null;
|
const selectedByManualClick = groups.find((group) => group.dataset.wmsManualActive === 'true') || null;
|
||||||
const selectedGroup = selectedByRoute || selectedByManualClick;
|
const selectedGroup = selectedByRoute || selectedByManualClick;
|
||||||
const shouldOpenPlatformForFirstVisit = !selectedGroup && localStorage.getItem(PLATFORM_FIRST_OPEN_KEY) !== '1';
|
const shouldOpenPlatformForFirstVisit = !selectedGroup && localStorage.getItem(
|
||||||
|
PLATFORM_FIRST_OPEN_KEY) !== '1';
|
||||||
|
|
||||||
resetAllMenuGroups();
|
resetAllMenuGroups();
|
||||||
|
|
||||||
@@ -652,7 +710,8 @@
|
|||||||
startX = getClientX(event);
|
startX = getClientX(event);
|
||||||
|
|
||||||
const currentWidth = Number.parseInt(
|
const currentWidth = Number.parseInt(
|
||||||
getComputedStyle(document.documentElement).getPropertyValue('--wms-sidebar-width'),
|
getComputedStyle(document.documentElement).getPropertyValue(
|
||||||
|
'--wms-sidebar-width'),
|
||||||
10
|
10
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -687,10 +746,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
handle.addEventListener('mousedown', startResize);
|
handle.addEventListener('mousedown', startResize);
|
||||||
handle.addEventListener('touchstart', startResize, { passive: false });
|
handle.addEventListener('touchstart', startResize, {
|
||||||
|
passive: false
|
||||||
|
});
|
||||||
|
|
||||||
window.addEventListener('mousemove', moveResize);
|
window.addEventListener('mousemove', moveResize);
|
||||||
window.addEventListener('touchmove', moveResize, { passive: false });
|
window.addEventListener('touchmove', moveResize, {
|
||||||
|
passive: false
|
||||||
|
});
|
||||||
|
|
||||||
window.addEventListener('mouseup', stopResize);
|
window.addEventListener('mouseup', stopResize);
|
||||||
window.addEventListener('touchend', stopResize);
|
window.addEventListener('touchend', stopResize);
|
||||||
@@ -799,7 +862,9 @@
|
|||||||
button.addEventListener('click', closeMobileSidebar);
|
button.addEventListener('click', closeMobileSidebar);
|
||||||
});
|
});
|
||||||
|
|
||||||
document.querySelectorAll('.wms-sidebar-link[wire\\:navigate], .wms-sidebar-heading-button[wire\\:navigate]').forEach((link) => {
|
document.querySelectorAll(
|
||||||
|
'.wms-sidebar-link[wire\\:navigate], .wms-sidebar-heading-button[wire\\:navigate]').forEach((
|
||||||
|
link) => {
|
||||||
if (link.dataset.wmsMobileBound === '1') {
|
if (link.dataset.wmsMobileBound === '1') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -807,7 +872,9 @@
|
|||||||
link.dataset.wmsMobileBound = '1';
|
link.dataset.wmsMobileBound = '1';
|
||||||
|
|
||||||
link.addEventListener('click', function() {
|
link.addEventListener('click', function() {
|
||||||
document.querySelectorAll('.wms-sidebar-link.is-active, .wms-sidebar-heading-button.is-active').forEach((activeLink) => {
|
document.querySelectorAll(
|
||||||
|
'.wms-sidebar-link.is-active, .wms-sidebar-heading-button.is-active')
|
||||||
|
.forEach((activeLink) => {
|
||||||
activeLink.classList.remove('is-active');
|
activeLink.classList.remove('is-active');
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -833,4 +900,5 @@
|
|||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
@vite('resources/js/passkeys.js')
|
@vite('resources/js/passkeys.js')
|
||||||
@endassets
|
@endassets
|
||||||
|
|
||||||
<div
|
<div x-data="{
|
||||||
x-data="{
|
|
||||||
supported: false,
|
supported: false,
|
||||||
showForm: false,
|
showForm: false,
|
||||||
name: '',
|
name: '',
|
||||||
@@ -41,19 +40,14 @@
|
|||||||
this.name = '';
|
this.name = '';
|
||||||
this.error = null;
|
this.error = null;
|
||||||
},
|
},
|
||||||
}"
|
}">
|
||||||
>
|
|
||||||
<template x-if="!supported">
|
<template x-if="!supported">
|
||||||
<flux:text>{{ __('Passkeys are not supported in this browser.') }}</flux:text>
|
<flux:text>{{ __('Passkeys are not supported in this browser.') }}</flux:text>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template x-if="supported && !showForm">
|
<template x-if="supported && !showForm">
|
||||||
<div>
|
<div>
|
||||||
<flux:button
|
<flux:button variant="primary" icon="plus" x-on:click="showForm = true">
|
||||||
variant="primary"
|
|
||||||
icon="plus"
|
|
||||||
x-on:click="showForm = true"
|
|
||||||
>
|
|
||||||
{{ __('Add passkey') }}
|
{{ __('Add passkey') }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
</div>
|
</div>
|
||||||
@@ -61,31 +55,19 @@
|
|||||||
|
|
||||||
<template x-if="supported && showForm">
|
<template x-if="supported && showForm">
|
||||||
<div class="space-y-4 rounded-lg border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800/50 p-4">
|
<div class="space-y-4 rounded-lg border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800/50 p-4">
|
||||||
<flux:input
|
<flux:input label="{{ __('Passkey name') }}" x-model="name"
|
||||||
label="{{ __('Passkey name') }}"
|
placeholder="{{ __('e.g., MacBook Pro, iPhone') }}" x-on:keydown.enter.prevent="register()"
|
||||||
x-model="name"
|
x-ref="passkeyNameInput" x-init="$nextTick(() => $refs.passkeyNameInput?.focus())" />
|
||||||
placeholder="{{ __('e.g., MacBook Pro, iPhone') }}"
|
|
||||||
x-on:keydown.enter.prevent="register()"
|
|
||||||
x-ref="passkeyNameInput"
|
|
||||||
x-init="$nextTick(() => $refs.passkeyNameInput?.focus())"
|
|
||||||
/>
|
|
||||||
<flux:text class="!mt-1">{{ __('Give this passkey a name to help you identify it later.') }}</flux:text>
|
<flux:text class="!mt-1">{{ __('Give this passkey a name to help you identify it later.') }}</flux:text>
|
||||||
|
|
||||||
<p x-show="error" x-text="error" x-cloak class="text-sm text-red-600 dark:text-red-400"></p>
|
<p x-show="error" x-text="error" x-cloak class="text-sm text-red-600 dark:text-red-400"></p>
|
||||||
|
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2">
|
||||||
<flux:button
|
<flux:button variant="primary" x-on:click="register()" x-bind:disabled="loading || !name.trim()">
|
||||||
variant="primary"
|
|
||||||
x-on:click="register()"
|
|
||||||
x-bind:disabled="loading || !name.trim()"
|
|
||||||
>
|
|
||||||
<span x-show="!loading">{{ __('Register passkey') }}</span>
|
<span x-show="!loading">{{ __('Register passkey') }}</span>
|
||||||
<span x-show="loading" x-cloak>{{ __('Registering...') }}</span>
|
<span x-show="loading" x-cloak>{{ __('Registering...') }}</span>
|
||||||
</flux:button>
|
</flux:button>
|
||||||
<flux:button
|
<flux:button variant="ghost" x-on:click="cancel()">
|
||||||
variant="ghost"
|
|
||||||
x-on:click="cancel()"
|
|
||||||
>
|
|
||||||
{{ __('Cancel') }}
|
{{ __('Cancel') }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,8 +10,7 @@
|
|||||||
@vite('resources/js/passkeys.js')
|
@vite('resources/js/passkeys.js')
|
||||||
@endassets
|
@endassets
|
||||||
|
|
||||||
<div
|
<div x-data="{
|
||||||
x-data="{
|
|
||||||
supported: false,
|
supported: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
error: null,
|
error: null,
|
||||||
@@ -42,23 +41,16 @@
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}"
|
}">
|
||||||
>
|
|
||||||
<template x-if="supported">
|
<template x-if="supported">
|
||||||
<div>
|
<div>
|
||||||
<div class="grid gap-2">
|
<div class="grid gap-2">
|
||||||
<flux:button
|
<flux:button variant="outline" icon="finger-print" class="w-full" x-on:click="verify()"
|
||||||
variant="outline"
|
x-bind:disabled="loading">
|
||||||
icon="finger-print"
|
|
||||||
class="w-full"
|
|
||||||
x-on:click="verify()"
|
|
||||||
x-bind:disabled="loading"
|
|
||||||
>
|
|
||||||
<span x-show="!loading">{{ $label }}</span>
|
<span x-show="!loading">{{ $label }}</span>
|
||||||
<span x-show="loading" x-cloak>{{ $loadingLabel }}</span>
|
<span x-show="loading" x-cloak>{{ $loadingLabel }}</span>
|
||||||
</flux:button>
|
</flux:button>
|
||||||
<p x-show="error" x-text="error" x-cloak
|
<p x-show="error" x-text="error" x-cloak class="text-sm text-center text-red-600 dark:text-red-400"></p>
|
||||||
class="text-sm text-center text-red-600 dark:text-red-400"></p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="relative my-6">
|
<div class="relative my-6">
|
||||||
|
|||||||
@@ -1,28 +1,30 @@
|
|||||||
<x-layouts::app :title="__('Dashboard')">
|
<x-layouts::app :title="__('Dashboard')">
|
||||||
<x-wms.page-hero
|
<x-wms.page-hero eyebrow="Operations" title="Warehouse Command Centre"
|
||||||
eyebrow="Operations"
|
|
||||||
title="Warehouse Command Centre"
|
|
||||||
description="Open inventory, shipping, replenishment, analytics and administration workspaces from one clean operational dashboard."
|
description="Open inventory, shipping, replenishment, analytics and administration workspaces from one clean operational dashboard."
|
||||||
icon="fa-solid fa-gauge-high"
|
icon="fa-solid fa-gauge-high" />
|
||||||
/>
|
|
||||||
|
|
||||||
<div class="grid gap-6 lg:grid-cols-3">
|
<div class="grid gap-6 lg:grid-cols-3">
|
||||||
<section class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
<section class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
<p class="text-sm font-semibold uppercase tracking-[0.2em] text-cyan-600 dark:text-cyan-300">Operations</p>
|
<p class="text-sm font-semibold uppercase tracking-[0.2em] text-cyan-600 dark:text-cyan-300">Operations</p>
|
||||||
<h2 class="mt-3 text-2xl font-bold text-zinc-900 dark:text-white">Warehouse command centre</h2>
|
<h2 class="mt-3 text-2xl font-bold text-zinc-900 dark:text-white">Warehouse command centre</h2>
|
||||||
<p class="mt-2 text-sm leading-6 text-zinc-600 dark:text-zinc-300">Use the navigation to open inventory, shipping, replenishment, analytics and administration workspaces.</p>
|
<p class="mt-2 text-sm leading-6 text-zinc-600 dark:text-zinc-300">Use the navigation to open inventory,
|
||||||
|
shipping, replenishment, analytics and administration workspaces.</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
<section class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
<p class="text-sm font-semibold uppercase tracking-[0.2em] text-emerald-600 dark:text-emerald-300">Health</p>
|
<p class="text-sm font-semibold uppercase tracking-[0.2em] text-emerald-600 dark:text-emerald-300">Health
|
||||||
|
</p>
|
||||||
<h2 class="mt-3 text-2xl font-bold text-zinc-900 dark:text-white">System OK</h2>
|
<h2 class="mt-3 text-2xl font-bold text-zinc-900 dark:text-white">System OK</h2>
|
||||||
<p class="mt-2 text-sm leading-6 text-zinc-600 dark:text-zinc-300">Core platform services are ready for module integration, testing and tenant configuration.</p>
|
<p class="mt-2 text-sm leading-6 text-zinc-600 dark:text-zinc-300">Core platform services are ready for
|
||||||
|
module integration, testing and tenant configuration.</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
<section
|
||||||
|
class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
<p class="text-sm font-semibold uppercase tracking-[0.2em] text-sky-600 dark:text-sky-300">Modules</p>
|
<p class="text-sm font-semibold uppercase tracking-[0.2em] text-sky-600 dark:text-sky-300">Modules</p>
|
||||||
<h2 class="mt-3 text-2xl font-bold text-zinc-900 dark:text-white">Enabled workspaces</h2>
|
<h2 class="mt-3 text-2xl font-bold text-zinc-900 dark:text-white">Enabled workspaces</h2>
|
||||||
<p class="mt-2 text-sm leading-6 text-zinc-600 dark:text-zinc-300">Placeholder modules are wired into the sidebar and ready for production controllers.</p>
|
<p class="mt-2 text-sm leading-6 text-zinc-600 dark:text-zinc-300">Placeholder modules are wired into the
|
||||||
|
sidebar and ready for production controllers.</p>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</x-layouts::app>
|
</x-layouts::app>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
@@ -8,7 +9,8 @@
|
|||||||
|
|
||||||
<!-- Styles -->
|
<!-- Styles -->
|
||||||
<style>
|
<style>
|
||||||
html, body {
|
html,
|
||||||
|
body {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #636b6f;
|
color: #636b6f;
|
||||||
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||||
@@ -41,8 +43,10 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);" aria-hidden="true"></div>
|
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);"
|
||||||
|
aria-hidden="true"></div>
|
||||||
<div class="flex-center position-ref full-height">
|
<div class="flex-center position-ref full-height">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
@@ -51,4 +55,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -25,23 +25,14 @@
|
|||||||
};
|
};
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<svg
|
<svg {{ $attributes->class($classes) }} data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
|
||||||
{{ $attributes->class($classes) }}
|
fill="none" stroke="currentColor" stroke-width="{{ $strokeWidth }}" stroke-linecap="round" stroke-linejoin="round"
|
||||||
data-flux-icon
|
aria-hidden="true" data-slot="icon">
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
fill="none"
|
|
||||||
stroke="currentColor"
|
|
||||||
stroke-width="{{ $strokeWidth }}"
|
|
||||||
stroke-linecap="round"
|
|
||||||
stroke-linejoin="round"
|
|
||||||
aria-hidden="true"
|
|
||||||
data-slot="icon"
|
|
||||||
>
|
|
||||||
<path d="M12 7v14" />
|
<path d="M12 7v14" />
|
||||||
<path d="M16 12h2" />
|
<path d="M16 12h2" />
|
||||||
<path d="M16 8h2" />
|
<path d="M16 8h2" />
|
||||||
<path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z" />
|
<path
|
||||||
|
d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z" />
|
||||||
<path d="M6 12h2" />
|
<path d="M6 12h2" />
|
||||||
<path d="M6 8h2" />
|
<path d="M6 8h2" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
@@ -25,19 +25,9 @@
|
|||||||
};
|
};
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<svg
|
<svg {{ $attributes->class($classes) }} data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
|
||||||
{{ $attributes->class($classes) }}
|
fill="none" stroke="currentColor" stroke-width="{{ $strokeWidth }}" stroke-linecap="round" stroke-linejoin="round"
|
||||||
data-flux-icon
|
aria-hidden="true" data-slot="icon">
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
fill="none"
|
|
||||||
stroke="currentColor"
|
|
||||||
stroke-width="{{ $strokeWidth }}"
|
|
||||||
stroke-linecap="round"
|
|
||||||
stroke-linejoin="round"
|
|
||||||
aria-hidden="true"
|
|
||||||
data-slot="icon"
|
|
||||||
>
|
|
||||||
<path d="m7 15 5 5 5-5" />
|
<path d="m7 15 5 5 5-5" />
|
||||||
<path d="m7 9 5-5 5 5" />
|
<path d="m7 9 5-5 5 5" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
@@ -25,19 +25,9 @@
|
|||||||
};
|
};
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<svg
|
<svg {{ $attributes->class($classes) }} data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
|
||||||
{{ $attributes->class($classes) }}
|
fill="none" stroke="currentColor" stroke-width="{{ $strokeWidth }}" stroke-linecap="round" stroke-linejoin="round"
|
||||||
data-flux-icon
|
aria-hidden="true" data-slot="icon">
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
fill="none"
|
|
||||||
stroke="currentColor"
|
|
||||||
stroke-width="{{ $strokeWidth }}"
|
|
||||||
stroke-linecap="round"
|
|
||||||
stroke-linejoin="round"
|
|
||||||
aria-hidden="true"
|
|
||||||
data-slot="icon"
|
|
||||||
>
|
|
||||||
<path d="M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5" />
|
<path d="M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5" />
|
||||||
<circle cx="13" cy="12" r="2" />
|
<circle cx="13" cy="12" r="2" />
|
||||||
<path d="M18 19c-2.8 0-5-2.2-5-5v8" />
|
<path d="M18 19c-2.8 0-5-2.2-5-5v8" />
|
||||||
|
|||||||
@@ -25,19 +25,9 @@
|
|||||||
};
|
};
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<svg
|
<svg {{ $attributes->class($classes) }} data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
|
||||||
{{ $attributes->class($classes) }}
|
fill="none" stroke="currentColor" stroke-width="{{ $strokeWidth }}" stroke-linecap="round" stroke-linejoin="round"
|
||||||
data-flux-icon
|
aria-hidden="true" data-slot="icon">
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
fill="none"
|
|
||||||
stroke="currentColor"
|
|
||||||
stroke-width="{{ $strokeWidth }}"
|
|
||||||
stroke-linecap="round"
|
|
||||||
stroke-linejoin="round"
|
|
||||||
aria-hidden="true"
|
|
||||||
data-slot="icon"
|
|
||||||
>
|
|
||||||
<rect width="7" height="7" x="3" y="3" rx="1" />
|
<rect width="7" height="7" x="3" y="3" rx="1" />
|
||||||
<rect width="7" height="7" x="14" y="3" rx="1" />
|
<rect width="7" height="7" x="14" y="3" rx="1" />
|
||||||
<rect width="7" height="7" x="14" y="14" rx="1" />
|
<rect width="7" height="7" x="14" y="14" rx="1" />
|
||||||
|
|||||||
@@ -6,15 +6,10 @@
|
|||||||
|
|
||||||
<?php if ($expandable && $heading): ?>
|
<?php if ($expandable && $heading): ?>
|
||||||
|
|
||||||
<ui-disclosure
|
<ui-disclosure {{ $attributes->class('group/disclosure') }} @if ($expanded === true) open @endif
|
||||||
{{ $attributes->class('group/disclosure') }}
|
data-flux-navlist-group>
|
||||||
@if ($expanded === true) open @endif
|
<button type="button"
|
||||||
data-flux-navlist-group
|
class="group/disclosure-button mb-[2px] flex h-10 w-full items-center rounded-lg text-zinc-500 hover:bg-zinc-800/5 hover:text-zinc-800 lg:h-8 dark:text-white/80 dark:hover:bg-white/[7%] dark:hover:text-white">
|
||||||
>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="group/disclosure-button mb-[2px] flex h-10 w-full items-center rounded-lg text-zinc-500 hover:bg-zinc-800/5 hover:text-zinc-800 lg:h-8 dark:text-white/80 dark:hover:bg-white/[7%] dark:hover:text-white"
|
|
||||||
>
|
|
||||||
<div class="ps-3 pe-4">
|
<div class="ps-3 pe-4">
|
||||||
<flux:icon.chevron-down class="hidden size-3! group-data-open/disclosure-button:block" />
|
<flux:icon.chevron-down class="hidden size-3! group-data-open/disclosure-button:block" />
|
||||||
<flux:icon.chevron-right class="block size-3! group-data-open/disclosure-button:hidden" />
|
<flux:icon.chevron-right class="block size-3! group-data-open/disclosure-button:hidden" />
|
||||||
|
|||||||
@@ -3,10 +3,7 @@
|
|||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if (request()->routeIs('helpdesk.*') && file_exists($helpdeskManifestPath))
|
@if (request()->routeIs('helpdesk.*') && file_exists($helpdeskManifestPath))
|
||||||
@vite([
|
@vite(['Resources/assets/js/app.js', 'Resources/assets/css/app.css'], 'build/helpdesk')
|
||||||
'Resources/assets/js/app.js',
|
|
||||||
'Resources/assets/css/app.css',
|
|
||||||
], 'build/helpdesk')
|
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<x-layouts::app.sidebar :title="$title ?? null">
|
<x-layouts::app.sidebar :title="$title ?? null">
|
||||||
|
|||||||
@@ -4,14 +4,16 @@
|
|||||||
@include('partials.head')
|
@include('partials.head')
|
||||||
|
|
||||||
<body class="min-h-screen bg-white dark:bg-zinc-800">
|
<body class="min-h-screen bg-white dark:bg-zinc-800">
|
||||||
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);" aria-hidden="true"></div>
|
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);"
|
||||||
|
aria-hidden="true"></div>
|
||||||
<flux:header container class="border-b border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900">
|
<flux:header container class="border-b border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<flux:sidebar.toggle class="lg:hidden mr-2" icon="bars-2" inset="left" />
|
<flux:sidebar.toggle class="lg:hidden mr-2" icon="bars-2" inset="left" />
|
||||||
|
|
||||||
<x-app-logo href="{{ route('dashboard') }}" wire:navigate />
|
<x-app-logo href="{{ route('dashboard') }}" wire:navigate />
|
||||||
|
|
||||||
<flux:navbar class="-mb-px max-lg:hidden">
|
<flux:navbar class="-mb-px max-lg:hidden">
|
||||||
<flux:navbar.item icon="layout-grid" :href="route('dashboard')" :current="request()->routeIs('dashboard')" wire:navigate>
|
<flux:navbar.item icon="layout-grid" :href="route('dashboard')" :current="request()->routeIs('dashboard')"
|
||||||
|
wire:navigate>
|
||||||
{{ __('Dashboard') }}
|
{{ __('Dashboard') }}
|
||||||
</flux:navbar.item>
|
</flux:navbar.item>
|
||||||
</flux:navbar>
|
</flux:navbar>
|
||||||
@@ -20,25 +22,17 @@
|
|||||||
|
|
||||||
<flux:navbar class="me-1.5 space-x-0.5 rtl:space-x-reverse py-0!">
|
<flux:navbar class="me-1.5 space-x-0.5 rtl:space-x-reverse py-0!">
|
||||||
<flux:tooltip :content="__('Search')" position="bottom">
|
<flux:tooltip :content="__('Search')" position="bottom">
|
||||||
<flux:navbar.item class="!h-10 [&>div>svg]:size-5" icon="magnifying-glass" href="#" :label="__('Search')" />
|
<flux:navbar.item class="!h-10 [&>div>svg]:size-5" icon="magnifying-glass" href="#"
|
||||||
|
:label="__('Search')" />
|
||||||
</flux:tooltip>
|
</flux:tooltip>
|
||||||
<flux:tooltip :content="__('Repository')" position="bottom">
|
<flux:tooltip :content="__('Repository')" position="bottom">
|
||||||
<flux:navbar.item
|
<flux:navbar.item class="h-10 max-lg:hidden [&>div>svg]:size-5" icon="folder-git-2"
|
||||||
class="h-10 max-lg:hidden [&>div>svg]:size-5"
|
href="https://github.com/laravel/livewire-starter-kit" target="_blank" :label="__('Repository')" />
|
||||||
icon="folder-git-2"
|
|
||||||
href="https://github.com/laravel/livewire-starter-kit"
|
|
||||||
target="_blank"
|
|
||||||
:label="__('Repository')"
|
|
||||||
/>
|
|
||||||
</flux:tooltip>
|
</flux:tooltip>
|
||||||
<flux:tooltip :content="__('Documentation')" position="bottom">
|
<flux:tooltip :content="__('Documentation')" position="bottom">
|
||||||
<flux:navbar.item
|
<flux:navbar.item class="h-10 max-lg:hidden [&>div>svg]:size-5" icon="book-open-text"
|
||||||
class="h-10 max-lg:hidden [&>div>svg]:size-5"
|
href="https://laravel.com/docs/starter-kits#livewire" target="_blank"
|
||||||
icon="book-open-text"
|
:label="__('Documentation')" />
|
||||||
href="https://laravel.com/docs/starter-kits#livewire"
|
|
||||||
target="_blank"
|
|
||||||
:label="__('Documentation')"
|
|
||||||
/>
|
|
||||||
</flux:tooltip>
|
</flux:tooltip>
|
||||||
</flux:navbar>
|
</flux:navbar>
|
||||||
|
|
||||||
@@ -46,15 +40,18 @@
|
|||||||
</flux:header>
|
</flux:header>
|
||||||
|
|
||||||
<!-- Mobile Menu -->
|
<!-- Mobile Menu -->
|
||||||
<flux:sidebar collapsible="mobile" sticky class="lg:hidden border-e border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900">
|
<flux:sidebar collapsible="mobile" sticky
|
||||||
|
class="lg:hidden border-e border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900">
|
||||||
<flux:sidebar.header>
|
<flux:sidebar.header>
|
||||||
<x-app-logo :sidebar="true" href="{{ route('dashboard') }}" wire:navigate />
|
<x-app-logo :sidebar="true" href="{{ route('dashboard') }}" wire:navigate />
|
||||||
<flux:sidebar.collapse class="in-data-flux-sidebar-on-desktop:not-in-data-flux-sidebar-collapsed-desktop:-mr-2" />
|
<flux:sidebar.collapse
|
||||||
|
class="in-data-flux-sidebar-on-desktop:not-in-data-flux-sidebar-collapsed-desktop:-mr-2" />
|
||||||
</flux:sidebar.header>
|
</flux:sidebar.header>
|
||||||
|
|
||||||
<flux:sidebar.nav>
|
<flux:sidebar.nav>
|
||||||
<flux:sidebar.group :heading="__('Platform')">
|
<flux:sidebar.group :heading="__('Platform')">
|
||||||
<flux:sidebar.item icon="layout-grid" :href="route('dashboard')" :current="request()->routeIs('dashboard')" wire:navigate>
|
<flux:sidebar.item icon="layout-grid" :href="route('dashboard')"
|
||||||
|
:current="request()->routeIs('dashboard')" wire:navigate>
|
||||||
{{ __('Dashboard') }}
|
{{ __('Dashboard') }}
|
||||||
</flux:sidebar.item>
|
</flux:sidebar.item>
|
||||||
</flux:sidebar.group>
|
</flux:sidebar.group>
|
||||||
@@ -63,10 +60,12 @@
|
|||||||
<flux:spacer />
|
<flux:spacer />
|
||||||
|
|
||||||
<flux:sidebar.nav>
|
<flux:sidebar.nav>
|
||||||
<flux:sidebar.item icon="folder-git-2" href="https://github.com/laravel/livewire-starter-kit" target="_blank">
|
<flux:sidebar.item icon="folder-git-2" href="https://github.com/laravel/livewire-starter-kit"
|
||||||
|
target="_blank">
|
||||||
{{ __('Repository') }}
|
{{ __('Repository') }}
|
||||||
</flux:sidebar.item>
|
</flux:sidebar.item>
|
||||||
<flux:sidebar.item icon="book-open-text" href="https://laravel.com/docs/starter-kits#livewire" target="_blank">
|
<flux:sidebar.item icon="book-open-text" href="https://laravel.com/docs/starter-kits#livewire"
|
||||||
|
target="_blank">
|
||||||
{{ __('Documentation') }}
|
{{ __('Documentation') }}
|
||||||
</flux:sidebar.item>
|
</flux:sidebar.item>
|
||||||
</flux:sidebar.nav>
|
</flux:sidebar.nav>
|
||||||
@@ -82,4 +81,5 @@
|
|||||||
|
|
||||||
@fluxScripts
|
@fluxScripts
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -25,16 +25,19 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<body class="min-h-screen bg-white font-sans text-zinc-950 antialiased dark:bg-zinc-950 dark:text-zinc-100">
|
<body class="min-h-screen bg-white font-sans text-zinc-950 antialiased dark:bg-zinc-950 dark:text-zinc-100">
|
||||||
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);" aria-hidden="true"></div>
|
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);"
|
||||||
|
aria-hidden="true"></div>
|
||||||
|
|
||||||
@vite(['resources/css/app.css'])
|
@vite(['resources/css/app.css'])
|
||||||
|
|
||||||
<div class="wms-app-shell" data-wms-shell data-wms-mobile-shell>
|
<div class="wms-app-shell" data-wms-shell data-wms-mobile-shell>
|
||||||
<button type="button" class="wms-mobile-overlay" data-wms-mobile-close aria-label="{{ __('Close navigation menu') }}"></button>
|
<button type="button" class="wms-mobile-overlay" data-wms-mobile-close
|
||||||
|
aria-label="{{ __('Close navigation menu') }}"></button>
|
||||||
|
|
||||||
<aside id="wms-main-sidebar" class="wms-sidebar" data-wms-sidebar aria-label="{{ __('Main navigation') }}">
|
<aside id="wms-main-sidebar" class="wms-sidebar" data-wms-sidebar aria-label="{{ __('Main navigation') }}">
|
||||||
<div class="wms-sidebar-header">
|
<div class="wms-sidebar-header">
|
||||||
<a href="{{ auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard') ? route('platform.dashboard') : route('dashboard') }}" wire:navigate class="wms-brand" aria-label="{{ __('Warehouse Management System') }}">
|
<a href="{{ auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard') ? route('platform.dashboard') : route('dashboard') }}"
|
||||||
|
wire:navigate class="wms-brand" aria-label="{{ __('Warehouse Management System') }}">
|
||||||
<span class="wms-brand-mark" data-wms-brand-toggle title="{{ __('Expand sidebar') }}">
|
<span class="wms-brand-mark" data-wms-brand-toggle title="{{ __('Expand sidebar') }}">
|
||||||
<span class="wms-brand-mark-inner">W</span>
|
<span class="wms-brand-mark-inner">W</span>
|
||||||
</span>
|
</span>
|
||||||
@@ -45,40 +48,39 @@
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button type="button" class="wms-sidebar-toggle" data-wms-sidebar-toggle aria-label="{{ __('Collapse sidebar') }}" aria-expanded="true">
|
<button type="button" class="wms-sidebar-toggle" data-wms-sidebar-toggle
|
||||||
|
aria-label="{{ __('Collapse sidebar') }}" aria-expanded="true">
|
||||||
<span class="wms-toggle-expanded">‹</span>
|
<span class="wms-toggle-expanded">‹</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="button" class="wms-mobile-close" data-wms-mobile-close aria-label="{{ __('Close navigation') }}">×</button>
|
<button type="button" class="wms-mobile-close" data-wms-mobile-close
|
||||||
|
aria-label="{{ __('Close navigation') }}">×</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="wms-sidebar-nav" aria-label="{{ __('Main navigation') }}">
|
<nav class="wms-sidebar-nav" aria-label="{{ __('Main navigation') }}">
|
||||||
@php
|
@php
|
||||||
$platformRoute = auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard')
|
$platformRoute =
|
||||||
|
auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.dashboard')
|
||||||
? 'platform.dashboard'
|
? 'platform.dashboard'
|
||||||
: (Route::has('dashboard') ? 'dashboard' : null);
|
: (Route::has('dashboard')
|
||||||
|
? 'dashboard'
|
||||||
|
: null);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if ($platformRoute)
|
@if ($platformRoute)
|
||||||
<div
|
<div class="wms-sidebar-group" data-wms-menu-group="platform"
|
||||||
class="wms-sidebar-group"
|
@if (request()->routeIs('platform.dashboard') || request()->routeIs('dashboard')) data-wms-selected="true" data-wms-has-active="true" @endif>
|
||||||
data-wms-menu-group="platform"
|
<a href="{{ route($platformRoute) }}" wire:navigate
|
||||||
@if(request()->routeIs('platform.dashboard') || request()->routeIs('dashboard')) data-wms-selected="true" data-wms-has-active="true" @endif
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
href="{{ route($platformRoute) }}"
|
|
||||||
wire:navigate
|
|
||||||
class="wms-sidebar-heading wms-sidebar-heading-button wms-sidebar-primary-link"
|
class="wms-sidebar-heading wms-sidebar-heading-button wms-sidebar-primary-link"
|
||||||
title="{{ __('Platform') }}"
|
title="{{ __('Platform') }}" data-wms-sidebar-label>
|
||||||
data-wms-sidebar-label
|
|
||||||
>
|
|
||||||
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Platform') }}</span>
|
<span>{{ __('Platform') }}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="operations">
|
<div class="wms-sidebar-group" data-wms-menu-group="operations">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-chart-simple wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-chart-simple wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Operations') }}</span>
|
<span>{{ __('Operations') }}</span>
|
||||||
@@ -87,42 +89,54 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('analytics.index'))
|
@if (Route::has('analytics.index'))
|
||||||
<a href="{{ route('analytics.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('analytics.*')) is-active @endif" title="{{ __('Analytics') }}">
|
<a href="{{ route('analytics.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('analytics.*')) is-active @endif"
|
||||||
|
title="{{ __('Analytics') }}">
|
||||||
<i class="fa-solid fa-chart-line wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-chart-line wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Analytics') }}</span>
|
<span data-wms-sidebar-label>{{ __('Analytics') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('inventory-management.index'))
|
@if (Route::has('inventory-management.index'))
|
||||||
<a href="{{ route('inventory-management.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('inventory-management.*')) is-active @endif" title="{{ __('Inventory') }}">
|
<a href="{{ route('inventory-management.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('inventory-management.*')) is-active @endif"
|
||||||
|
title="{{ __('Inventory') }}">
|
||||||
<i class="fa-solid fa-boxes-stacked wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-boxes-stacked wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Inventory') }}</span>
|
<span data-wms-sidebar-label>{{ __('Inventory') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('replenishment.index'))
|
@if (Route::has('replenishment.index'))
|
||||||
<a href="{{ route('replenishment.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('replenishment.*')) is-active @endif" title="{{ __('Replenishment') }}">
|
<a href="{{ route('replenishment.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('replenishment.*')) is-active @endif"
|
||||||
|
title="{{ __('Replenishment') }}">
|
||||||
<i class="fa-solid fa-arrows-rotate wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-arrows-rotate wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Replenishment') }}</span>
|
<span data-wms-sidebar-label>{{ __('Replenishment') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('shipping.index'))
|
@if (Route::has('shipping.index'))
|
||||||
<a href="{{ route('shipping.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('shipping.*')) is-active @endif" title="{{ __('Shipping') }}">
|
<a href="{{ route('shipping.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('shipping.*')) is-active @endif"
|
||||||
|
title="{{ __('Shipping') }}">
|
||||||
<i class="fa-solid fa-truck-fast wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-truck-fast wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Shipping') }}</span>
|
<span data-wms-sidebar-label>{{ __('Shipping') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('transportation.index'))
|
@if (Route::has('transportation.index'))
|
||||||
<a href="{{ route('transportation.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('transportation.*')) is-active @endif" title="{{ __('Transportation') }}">
|
<a href="{{ route('transportation.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('transportation.*')) is-active @endif"
|
||||||
|
title="{{ __('Transportation') }}">
|
||||||
<i class="fa-solid fa-truck-ramp-box wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-truck-ramp-box wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Transportation') }}</span>
|
<span data-wms-sidebar-label>{{ __('Transportation') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('carrier-management.index'))
|
@if (Route::has('carrier-management.index'))
|
||||||
<a href="{{ route('carrier-management.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('carrier-management.*')) is-active @endif" title="{{ __('Carriers') }}">
|
<a href="{{ route('carrier-management.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('carrier-management.*')) is-active @endif"
|
||||||
|
title="{{ __('Carriers') }}">
|
||||||
<i class="fa-solid fa-route wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-route wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Carriers') }}</span>
|
<span data-wms-sidebar-label>{{ __('Carriers') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -135,34 +149,40 @@
|
|||||||
|
|
||||||
$helpdeskSettingsRoute = Route::has('helpdesk.settings')
|
$helpdeskSettingsRoute = Route::has('helpdesk.settings')
|
||||||
? 'helpdesk.settings'
|
? 'helpdesk.settings'
|
||||||
: (Route::has('helpdesk.settings.index') ? 'helpdesk.settings.index' : null);
|
: (Route::has('helpdesk.settings.index')
|
||||||
|
? 'helpdesk.settings.index'
|
||||||
|
: null);
|
||||||
|
|
||||||
$helpdeskGitRoute = Route::has('helpdesk.git.index')
|
$helpdeskGitRoute = Route::has('helpdesk.git.index') ? 'helpdesk.git.index' : null;
|
||||||
? 'helpdesk.git.index'
|
|
||||||
: null;
|
|
||||||
|
|
||||||
$helpdeskWorkflowRoute = Route::has('helpdesk.workflow-templates.index')
|
$helpdeskWorkflowRoute = Route::has('helpdesk.workflow-templates.index')
|
||||||
? 'helpdesk.workflow-templates.index'
|
? 'helpdesk.workflow-templates.index'
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
$documentationEnabled = Route::has('documentation.index') || Route::has('documentation.documents.index');
|
$documentationEnabled =
|
||||||
|
Route::has('documentation.index') || Route::has('documentation.documents.index');
|
||||||
|
|
||||||
$documentationRoute = Route::has('documentation.index')
|
$documentationRoute = Route::has('documentation.index')
|
||||||
? 'documentation.index'
|
? 'documentation.index'
|
||||||
: (Route::has('documentation.documents.index') ? 'documentation.documents.index' : null);
|
: (Route::has('documentation.documents.index')
|
||||||
|
? 'documentation.documents.index'
|
||||||
|
: null);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if ($helpdeskEnabled || $documentationEnabled)
|
@if ($helpdeskEnabled || $documentationEnabled)
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="support">
|
<div class="wms-sidebar-group" data-wms-menu-group="support">
|
||||||
@if (Route::has('helpdesk.index'))
|
@if (Route::has('helpdesk.index'))
|
||||||
<a href="{{ route('helpdesk.index') }}" wire:navigate class="wms-sidebar-heading wms-sidebar-heading-button @if(request()->routeIs('helpdesk.*')) is-active @endif" data-wms-sidebar-label title="{{ __('Support') }}">
|
<a href="{{ route('helpdesk.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-heading wms-sidebar-heading-button @if (request()->routeIs('helpdesk.*')) is-active @endif"
|
||||||
|
data-wms-sidebar-label title="{{ __('Support') }}">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Support') }}</span>
|
<span>{{ __('Support') }}</span>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
@else
|
@else
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button"
|
||||||
|
data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Support') }}</span>
|
<span>{{ __('Support') }}</span>
|
||||||
@@ -172,28 +192,37 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items mt-2 space-y-1" data-wms-menu-items>
|
<div class="wms-sidebar-group-items mt-2 space-y-1" data-wms-menu-items>
|
||||||
@if ($helpdeskGitRoute)
|
@if ($helpdeskGitRoute)
|
||||||
<a href="{{ route($helpdeskGitRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.git.*')) is-active @endif" title="{{ __('Git Tracking') }}">
|
<a href="{{ route($helpdeskGitRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.git.*')) is-active @endif"
|
||||||
|
title="{{ __('Git Tracking') }}">
|
||||||
<i class="fa-solid fa-code-commit wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-code-commit wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Git Tracking') }}</span>
|
<span data-wms-sidebar-label>{{ __('Git Tracking') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($helpdeskWorkflowRoute)
|
@if ($helpdeskWorkflowRoute)
|
||||||
<a href="{{ route($helpdeskWorkflowRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.workflow-templates.*')) is-active @endif" title="{{ __('Workflow Emails') }}">
|
<a href="{{ route($helpdeskWorkflowRoute) }}" wire:navigate
|
||||||
<i class="fa-solid fa-envelope-circle-check wms-sidebar-icon" aria-hidden="true"></i>
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.workflow-templates.*')) is-active @endif"
|
||||||
|
title="{{ __('Workflow Emails') }}">
|
||||||
|
<i class="fa-solid fa-envelope-circle-check wms-sidebar-icon"
|
||||||
|
aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Workflow Emails') }}</span>
|
<span data-wms-sidebar-label>{{ __('Workflow Emails') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($documentationRoute)
|
@if ($documentationRoute)
|
||||||
<a href="{{ route($documentationRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('documentation.*')) is-active @endif" title="{{ __('Documentation') }}">
|
<a href="{{ route($documentationRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('documentation.*')) is-active @endif"
|
||||||
|
title="{{ __('Documentation') }}">
|
||||||
<i class="fa-solid fa-book-open wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-book-open wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Documentation') }}</span>
|
<span data-wms-sidebar-label>{{ __('Documentation') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($helpdeskSettingsRoute)
|
@if ($helpdeskSettingsRoute)
|
||||||
<a href="{{ route($helpdeskSettingsRoute) }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('helpdesk.settings') || request()->routeIs('helpdesk.settings.index')) is-active @endif" title="{{ __('Helpdesk Settings') }}">
|
<a href="{{ route($helpdeskSettingsRoute) }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('helpdesk.settings') || request()->routeIs('helpdesk.settings.index')) is-active @endif"
|
||||||
|
title="{{ __('Helpdesk Settings') }}">
|
||||||
<i class="fa-solid fa-gears wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-gears wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Settings') }}</span>
|
<span data-wms-sidebar-label>{{ __('Settings') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -203,7 +232,8 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="integration-reporting">
|
<div class="wms-sidebar-group" data-wms-menu-group="integration-reporting">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Integration & Reporting') }}</span>
|
<span>{{ __('Integration & Reporting') }}</span>
|
||||||
@@ -212,28 +242,36 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('m3-integration.index'))
|
@if (Route::has('m3-integration.index'))
|
||||||
<a href="{{ route('m3-integration.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('m3-integration.*')) is-active @endif" title="{{ __('M3 Integration') }}">
|
<a href="{{ route('m3-integration.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('m3-integration.*')) is-active @endif"
|
||||||
|
title="{{ __('M3 Integration') }}">
|
||||||
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-plug-circle-bolt wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('M3 Integration') }}</span>
|
<span data-wms-sidebar-label>{{ __('M3 Integration') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('sentinel-integration.index'))
|
@if (Route::has('sentinel-integration.index'))
|
||||||
<a href="{{ route('sentinel-integration.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('sentinel-integration.*')) is-active @endif" title="{{ __('Sentinel') }}">
|
<a href="{{ route('sentinel-integration.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('sentinel-integration.*')) is-active @endif"
|
||||||
|
title="{{ __('Sentinel') }}">
|
||||||
<i class="fa-solid fa-satellite-dish wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-satellite-dish wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Sentinel') }}</span>
|
<span data-wms-sidebar-label>{{ __('Sentinel') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('document-archive.index'))
|
@if (Route::has('document-archive.index'))
|
||||||
<a href="{{ route('document-archive.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('document-archive.*')) is-active @endif" title="{{ __('Documents') }}">
|
<a href="{{ route('document-archive.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('document-archive.*')) is-active @endif"
|
||||||
|
title="{{ __('Documents') }}">
|
||||||
<i class="fa-solid fa-box-archive wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-box-archive wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Documents') }}</span>
|
<span data-wms-sidebar-label>{{ __('Documents') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('reporting.index'))
|
@if (Route::has('reporting.index'))
|
||||||
<a href="{{ route('reporting.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('reporting.*')) is-active @endif" title="{{ __('Reporting') }}">
|
<a href="{{ route('reporting.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('reporting.*')) is-active @endif"
|
||||||
|
title="{{ __('Reporting') }}">
|
||||||
<i class="fa-solid fa-file-lines wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-file-lines wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Reporting') }}</span>
|
<span data-wms-sidebar-label>{{ __('Reporting') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -242,7 +280,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="administration">
|
<div class="wms-sidebar-group" data-wms-menu-group="administration">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle
|
||||||
|
data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Administration') }}</span>
|
<span>{{ __('Administration') }}</span>
|
||||||
@@ -251,42 +290,54 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('warehouses.index'))
|
@if (Route::has('warehouses.index'))
|
||||||
<a href="{{ route('warehouses.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('warehouses.*')) is-active @endif" title="{{ __('Warehouses') }}">
|
<a href="{{ route('warehouses.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('warehouses.*')) is-active @endif"
|
||||||
|
title="{{ __('Warehouses') }}">
|
||||||
<i class="fa-solid fa-warehouse wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-warehouse wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Warehouses') }}</span>
|
<span data-wms-sidebar-label>{{ __('Warehouses') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('warehouse-rules.index'))
|
@if (Route::has('warehouse-rules.index'))
|
||||||
<a href="{{ route('warehouse-rules.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('warehouse-rules.*')) is-active @endif" title="{{ __('Validation Rules') }}">
|
<a href="{{ route('warehouse-rules.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('warehouse-rules.*')) is-active @endif"
|
||||||
|
title="{{ __('Validation Rules') }}">
|
||||||
<i class="fa-solid fa-shield-halved wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-shield-halved wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Validation Rules') }}</span>
|
<span data-wms-sidebar-label>{{ __('Validation Rules') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.prices.index'))
|
@if (auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.prices.index'))
|
||||||
<a href="{{ route('platform.prices.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.prices.*')) is-active @endif" title="{{ __('Prices') }}">
|
<a href="{{ route('platform.prices.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.prices.*')) is-active @endif"
|
||||||
|
title="{{ __('Prices') }}">
|
||||||
<i class="fa-solid fa-tags wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-tags wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Prices') }}</span>
|
<span data-wms-sidebar-label>{{ __('Prices') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('configuration.index'))
|
@if (Route::has('configuration.index'))
|
||||||
<a href="{{ route('configuration.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('configuration.*')) is-active @endif" title="{{ __('Configuration') }}">
|
<a href="{{ route('configuration.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('configuration.*')) is-active @endif"
|
||||||
|
title="{{ __('Configuration') }}">
|
||||||
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-sliders wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Configuration') }}</span>
|
<span data-wms-sidebar-label>{{ __('Configuration') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('security.index'))
|
@if (Route::has('security.index'))
|
||||||
<a href="{{ route('security.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('security.*')) is-active @endif" title="{{ __('Security') }}">
|
<a href="{{ route('security.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('security.*')) is-active @endif"
|
||||||
|
title="{{ __('Security') }}">
|
||||||
<i class="fa-solid fa-user-shield wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-user-shield wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Security') }}</span>
|
<span data-wms-sidebar-label>{{ __('Security') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('audit.index'))
|
@if (Route::has('audit.index'))
|
||||||
<a href="{{ route('audit.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('audit.*')) is-active @endif" title="{{ __('Audit') }}">
|
<a href="{{ route('audit.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('audit.*')) is-active @endif"
|
||||||
|
title="{{ __('Audit') }}">
|
||||||
<i class="fa-solid fa-clipboard-check wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-clipboard-check wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Audit') }}</span>
|
<span data-wms-sidebar-label>{{ __('Audit') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -296,7 +347,8 @@
|
|||||||
|
|
||||||
@if (auth()->user()?->isMpbaPlatformAdmin())
|
@if (auth()->user()?->isMpbaPlatformAdmin())
|
||||||
<div class="wms-sidebar-group" data-wms-menu-group="platform-administration">
|
<div class="wms-sidebar-group" data-wms-menu-group="platform-administration">
|
||||||
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button" data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
<button type="button" class="wms-sidebar-heading wms-sidebar-heading-button"
|
||||||
|
data-wms-menu-toggle data-wms-sidebar-label aria-expanded="false">
|
||||||
<span class="wms-sidebar-heading-content">
|
<span class="wms-sidebar-heading-content">
|
||||||
<i class="fa-solid fa-building-shield wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-building-shield wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span>{{ __('Platform Administration') }}</span>
|
<span>{{ __('Platform Administration') }}</span>
|
||||||
@@ -305,28 +357,36 @@
|
|||||||
|
|
||||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||||
@if (Route::has('platform.companies.index'))
|
@if (Route::has('platform.companies.index'))
|
||||||
<a href="{{ route('platform.companies.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.companies.*')) is-active @endif" title="{{ __('Companies') }}">
|
<a href="{{ route('platform.companies.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.companies.*')) is-active @endif"
|
||||||
|
title="{{ __('Companies') }}">
|
||||||
<i class="fa-solid fa-building wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-building wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Companies') }}</span>
|
<span data-wms-sidebar-label>{{ __('Companies') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('platform.licenses.index'))
|
@if (Route::has('platform.licenses.index'))
|
||||||
<a href="{{ route('platform.licenses.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.licenses.*')) is-active @endif" title="{{ __('Licences') }}">
|
<a href="{{ route('platform.licenses.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.licenses.*')) is-active @endif"
|
||||||
|
title="{{ __('Licences') }}">
|
||||||
<i class="fa-solid fa-key wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-key wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Licences') }}</span>
|
<span data-wms-sidebar-label>{{ __('Licences') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('platform.payments.index'))
|
@if (Route::has('platform.payments.index'))
|
||||||
<a href="{{ route('platform.payments.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.payments.*')) is-active @endif" title="{{ __('Payments') }}">
|
<a href="{{ route('platform.payments.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('platform.payments.*')) is-active @endif"
|
||||||
|
title="{{ __('Payments') }}">
|
||||||
<i class="fa-solid fa-credit-card wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-credit-card wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
<span data-wms-sidebar-label>{{ __('Payments') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('countries.index'))
|
@if (Route::has('countries.index'))
|
||||||
<a href="{{ route('countries.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('countries.*')) is-active @endif" title="{{ __('Countries') }}">
|
<a href="{{ route('countries.index') }}" wire:navigate
|
||||||
|
class="wms-sidebar-link @if (request()->routeIs('countries.*')) is-active @endif"
|
||||||
|
title="{{ __('Countries') }}">
|
||||||
<i class="fa-solid fa-globe wms-sidebar-icon" aria-hidden="true"></i>
|
<i class="fa-solid fa-globe wms-sidebar-icon" aria-hidden="true"></i>
|
||||||
<span data-wms-sidebar-label>{{ __('Countries') }}</span>
|
<span data-wms-sidebar-label>{{ __('Countries') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -335,17 +395,12 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</nav>
|
</nav>
|
||||||
<button
|
<button type="button" class="wms-sidebar-resizer" data-wms-sidebar-resizer
|
||||||
type="button"
|
aria-label="{{ __('Resize sidebar') }}" title="{{ __('Drag to resize sidebar') }}"></button>
|
||||||
class="wms-sidebar-resizer"
|
|
||||||
data-wms-sidebar-resizer
|
|
||||||
aria-label="{{ __('Resize sidebar') }}"
|
|
||||||
title="{{ __('Drag to resize sidebar') }}"
|
|
||||||
></button>
|
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<div class="wms-main-panel">
|
<div class="wms-main-panel">
|
||||||
@include("layouts.partials.topbar")
|
@include('layouts.partials.topbar')
|
||||||
|
|
||||||
<main class="wms-content">
|
<main class="wms-content">
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
@@ -353,12 +408,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div id="wms-toast-stack"
|
||||||
id="wms-toast-stack"
|
|
||||||
class="fixed right-4 top-4 z-[9999] flex w-[min(24rem,calc(100vw-2rem))] flex-col gap-3 font-sans"
|
class="fixed right-4 top-4 z-[9999] flex w-[min(24rem,calc(100vw-2rem))] flex-col gap-3 font-sans"
|
||||||
aria-live="polite"
|
aria-live="polite" aria-atomic="true"></div>
|
||||||
aria-atomic="true"
|
|
||||||
></div>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.wmsToast = function(options) {
|
window.wmsToast = function(options) {
|
||||||
@@ -520,7 +572,8 @@
|
|||||||
const expanded = root.dataset.wmsSidebar !== 'collapsed';
|
const expanded = root.dataset.wmsSidebar !== 'collapsed';
|
||||||
|
|
||||||
button.setAttribute('aria-expanded', expanded ? 'true' : 'false');
|
button.setAttribute('aria-expanded', expanded ? 'true' : 'false');
|
||||||
button.setAttribute('aria-label', expanded ? '{{ __('Collapse sidebar') }}' : '{{ __('Expand sidebar') }}');
|
button.setAttribute('aria-label', expanded ? '{{ __('Collapse sidebar') }}' :
|
||||||
|
'{{ __('Expand sidebar') }}');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -538,9 +591,11 @@
|
|||||||
return child.matches('.wms-sidebar-heading-button.is-active');
|
return child.matches('.wms-sidebar-heading-button.is-active');
|
||||||
});
|
});
|
||||||
|
|
||||||
const routeSelectedGroup = group.dataset.wmsSelected === 'true' && group.dataset.wmsHasActive === 'true';
|
const routeSelectedGroup = group.dataset.wmsSelected === 'true' && group.dataset.wmsHasActive ===
|
||||||
|
'true';
|
||||||
|
|
||||||
return routeSelectedGroup || activeHeading || (items ? items.querySelector('.wms-sidebar-link.is-active') !== null : false);
|
return routeSelectedGroup || activeHeading || (items ? items.querySelector(
|
||||||
|
'.wms-sidebar-link.is-active') !== null : false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setMenuGroupOpen(group, isOpen) {
|
function setMenuGroupOpen(group, isOpen) {
|
||||||
@@ -577,7 +632,8 @@
|
|||||||
const selectedByRoute = groups.find((group) => groupHasActiveLink(group)) || null;
|
const selectedByRoute = groups.find((group) => groupHasActiveLink(group)) || null;
|
||||||
const selectedByManualClick = groups.find((group) => group.dataset.wmsManualActive === 'true') || null;
|
const selectedByManualClick = groups.find((group) => group.dataset.wmsManualActive === 'true') || null;
|
||||||
const selectedGroup = selectedByRoute || selectedByManualClick;
|
const selectedGroup = selectedByRoute || selectedByManualClick;
|
||||||
const shouldOpenPlatformForFirstVisit = !selectedGroup && localStorage.getItem(PLATFORM_FIRST_OPEN_KEY) !== '1';
|
const shouldOpenPlatformForFirstVisit = !selectedGroup && localStorage.getItem(
|
||||||
|
PLATFORM_FIRST_OPEN_KEY) !== '1';
|
||||||
|
|
||||||
resetAllMenuGroups();
|
resetAllMenuGroups();
|
||||||
|
|
||||||
@@ -652,7 +708,8 @@
|
|||||||
startX = getClientX(event);
|
startX = getClientX(event);
|
||||||
|
|
||||||
const currentWidth = Number.parseInt(
|
const currentWidth = Number.parseInt(
|
||||||
getComputedStyle(document.documentElement).getPropertyValue('--wms-sidebar-width'),
|
getComputedStyle(document.documentElement).getPropertyValue(
|
||||||
|
'--wms-sidebar-width'),
|
||||||
10
|
10
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -687,10 +744,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
handle.addEventListener('mousedown', startResize);
|
handle.addEventListener('mousedown', startResize);
|
||||||
handle.addEventListener('touchstart', startResize, { passive: false });
|
handle.addEventListener('touchstart', startResize, {
|
||||||
|
passive: false
|
||||||
|
});
|
||||||
|
|
||||||
window.addEventListener('mousemove', moveResize);
|
window.addEventListener('mousemove', moveResize);
|
||||||
window.addEventListener('touchmove', moveResize, { passive: false });
|
window.addEventListener('touchmove', moveResize, {
|
||||||
|
passive: false
|
||||||
|
});
|
||||||
|
|
||||||
window.addEventListener('mouseup', stopResize);
|
window.addEventListener('mouseup', stopResize);
|
||||||
window.addEventListener('touchend', stopResize);
|
window.addEventListener('touchend', stopResize);
|
||||||
@@ -799,7 +860,9 @@
|
|||||||
button.addEventListener('click', closeMobileSidebar);
|
button.addEventListener('click', closeMobileSidebar);
|
||||||
});
|
});
|
||||||
|
|
||||||
document.querySelectorAll('.wms-sidebar-link[wire\\:navigate], .wms-sidebar-heading-button[wire\\:navigate]').forEach((link) => {
|
document.querySelectorAll(
|
||||||
|
'.wms-sidebar-link[wire\\:navigate], .wms-sidebar-heading-button[wire\\:navigate]').forEach((
|
||||||
|
link) => {
|
||||||
if (link.dataset.wmsMobileBound === '1') {
|
if (link.dataset.wmsMobileBound === '1') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -807,7 +870,9 @@
|
|||||||
link.dataset.wmsMobileBound = '1';
|
link.dataset.wmsMobileBound = '1';
|
||||||
|
|
||||||
link.addEventListener('click', function() {
|
link.addEventListener('click', function() {
|
||||||
document.querySelectorAll('.wms-sidebar-link.is-active, .wms-sidebar-heading-button.is-active').forEach((activeLink) => {
|
document.querySelectorAll(
|
||||||
|
'.wms-sidebar-link.is-active, .wms-sidebar-heading-button.is-active')
|
||||||
|
.forEach((activeLink) => {
|
||||||
activeLink.classList.remove('is-active');
|
activeLink.classList.remove('is-active');
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -833,4 +898,5 @@
|
|||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="dark">
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="dark">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
@include('partials.head')
|
@include('partials.head')
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="min-h-screen bg-neutral-100 antialiased dark:bg-linear-to-b dark:from-neutral-950 dark:to-neutral-900">
|
<body class="min-h-screen bg-neutral-100 antialiased dark:bg-linear-to-b dark:from-neutral-950 dark:to-neutral-900">
|
||||||
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);" aria-hidden="true"></div>
|
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);"
|
||||||
|
aria-hidden="true"></div>
|
||||||
<div class="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
|
<div class="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
|
||||||
<div class="flex w-full max-w-md flex-col gap-6">
|
<div class="flex w-full max-w-md flex-col gap-6">
|
||||||
<a href="{{ route('home') }}" class="flex flex-col items-center gap-2 font-medium" wire:navigate>
|
<a href="{{ route('home') }}" class="flex flex-col items-center gap-2 font-medium" wire:navigate>
|
||||||
@@ -16,7 +19,8 @@
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="flex flex-col gap-6">
|
<div class="flex flex-col gap-6">
|
||||||
<div class="rounded-xl border bg-white dark:bg-stone-950 dark:border-stone-800 text-stone-800 shadow-xs">
|
<div
|
||||||
|
class="rounded-xl border bg-white dark:bg-stone-950 dark:border-stone-800 text-stone-800 shadow-xs">
|
||||||
<div class="px-10 py-8">{{ $slot }}</div>
|
<div class="px-10 py-8">{{ $slot }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -31,4 +35,5 @@
|
|||||||
|
|
||||||
@fluxScripts
|
@fluxScripts
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="dark">
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="dark">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
@include('partials.head')
|
@include('partials.head')
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="min-h-screen bg-white antialiased dark:bg-linear-to-b dark:from-neutral-950 dark:to-neutral-900">
|
<body class="min-h-screen bg-white antialiased dark:bg-linear-to-b dark:from-neutral-950 dark:to-neutral-900">
|
||||||
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);" aria-hidden="true"></div>
|
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);"
|
||||||
|
aria-hidden="true"></div>
|
||||||
<div class="bg-background flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
|
<div class="bg-background flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
|
||||||
<div class="flex w-full max-w-sm flex-col gap-2">
|
<div class="flex w-full max-w-sm flex-col gap-2">
|
||||||
<a href="{{ route('home') }}" class="flex flex-col items-center gap-2 font-medium" wire:navigate>
|
<a href="{{ route('home') }}" class="flex flex-col items-center gap-2 font-medium" wire:navigate>
|
||||||
@@ -27,4 +30,5 @@
|
|||||||
|
|
||||||
@fluxScripts
|
@fluxScripts
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,12 +1,17 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="dark">
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="dark">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
@include('partials.head')
|
@include('partials.head')
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="min-h-screen bg-white antialiased dark:bg-linear-to-b dark:from-neutral-950 dark:to-neutral-900">
|
<body class="min-h-screen bg-white antialiased dark:bg-linear-to-b dark:from-neutral-950 dark:to-neutral-900">
|
||||||
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);" aria-hidden="true"></div>
|
<div data-dusk="page-ready" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);"
|
||||||
<div class="relative grid h-dvh flex-col items-center justify-center px-8 sm:px-0 lg:max-w-none lg:grid-cols-2 lg:px-0">
|
aria-hidden="true"></div>
|
||||||
<div class="bg-muted relative hidden h-full flex-col p-10 text-white lg:flex dark:border-e dark:border-neutral-800">
|
<div
|
||||||
|
class="relative grid h-dvh flex-col items-center justify-center px-8 sm:px-0 lg:max-w-none lg:grid-cols-2 lg:px-0">
|
||||||
|
<div
|
||||||
|
class="bg-muted relative hidden h-full flex-col p-10 text-white lg:flex dark:border-e dark:border-neutral-800">
|
||||||
<div class="absolute inset-0 bg-neutral-900"></div>
|
<div class="absolute inset-0 bg-neutral-900"></div>
|
||||||
<a href="{{ route('home') }}" class="relative z-20 flex items-center text-lg font-medium" wire:navigate>
|
<a href="{{ route('home') }}" class="relative z-20 flex items-center text-lg font-medium" wire:navigate>
|
||||||
<span class="flex h-10 w-10 items-center justify-center rounded-md">
|
<span class="flex h-10 w-10 items-center justify-center rounded-md">
|
||||||
@@ -22,13 +27,16 @@
|
|||||||
<div class="relative z-20 mt-auto">
|
<div class="relative z-20 mt-auto">
|
||||||
<blockquote class="space-y-2">
|
<blockquote class="space-y-2">
|
||||||
<flux:heading size="lg">“{{ trim($message) }}”</flux:heading>
|
<flux:heading size="lg">“{{ trim($message) }}”</flux:heading>
|
||||||
<footer><flux:heading>{{ trim($author) }}</flux:heading></footer>
|
<footer>
|
||||||
|
<flux:heading>{{ trim($author) }}</flux:heading>
|
||||||
|
</footer>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full lg:p-8">
|
<div class="w-full lg:p-8">
|
||||||
<div class="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
|
<div class="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
|
||||||
<a href="{{ route('home') }}" class="z-20 flex flex-col items-center gap-2 font-medium lg:hidden" wire:navigate>
|
<a href="{{ route('home') }}" class="z-20 flex flex-col items-center gap-2 font-medium lg:hidden"
|
||||||
|
wire:navigate>
|
||||||
<span class="flex h-9 w-9 items-center justify-center rounded-md">
|
<span class="flex h-9 w-9 items-center justify-center rounded-md">
|
||||||
<x-app-logo-icon class="size-9 fill-current text-black dark:text-white" />
|
<x-app-logo-icon class="size-9 fill-current text-black dark:text-white" />
|
||||||
</span>
|
</span>
|
||||||
@@ -48,4 +56,5 @@
|
|||||||
|
|
||||||
@fluxScripts
|
@fluxScripts
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,33 +1,28 @@
|
|||||||
{{-- Shared Application Top Bar --}}
|
{{-- Shared Application Top Bar --}}
|
||||||
@php
|
@php
|
||||||
$user = auth()->user();
|
$user = auth()->user();
|
||||||
$dashboardRoute = Route::has('platform.dashboard') && method_exists($user, 'isMpbaPlatformAdmin') && $user?->isMpbaPlatformAdmin()
|
$dashboardRoute =
|
||||||
|
Route::has('platform.dashboard') && method_exists($user, 'isMpbaPlatformAdmin') && $user?->isMpbaPlatformAdmin()
|
||||||
? 'platform.dashboard'
|
? 'platform.dashboard'
|
||||||
: (Route::has('dashboard') ? 'dashboard' : null);
|
: (Route::has('dashboard')
|
||||||
|
? 'dashboard'
|
||||||
|
: null);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<header class="sticky top-0 z-40 border-b border-white/10 bg-[#111118]/95 backdrop-blur" role="banner">
|
<header class="sticky top-0 z-40 border-b border-white/10 bg-[#111118]/95 backdrop-blur" role="banner">
|
||||||
<div class="flex h-16 w-full items-center justify-between gap-3 px-3 sm:px-4 lg:px-6">
|
<div class="flex h-16 w-full items-center justify-between gap-3 px-3 sm:px-4 lg:px-6">
|
||||||
<div class="flex min-w-0 items-center gap-3 lg:hidden">
|
<div class="flex min-w-0 items-center gap-3 lg:hidden">
|
||||||
<button
|
<button type="button"
|
||||||
type="button"
|
|
||||||
class="inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-white/10 bg-white/5 text-white transition hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 focus:ring-offset-[#111118] lg:hidden"
|
class="inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-white/10 bg-white/5 text-white transition hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 focus:ring-offset-[#111118] lg:hidden"
|
||||||
data-wms-mobile-open
|
data-wms-mobile-open aria-label="{{ __('Open navigation menu') }}" aria-controls="wms-main-sidebar"
|
||||||
aria-label="{{ __('Open navigation menu') }}"
|
aria-expanded="false" data-test="mobile-menu-button">
|
||||||
aria-controls="wms-main-sidebar"
|
|
||||||
aria-expanded="false"
|
|
||||||
data-test="mobile-menu-button"
|
|
||||||
>
|
|
||||||
<i class="fa-solid fa-bars" aria-hidden="true"></i>
|
<i class="fa-solid fa-bars" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<a
|
<a href="{{ $dashboardRoute ? route($dashboardRoute) : '#' }}" wire:navigate
|
||||||
href="{{ $dashboardRoute ? route($dashboardRoute) : '#' }}"
|
class="flex min-w-0 items-center gap-3" aria-label="{{ __('Warehouse Management System') }}">
|
||||||
wire:navigate
|
<span
|
||||||
class="flex min-w-0 items-center gap-3"
|
class="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-cyan-600 text-sm font-bold text-white shadow-lg shadow-cyan-950/40">
|
||||||
aria-label="{{ __('Warehouse Management System') }}"
|
|
||||||
>
|
|
||||||
<span class="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-cyan-600 text-sm font-bold text-white shadow-lg shadow-cyan-950/40">
|
|
||||||
W
|
W
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@@ -42,40 +37,29 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div id="userControls" class="relative ml-auto flex shrink-0 items-center gap-3" x-data="{ open: false }"
|
||||||
id="userControls"
|
x-on:keydown.escape.window="open = false">
|
||||||
class="relative ml-auto flex shrink-0 items-center gap-3"
|
<button type="button"
|
||||||
x-data="{ open: false }"
|
|
||||||
x-on:keydown.escape.window="open = false"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="flex items-center gap-3 rounded-2xl border border-white/10 bg-white/5 px-2 py-2 text-left transition hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 focus:ring-offset-[#111118] sm:px-3"
|
class="flex items-center gap-3 rounded-2xl border border-white/10 bg-white/5 px-2 py-2 text-left transition hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 focus:ring-offset-[#111118] sm:px-3"
|
||||||
x-on:click="open = ! open"
|
x-on:click="open = ! open" x-bind:aria-expanded="open.toString()" aria-haspopup="menu"
|
||||||
x-bind:aria-expanded="open.toString()"
|
data-test="top-user-menu-button">
|
||||||
aria-haspopup="menu"
|
|
||||||
data-test="top-user-menu-button"
|
|
||||||
>
|
|
||||||
<span class="hidden text-right md:block">
|
<span class="hidden text-right md:block">
|
||||||
<span class="block max-w-48 truncate text-sm font-semibold text-white">{{ $user?->name ?? __('User') }}</span>
|
<span
|
||||||
|
class="block max-w-48 truncate text-sm font-semibold text-white">{{ $user?->name ?? __('User') }}</span>
|
||||||
<span class="block max-w-48 truncate text-xs text-white/50">{{ $user?->email ?? '' }}</span>
|
<span class="block max-w-48 truncate text-xs text-white/50">{{ $user?->email ?? '' }}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="flex h-10 w-10 items-center justify-center rounded-full bg-blue-700 text-xs font-bold text-white shadow-lg shadow-blue-950/40">
|
<span
|
||||||
|
class="flex h-10 w-10 items-center justify-center rounded-full bg-blue-700 text-xs font-bold text-white shadow-lg shadow-blue-950/40">
|
||||||
{{ $user?->initials() ?? 'U' }}
|
{{ $user?->initials() ?? 'U' }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<i class="fa-solid fa-chevron-down hidden text-white/50 sm:block" aria-hidden="true"></i>
|
<i class="fa-solid fa-chevron-down hidden text-white/50 sm:block" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div
|
<div x-cloak x-show="open" x-transition.origin.top.right x-on:click.outside="open = false"
|
||||||
x-cloak
|
|
||||||
x-show="open"
|
|
||||||
x-transition.origin.top.right
|
|
||||||
x-on:click.outside="open = false"
|
|
||||||
class="absolute right-0 top-full mt-2 w-[calc(100vw-1.5rem)] max-w-72 overflow-hidden rounded-2xl border border-white/10 bg-[#181820] shadow-2xl shadow-black/40 sm:w-72"
|
class="absolute right-0 top-full mt-2 w-[calc(100vw-1.5rem)] max-w-72 overflow-hidden rounded-2xl border border-white/10 bg-[#181820] shadow-2xl shadow-black/40 sm:w-72"
|
||||||
role="menu"
|
role="menu">
|
||||||
>
|
|
||||||
<div class="border-b border-white/10 px-4 py-3">
|
<div class="border-b border-white/10 px-4 py-3">
|
||||||
<div class="truncate text-sm font-semibold text-white">{{ $user?->name ?? __('User') }}</div>
|
<div class="truncate text-sm font-semibold text-white">{{ $user?->name ?? __('User') }}</div>
|
||||||
<div class="truncate text-xs text-white/50">{{ $user?->email ?? '' }}</div>
|
<div class="truncate text-xs text-white/50">{{ $user?->email ?? '' }}</div>
|
||||||
@@ -83,26 +67,34 @@
|
|||||||
|
|
||||||
<div class="p-2">
|
<div class="p-2">
|
||||||
@if ($dashboardRoute)
|
@if ($dashboardRoute)
|
||||||
<a href="{{ route($dashboardRoute) }}" wire:navigate class="block rounded-xl px-3 py-2 text-sm text-white/80 hover:bg-white/10 hover:text-white" role="menuitem">
|
<a href="{{ route($dashboardRoute) }}" wire:navigate
|
||||||
|
class="block rounded-xl px-3 py-2 text-sm text-white/80 hover:bg-white/10 hover:text-white"
|
||||||
|
role="menuitem">
|
||||||
{{ __('Dashboard') }}
|
{{ __('Dashboard') }}
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('profile.edit'))
|
@if (Route::has('profile.edit'))
|
||||||
<a href="{{ route('profile.edit') }}" wire:navigate class="block rounded-xl px-3 py-2 text-sm text-white/80 hover:bg-white/10 hover:text-white" role="menuitem">
|
<a href="{{ route('profile.edit') }}" wire:navigate
|
||||||
|
class="block rounded-xl px-3 py-2 text-sm text-white/80 hover:bg-white/10 hover:text-white"
|
||||||
|
role="menuitem">
|
||||||
{{ __('Profile') }}
|
{{ __('Profile') }}
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (Route::has('settings.index'))
|
@if (Route::has('settings.index'))
|
||||||
<a href="{{ route('settings.index') }}" wire:navigate class="block rounded-xl px-3 py-2 text-sm text-white/80 hover:bg-white/10 hover:text-white" role="menuitem">
|
<a href="{{ route('settings.index') }}" wire:navigate
|
||||||
|
class="block rounded-xl px-3 py-2 text-sm text-white/80 hover:bg-white/10 hover:text-white"
|
||||||
|
role="menuitem">
|
||||||
{{ __('Settings') }}
|
{{ __('Settings') }}
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<form method="POST" action="{{ route('logout') }}" class="mt-2 border-t border-white/10 pt-2">
|
<form method="POST" action="{{ route('logout') }}" class="mt-2 border-t border-white/10 pt-2">
|
||||||
@csrf
|
@csrf
|
||||||
<button type="submit" class="w-full rounded-xl px-3 py-2 text-left text-sm text-red-300 hover:bg-red-500/10 hover:text-red-200" role="menuitem" data-test="logout-button">
|
<button type="submit"
|
||||||
|
class="w-full rounded-xl px-3 py-2 text-left text-sm text-red-300 hover:bg-red-500/10 hover:text-red-200"
|
||||||
|
role="menuitem" data-test="logout-button">
|
||||||
{{ __('Sign out') }}
|
{{ __('Sign out') }}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -1,42 +1,38 @@
|
|||||||
<x-layouts::auth :title="__('Confirm password')">
|
<x-layouts::auth :title="__('Confirm password')">
|
||||||
<section class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
<section
|
||||||
|
class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
||||||
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
||||||
|
|
||||||
<div class="space-y-7 p-6 sm:p-8">
|
<div class="space-y-7 p-6 sm:p-8">
|
||||||
<div class="space-y-5 text-center">
|
<div class="space-y-5 text-center">
|
||||||
<div class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black text-white dark:bg-white dark:text-zinc-950">WMS</div>
|
<div
|
||||||
|
class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black text-white dark:bg-white dark:text-zinc-950">
|
||||||
|
WMS</div>
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">{{ __('Protected area') }}</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">
|
||||||
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">{{ __('Confirm password') }}</h1>
|
{{ __('Protected area') }}</p>
|
||||||
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">{{ __('Confirm your identity before continuing to this secure WMS workflow.') }}</p>
|
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">
|
||||||
|
{{ __('Confirm password') }}</h1>
|
||||||
|
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">
|
||||||
|
{{ __('Confirm your identity before continuing to this secure WMS workflow.') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900/60">
|
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900/60">
|
||||||
<x-auth-session-status class="mb-5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-center text-sm text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200" :status="session('status')" />
|
<x-auth-session-status
|
||||||
|
class="mb-5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-center text-sm text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200"
|
||||||
|
:status="session('status')" />
|
||||||
|
|
||||||
<div class="mb-5">
|
<div class="mb-5">
|
||||||
<x-passkey-verify
|
<x-passkey-verify options-route="passkey.confirm-options" submit-route="passkey.confirm"
|
||||||
options-route="passkey.confirm-options"
|
:label="__('Confirm with passkey')" :loading-label="__('Confirming...')" :separator="__('Or confirm with password')" />
|
||||||
submit-route="passkey.confirm"
|
|
||||||
:label="__('Confirm with passkey')"
|
|
||||||
:loading-label="__('Confirming...')"
|
|
||||||
:separator="__('Or confirm with password')"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form method="POST" action="{{ route('password.confirm.store') }}" class="flex flex-col gap-5">
|
<form method="POST" action="{{ route('password.confirm.store') }}" class="flex flex-col gap-5">
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
<flux:input
|
<flux:input name="password" :label="__('Password')" type="password" required
|
||||||
name="password"
|
autocomplete="current-password" :placeholder="__('Password')" viewable />
|
||||||
:label="__('Password')"
|
|
||||||
type="password"
|
|
||||||
required
|
|
||||||
autocomplete="current-password"
|
|
||||||
:placeholder="__('Password')"
|
|
||||||
viewable
|
|
||||||
/>
|
|
||||||
|
|
||||||
<flux:button variant="primary" type="submit" class="w-full" data-test="confirm-password-button">
|
<flux:button variant="primary" type="submit" class="w-full" data-test="confirm-password-button">
|
||||||
{{ __('Confirm') }}
|
{{ __('Confirm') }}
|
||||||
|
|||||||
@@ -1,35 +1,38 @@
|
|||||||
<x-layouts::auth :title="__('Forgot password')">
|
<x-layouts::auth :title="__('Forgot password')">
|
||||||
<section class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
<section
|
||||||
|
class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
||||||
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
||||||
|
|
||||||
<div class="space-y-7 p-6 sm:p-8">
|
<div class="space-y-7 p-6 sm:p-8">
|
||||||
<div class="space-y-5 text-center">
|
<div class="space-y-5 text-center">
|
||||||
<div class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black text-white dark:bg-white dark:text-zinc-950">WMS</div>
|
<div
|
||||||
|
class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black text-white dark:bg-white dark:text-zinc-950">
|
||||||
|
WMS</div>
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">{{ __('Account recovery') }}</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">
|
||||||
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">{{ __('Warehouse Management System') }}</h1>
|
{{ __('Account recovery') }}</p>
|
||||||
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">{{ __('Request a secure reset link for your WMS account.') }}</p>
|
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">
|
||||||
|
{{ __('Warehouse Management System') }}</h1>
|
||||||
|
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">
|
||||||
|
{{ __('Request a secure reset link for your WMS account.') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900/60">
|
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900/60">
|
||||||
<x-auth-header :title="__('Forgot password')" :description="__('Enter your email address and we will send you a password reset link.')" />
|
<x-auth-header :title="__('Forgot password')" :description="__('Enter your email address and we will send you a password reset link.')" />
|
||||||
|
|
||||||
<x-auth-session-status class="mt-5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-center text-sm text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200" :status="session('status')" />
|
<x-auth-session-status
|
||||||
|
class="mt-5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-center text-sm text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200"
|
||||||
|
:status="session('status')" />
|
||||||
|
|
||||||
<form method="POST" action="{{ route('password.email') }}" class="mt-6 flex flex-col gap-5">
|
<form method="POST" action="{{ route('password.email') }}" class="mt-6 flex flex-col gap-5">
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
<flux:input
|
<flux:input name="email" :label="__('Email address')" type="email" required autofocus
|
||||||
name="email"
|
placeholder="email@example.com" />
|
||||||
:label="__('Email address')"
|
|
||||||
type="email"
|
|
||||||
required
|
|
||||||
autofocus
|
|
||||||
placeholder="email@example.com"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<flux:button variant="primary" type="submit" class="w-full" data-test="email-password-reset-link-button">
|
<flux:button variant="primary" type="submit" class="w-full"
|
||||||
|
data-test="email-password-reset-link-button">
|
||||||
{{ __('Email password reset link') }}
|
{{ __('Email password reset link') }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -1,28 +1,38 @@
|
|||||||
<x-layouts::auth :title="__('Log in')">
|
<x-layouts::auth :title="__('Log in')">
|
||||||
<section class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
<section
|
||||||
|
class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
||||||
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
||||||
|
|
||||||
<div class="space-y-7 p-6 sm:p-8">
|
<div class="space-y-7 p-6 sm:p-8">
|
||||||
<div class="space-y-5 text-center">
|
<div class="space-y-5 text-center">
|
||||||
<div class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black tracking-tight text-white shadow-lg shadow-zinc-900/20 dark:bg-white dark:text-zinc-950">
|
<div
|
||||||
|
class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black tracking-tight text-white shadow-lg shadow-zinc-900/20 dark:bg-white dark:text-zinc-950">
|
||||||
WMS
|
WMS
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">MPBA Limited</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">MPBA
|
||||||
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">{{ __('Warehouse Management System') }}</h1>
|
Limited</p>
|
||||||
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">{{ __('Secure access for tenant workspaces, warehouse operations, support, licences, and dashboards.') }}</p>
|
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">
|
||||||
|
{{ __('Warehouse Management System') }}</h1>
|
||||||
|
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">
|
||||||
|
{{ __('Secure access for tenant workspaces, warehouse operations, support, licences, and dashboards.') }}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900/60">
|
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900/60">
|
||||||
<div class="mb-6 space-y-1 text-center">
|
<div class="mb-6 space-y-1 text-center">
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.22em] text-sky-700 dark:text-sky-300">{{ __('Secure sign in') }}</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.22em] text-sky-700 dark:text-sky-300">
|
||||||
|
{{ __('Secure sign in') }}</p>
|
||||||
<h2 class="text-xl font-bold text-zinc-950 dark:text-white">{{ __('Log in to your account') }}</h2>
|
<h2 class="text-xl font-bold text-zinc-950 dark:text-white">{{ __('Log in to your account') }}</h2>
|
||||||
<p class="text-sm text-zinc-600 dark:text-zinc-400">{{ __('Enter your email and password to continue.') }}</p>
|
<p class="text-sm text-zinc-600 dark:text-zinc-400">
|
||||||
|
{{ __('Enter your email and password to continue.') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<x-auth-session-status class="mb-5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-center text-sm text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200" :status="session('status')" />
|
<x-auth-session-status
|
||||||
|
class="mb-5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-center text-sm text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200"
|
||||||
|
:status="session('status')" />
|
||||||
|
|
||||||
<div class="mb-5">
|
<div class="mb-5">
|
||||||
<x-passkey-verify />
|
<x-passkey-verify />
|
||||||
@@ -32,28 +42,44 @@
|
|||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
<div class="grid gap-2">
|
<div class="grid gap-2">
|
||||||
<label for="email" class="text-sm font-semibold text-zinc-800 dark:text-zinc-200">{{ __('Email address') }}</label>
|
<label for="email"
|
||||||
<input id="email" name="email" type="email" value="{{ old('email') }}" required autofocus autocomplete="email" placeholder="email@example.com" class="w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-950 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-sky-500 focus:ring-4 focus:ring-sky-100 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-sky-400 dark:focus:ring-sky-950" />
|
class="text-sm font-semibold text-zinc-800 dark:text-zinc-200">{{ __('Email address') }}</label>
|
||||||
@error('email')<p class="text-sm font-medium text-red-600 dark:text-red-400">{{ $message }}</p>@enderror
|
<input id="email" name="email" type="email" value="{{ old('email') }}" required
|
||||||
|
autofocus autocomplete="email" placeholder="email@example.com"
|
||||||
|
class="w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-950 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-sky-500 focus:ring-4 focus:ring-sky-100 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-sky-400 dark:focus:ring-sky-950" />
|
||||||
|
@error('email')
|
||||||
|
<p class="text-sm font-medium text-red-600 dark:text-red-400">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid gap-2">
|
<div class="grid gap-2">
|
||||||
<div class="flex items-center justify-between gap-3">
|
<div class="flex items-center justify-between gap-3">
|
||||||
<label for="password" class="text-sm font-semibold text-zinc-800 dark:text-zinc-200">{{ __('Password') }}</label>
|
<label for="password"
|
||||||
|
class="text-sm font-semibold text-zinc-800 dark:text-zinc-200">{{ __('Password') }}</label>
|
||||||
@if (Route::has('password.request'))
|
@if (Route::has('password.request'))
|
||||||
<a class="text-sm font-semibold text-sky-700 underline underline-offset-4 hover:text-sky-900 dark:text-sky-300" href="{{ route('password.request') }}" wire:navigate>{{ __('Forgot password?') }}</a>
|
<a class="text-sm font-semibold text-sky-700 underline underline-offset-4 hover:text-sky-900 dark:text-sky-300"
|
||||||
|
href="{{ route('password.request') }}"
|
||||||
|
wire:navigate>{{ __('Forgot password?') }}</a>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<input id="password" name="password" type="password" required autocomplete="current-password" placeholder="{{ __('Password') }}" class="w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-950 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-sky-500 focus:ring-4 focus:ring-sky-100 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-sky-400 dark:focus:ring-sky-950" />
|
<input id="password" name="password" type="password" required autocomplete="current-password"
|
||||||
@error('password')<p class="text-sm font-medium text-red-600 dark:text-red-400">{{ $message }}</p>@enderror
|
placeholder="{{ __('Password') }}"
|
||||||
|
class="w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-950 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-sky-500 focus:ring-4 focus:ring-sky-100 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-sky-400 dark:focus:ring-sky-950" />
|
||||||
|
@error('password')
|
||||||
|
<p class="text-sm font-medium text-red-600 dark:text-red-400">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label class="flex items-center gap-3 rounded-xl border border-zinc-200 bg-white px-4 py-3 text-sm text-zinc-700 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-300">
|
<label
|
||||||
<input name="remember" type="checkbox" value="1" @checked(old('remember')) class="rounded border-zinc-300 text-sky-600 focus:ring-sky-500 dark:border-zinc-700 dark:bg-zinc-950" />
|
class="flex items-center gap-3 rounded-xl border border-zinc-200 bg-white px-4 py-3 text-sm text-zinc-700 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-300">
|
||||||
|
<input name="remember" type="checkbox" value="1" @checked(old('remember'))
|
||||||
|
class="rounded border-zinc-300 text-sky-600 focus:ring-sky-500 dark:border-zinc-700 dark:bg-zinc-950" />
|
||||||
<span>{{ __('Remember this device') }}</span>
|
<span>{{ __('Remember this device') }}</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<button type="submit" class="w-full rounded-xl bg-zinc-950 px-4 py-3 text-sm font-bold text-white shadow-sm transition hover:bg-zinc-800 focus:outline-none focus:ring-4 focus:ring-sky-200 dark:bg-white dark:text-zinc-950 dark:hover:bg-zinc-200 dark:focus:ring-sky-950" data-test="login-button">
|
<button type="submit"
|
||||||
|
class="w-full rounded-xl bg-zinc-950 px-4 py-3 text-sm font-bold text-white shadow-sm transition hover:bg-zinc-800 focus:outline-none focus:ring-4 focus:ring-sky-200 dark:bg-white dark:text-zinc-950 dark:hover:bg-zinc-200 dark:focus:ring-sky-950"
|
||||||
|
data-test="login-button">
|
||||||
{{ __('Log in') }}
|
{{ __('Log in') }}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
@@ -61,7 +87,8 @@
|
|||||||
|
|
||||||
<div class="text-center text-sm text-zinc-600 dark:text-zinc-400">
|
<div class="text-center text-sm text-zinc-600 dark:text-zinc-400">
|
||||||
<span>{{ __('Need access?') }}</span>
|
<span>{{ __('Need access?') }}</span>
|
||||||
<a href="{{ route('register') }}" wire:navigate class="font-semibold text-sky-700 underline underline-offset-4 hover:text-sky-900 dark:text-sky-300">{{ __('Create an account') }}</a>
|
<a href="{{ route('register') }}" wire:navigate
|
||||||
|
class="font-semibold text-sky-700 underline underline-offset-4 hover:text-sky-900 dark:text-sky-300">{{ __('Create an account') }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -1,50 +1,77 @@
|
|||||||
<x-layouts::auth :title="__('Register')">
|
<x-layouts::auth :title="__('Register')">
|
||||||
<section class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
<section
|
||||||
|
class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
||||||
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
||||||
|
|
||||||
<div class="space-y-7 p-6 sm:p-8">
|
<div class="space-y-7 p-6 sm:p-8">
|
||||||
<div class="space-y-5 text-center">
|
<div class="space-y-5 text-center">
|
||||||
<div class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black tracking-tight text-white shadow-lg shadow-zinc-900/20 dark:bg-white dark:text-zinc-950">
|
<div
|
||||||
|
class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black tracking-tight text-white shadow-lg shadow-zinc-900/20 dark:bg-white dark:text-zinc-950">
|
||||||
WMS
|
WMS
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">{{ __('MPBA Limited') }}</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">
|
||||||
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">{{ __('Create your WMS account') }}</h1>
|
{{ __('MPBA Limited') }}</p>
|
||||||
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">{{ __('Register for secure access to your company workspace and warehouse operations.') }}</p>
|
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">
|
||||||
|
{{ __('Create your WMS account') }}</h1>
|
||||||
|
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">
|
||||||
|
{{ __('Register for secure access to your company workspace and warehouse operations.') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900/60">
|
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900/60">
|
||||||
<x-auth-session-status class="mb-5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-center text-sm text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200" :status="session('status')" />
|
<x-auth-session-status
|
||||||
|
class="mb-5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-center text-sm text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200"
|
||||||
|
:status="session('status')" />
|
||||||
|
|
||||||
<form method="POST" action="{{ route('register.store') }}" class="flex flex-col gap-5">
|
<form method="POST" action="{{ route('register.store') }}" class="flex flex-col gap-5">
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
<div class="grid gap-2">
|
<div class="grid gap-2">
|
||||||
<label for="name" class="text-sm font-semibold text-zinc-800 dark:text-zinc-200">{{ __('Name') }}</label>
|
<label for="name"
|
||||||
<input id="name" name="name" type="text" value="{{ old('name') }}" required autofocus autocomplete="name" placeholder="{{ __('Full name') }}" class="w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-950 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-sky-500 focus:ring-4 focus:ring-sky-100 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-sky-400 dark:focus:ring-sky-950" />
|
class="text-sm font-semibold text-zinc-800 dark:text-zinc-200">{{ __('Name') }}</label>
|
||||||
@error('name')<p class="text-sm font-medium text-red-600 dark:text-red-400">{{ $message }}</p>@enderror
|
<input id="name" name="name" type="text" value="{{ old('name') }}" required
|
||||||
|
autofocus autocomplete="name" placeholder="{{ __('Full name') }}"
|
||||||
|
class="w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-950 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-sky-500 focus:ring-4 focus:ring-sky-100 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-sky-400 dark:focus:ring-sky-950" />
|
||||||
|
@error('name')
|
||||||
|
<p class="text-sm font-medium text-red-600 dark:text-red-400">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid gap-2">
|
<div class="grid gap-2">
|
||||||
<label for="email" class="text-sm font-semibold text-zinc-800 dark:text-zinc-200">{{ __('Email address') }}</label>
|
<label for="email"
|
||||||
<input id="email" name="email" type="email" value="{{ old('email') }}" required autocomplete="email" placeholder="email@example.com" class="w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-950 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-sky-500 focus:ring-4 focus:ring-sky-100 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-sky-400 dark:focus:ring-sky-950" />
|
class="text-sm font-semibold text-zinc-800 dark:text-zinc-200">{{ __('Email address') }}</label>
|
||||||
@error('email')<p class="text-sm font-medium text-red-600 dark:text-red-400">{{ $message }}</p>@enderror
|
<input id="email" name="email" type="email" value="{{ old('email') }}" required
|
||||||
|
autocomplete="email" placeholder="email@example.com"
|
||||||
|
class="w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-950 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-sky-500 focus:ring-4 focus:ring-sky-100 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-sky-400 dark:focus:ring-sky-950" />
|
||||||
|
@error('email')
|
||||||
|
<p class="text-sm font-medium text-red-600 dark:text-red-400">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid gap-2">
|
<div class="grid gap-2">
|
||||||
<label for="password" class="text-sm font-semibold text-zinc-800 dark:text-zinc-200">{{ __('Password') }}</label>
|
<label for="password"
|
||||||
<input id="password" name="password" type="password" required autocomplete="new-password" placeholder="{{ __('Password') }}" class="w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-950 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-sky-500 focus:ring-4 focus:ring-sky-100 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-sky-400 dark:focus:ring-sky-950" />
|
class="text-sm font-semibold text-zinc-800 dark:text-zinc-200">{{ __('Password') }}</label>
|
||||||
@error('password')<p class="text-sm font-medium text-red-600 dark:text-red-400">{{ $message }}</p>@enderror
|
<input id="password" name="password" type="password" required autocomplete="new-password"
|
||||||
|
placeholder="{{ __('Password') }}"
|
||||||
|
class="w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-950 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-sky-500 focus:ring-4 focus:ring-sky-100 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-sky-400 dark:focus:ring-sky-950" />
|
||||||
|
@error('password')
|
||||||
|
<p class="text-sm font-medium text-red-600 dark:text-red-400">{{ $message }}</p>
|
||||||
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid gap-2">
|
<div class="grid gap-2">
|
||||||
<label for="password_confirmation" class="text-sm font-semibold text-zinc-800 dark:text-zinc-200">{{ __('Confirm password') }}</label>
|
<label for="password_confirmation"
|
||||||
<input id="password_confirmation" name="password_confirmation" type="password" required autocomplete="new-password" placeholder="{{ __('Confirm password') }}" class="w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-950 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-sky-500 focus:ring-4 focus:ring-sky-100 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-sky-400 dark:focus:ring-sky-950" />
|
class="text-sm font-semibold text-zinc-800 dark:text-zinc-200">{{ __('Confirm password') }}</label>
|
||||||
|
<input id="password_confirmation" name="password_confirmation" type="password" required
|
||||||
|
autocomplete="new-password" placeholder="{{ __('Confirm password') }}"
|
||||||
|
class="w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-950 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-sky-500 focus:ring-4 focus:ring-sky-100 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-sky-400 dark:focus:ring-sky-950" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" class="w-full rounded-xl bg-zinc-950 px-4 py-3 text-sm font-bold text-white shadow-sm transition hover:bg-zinc-800 focus:outline-none focus:ring-4 focus:ring-sky-200 dark:bg-white dark:text-zinc-950 dark:hover:bg-zinc-200 dark:focus:ring-sky-950" data-test="register-user-button">
|
<button type="submit"
|
||||||
|
class="w-full rounded-xl bg-zinc-950 px-4 py-3 text-sm font-bold text-white shadow-sm transition hover:bg-zinc-800 focus:outline-none focus:ring-4 focus:ring-sky-200 dark:bg-white dark:text-zinc-950 dark:hover:bg-zinc-200 dark:focus:ring-sky-950"
|
||||||
|
data-test="register-user-button">
|
||||||
{{ __('Create account') }}
|
{{ __('Create account') }}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
@@ -52,7 +79,8 @@
|
|||||||
|
|
||||||
<div class="text-center text-sm text-zinc-600 dark:text-zinc-400">
|
<div class="text-center text-sm text-zinc-600 dark:text-zinc-400">
|
||||||
<span>{{ __('Already have access?') }}</span>
|
<span>{{ __('Already have access?') }}</span>
|
||||||
<a href="{{ route('login') }}" wire:navigate class="font-semibold text-sky-700 underline underline-offset-4 hover:text-sky-900 dark:text-sky-300">{{ __('Log in') }}</a>
|
<a href="{{ route('login') }}" wire:navigate
|
||||||
|
class="font-semibold text-sky-700 underline underline-offset-4 hover:text-sky-900 dark:text-sky-300">{{ __('Log in') }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -1,54 +1,44 @@
|
|||||||
<x-layouts::auth :title="__('Reset password')">
|
<x-layouts::auth :title="__('Reset password')">
|
||||||
<section class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
<section
|
||||||
|
class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
||||||
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
||||||
|
|
||||||
<div class="space-y-7 p-6 sm:p-8">
|
<div class="space-y-7 p-6 sm:p-8">
|
||||||
<div class="space-y-5 text-center">
|
<div class="space-y-5 text-center">
|
||||||
<div class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black text-white dark:bg-white dark:text-zinc-950">WMS</div>
|
<div
|
||||||
|
class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black text-white dark:bg-white dark:text-zinc-950">
|
||||||
|
WMS</div>
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">{{ __('Password reset') }}</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">
|
||||||
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">{{ __('Secure account recovery') }}</h1>
|
{{ __('Password reset') }}</p>
|
||||||
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">{{ __('Create a new password for your WMS account.') }}</p>
|
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">
|
||||||
|
{{ __('Secure account recovery') }}</h1>
|
||||||
|
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">
|
||||||
|
{{ __('Create a new password for your WMS account.') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900/60">
|
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900/60">
|
||||||
<x-auth-session-status class="mb-5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-center text-sm text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200" :status="session('status')" />
|
<x-auth-session-status
|
||||||
|
class="mb-5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-center text-sm text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200"
|
||||||
|
:status="session('status')" />
|
||||||
|
|
||||||
<form method="POST" action="{{ route('password.update') }}" class="flex flex-col gap-5">
|
<form method="POST" action="{{ route('password.update') }}" class="flex flex-col gap-5">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="token" value="{{ request()->route('token') }}">
|
<input type="hidden" name="token" value="{{ request()->route('token') }}">
|
||||||
|
|
||||||
<flux:input
|
<flux:input name="email" value="{{ request('email') }}" :label="__('Email')" type="email"
|
||||||
name="email"
|
required autocomplete="email" />
|
||||||
value="{{ request('email') }}"
|
|
||||||
:label="__('Email')"
|
|
||||||
type="email"
|
|
||||||
required
|
|
||||||
autocomplete="email"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<flux:input
|
<flux:input name="password" :label="__('Password')" type="password" required
|
||||||
name="password"
|
autocomplete="new-password" :placeholder="__('Password')"
|
||||||
:label="__('Password')"
|
|
||||||
type="password"
|
|
||||||
required
|
|
||||||
autocomplete="new-password"
|
|
||||||
:placeholder="__('Password')"
|
|
||||||
passwordrules="{{ \Illuminate\Validation\Rules\Password::defaults()->toPasswordRulesString() }}"
|
passwordrules="{{ \Illuminate\Validation\Rules\Password::defaults()->toPasswordRulesString() }}"
|
||||||
viewable
|
viewable />
|
||||||
/>
|
|
||||||
|
|
||||||
<flux:input
|
<flux:input name="password_confirmation" :label="__('Confirm password')" type="password" required
|
||||||
name="password_confirmation"
|
autocomplete="new-password" :placeholder="__('Confirm password')"
|
||||||
:label="__('Confirm password')"
|
|
||||||
type="password"
|
|
||||||
required
|
|
||||||
autocomplete="new-password"
|
|
||||||
:placeholder="__('Confirm password')"
|
|
||||||
passwordrules="{{ \Illuminate\Validation\Rules\Password::defaults()->toPasswordRulesString() }}"
|
passwordrules="{{ \Illuminate\Validation\Rules\Password::defaults()->toPasswordRulesString() }}"
|
||||||
viewable
|
viewable />
|
||||||
/>
|
|
||||||
|
|
||||||
<flux:button type="submit" variant="primary" class="w-full" data-test="reset-password-button">
|
<flux:button type="submit" variant="primary" class="w-full" data-test="reset-password-button">
|
||||||
{{ __('Reset password') }}
|
{{ __('Reset password') }}
|
||||||
|
|||||||
@@ -1,22 +1,25 @@
|
|||||||
<x-layouts::auth :title="__('Two-factor authentication')">
|
<x-layouts::auth :title="__('Two-factor authentication')">
|
||||||
<section class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
<section
|
||||||
|
class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
||||||
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
||||||
|
|
||||||
<div class="space-y-7 p-6 sm:p-8">
|
<div class="space-y-7 p-6 sm:p-8">
|
||||||
<div class="space-y-5 text-center">
|
<div class="space-y-5 text-center">
|
||||||
<div class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black text-white dark:bg-white dark:text-zinc-950">WMS</div>
|
<div
|
||||||
|
class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black text-white dark:bg-white dark:text-zinc-950">
|
||||||
|
WMS</div>
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">{{ __('Multi-factor security') }}</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">
|
||||||
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">{{ __('Verify your sign in') }}</h1>
|
{{ __('Multi-factor security') }}</p>
|
||||||
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">{{ __('Complete the security challenge to continue into WMS.') }}</p>
|
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">
|
||||||
|
{{ __('Verify your sign in') }}</h1>
|
||||||
|
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">
|
||||||
|
{{ __('Complete the security challenge to continue into WMS.') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900/60">
|
<div class="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900/60">
|
||||||
<div
|
<div class="relative w-full h-auto" x-cloak x-data="{
|
||||||
class="relative w-full h-auto"
|
|
||||||
x-cloak
|
|
||||||
x-data="{
|
|
||||||
showRecoveryInput: @js($errors->has('recovery_code')),
|
showRecoveryInput: @js($errors->has('recovery_code')),
|
||||||
code: '',
|
code: '',
|
||||||
recovery_code: '',
|
recovery_code: '',
|
||||||
@@ -35,25 +38,20 @@
|
|||||||
this.recovery_code = '';
|
this.recovery_code = '';
|
||||||
|
|
||||||
$nextTick(() => {
|
$nextTick(() => {
|
||||||
this.showRecoveryInput
|
this.showRecoveryInput ?
|
||||||
? this.$refs.recovery_code?.focus()
|
this.$refs.recovery_code?.focus() :
|
||||||
: this.focusOtp();
|
this.focusOtp();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
}"
|
}">
|
||||||
>
|
|
||||||
<div x-show="!showRecoveryInput">
|
<div x-show="!showRecoveryInput">
|
||||||
<x-auth-header
|
<x-auth-header :title="__('Authentication code')" :description="__('Enter the authentication code provided by your authenticator application.')" />
|
||||||
:title="__('Authentication code')"
|
|
||||||
:description="__('Enter the authentication code provided by your authenticator application.')"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div x-show="showRecoveryInput">
|
<div x-show="showRecoveryInput">
|
||||||
<x-auth-header
|
<x-auth-header :title="__('Recovery code')" :description="__(
|
||||||
:title="__('Recovery code')"
|
'Please confirm access to your account by entering one of your emergency recovery codes.',
|
||||||
:description="__('Please confirm access to your account by entering one of your emergency recovery codes.')"
|
)" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form method="POST" action="{{ route('two-factor.login.store') }}" class="mt-6">
|
<form method="POST" action="{{ route('two-factor.login.store') }}" class="mt-6">
|
||||||
@@ -62,27 +60,16 @@
|
|||||||
<div class="space-y-5 text-center">
|
<div class="space-y-5 text-center">
|
||||||
<div x-show="!showRecoveryInput">
|
<div x-show="!showRecoveryInput">
|
||||||
<div class="my-5 flex items-center justify-center" x-ref="otp">
|
<div class="my-5 flex items-center justify-center" x-ref="otp">
|
||||||
<flux:otp
|
<flux:otp x-model="code" length="6" name="code" label="OTP Code"
|
||||||
x-model="code"
|
label:sr-only class="mx-auto" />
|
||||||
length="6"
|
|
||||||
name="code"
|
|
||||||
label="OTP Code"
|
|
||||||
label:sr-only
|
|
||||||
class="mx-auto"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div x-show="showRecoveryInput">
|
<div x-show="showRecoveryInput">
|
||||||
<div class="my-5">
|
<div class="my-5">
|
||||||
<flux:input
|
<flux:input type="text" name="recovery_code" x-ref="recovery_code"
|
||||||
type="text"
|
x-bind:required="showRecoveryInput" autocomplete="one-time-code"
|
||||||
name="recovery_code"
|
x-model="recovery_code" />
|
||||||
x-ref="recovery_code"
|
|
||||||
x-bind:required="showRecoveryInput"
|
|
||||||
autocomplete="one-time-code"
|
|
||||||
x-model="recovery_code"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@error('recovery_code')
|
@error('recovery_code')
|
||||||
@@ -92,18 +79,16 @@
|
|||||||
@enderror
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<flux:button
|
<flux:button variant="primary" type="submit" class="w-full">
|
||||||
variant="primary"
|
|
||||||
type="submit"
|
|
||||||
class="w-full"
|
|
||||||
>
|
|
||||||
{{ __('Continue') }}
|
{{ __('Continue') }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-5 text-center text-sm leading-5 text-zinc-600 dark:text-zinc-400">
|
<div class="mt-5 text-center text-sm leading-5 text-zinc-600 dark:text-zinc-400">
|
||||||
<span>{{ __('or you can') }}</span>
|
<span>{{ __('or you can') }}</span>
|
||||||
<button type="button" class="inline font-semibold text-sky-700 underline underline-offset-4 hover:text-sky-900 dark:text-sky-300" @click="toggleInput()">
|
<button type="button"
|
||||||
|
class="inline font-semibold text-sky-700 underline underline-offset-4 hover:text-sky-900 dark:text-sky-300"
|
||||||
|
@click="toggleInput()">
|
||||||
<span x-show="!showRecoveryInput">{{ __('login using a recovery code') }}</span>
|
<span x-show="!showRecoveryInput">{{ __('login using a recovery code') }}</span>
|
||||||
<span x-show="showRecoveryInput">{{ __('login using an authentication code') }}</span>
|
<span x-show="showRecoveryInput">{{ __('login using an authentication code') }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -1,14 +1,20 @@
|
|||||||
<x-layouts::auth :title="__('Email verification')">
|
<x-layouts::auth :title="__('Email verification')">
|
||||||
<section class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
<section
|
||||||
|
class="mx-auto w-full max-w-md overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl shadow-zinc-900/10 dark:border-zinc-800 dark:bg-zinc-950">
|
||||||
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
<div class="h-1.5 bg-gradient-to-r from-emerald-500 via-sky-500 to-blue-600"></div>
|
||||||
|
|
||||||
<div class="space-y-7 p-6 sm:p-8">
|
<div class="space-y-7 p-6 sm:p-8">
|
||||||
<div class="space-y-5 text-center">
|
<div class="space-y-5 text-center">
|
||||||
<div class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black text-white dark:bg-white dark:text-zinc-950">WMS</div>
|
<div
|
||||||
|
class="mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-zinc-950 text-sm font-black text-white dark:bg-white dark:text-zinc-950">
|
||||||
|
WMS</div>
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">{{ __('Email verification') }}</p>
|
<p class="text-xs font-semibold uppercase tracking-[0.24em] text-sky-700 dark:text-sky-300">
|
||||||
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">{{ __('Confirm your account') }}</h1>
|
{{ __('Email verification') }}</p>
|
||||||
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">{{ __('Verify your email address before accessing the WMS dashboard.') }}</p>
|
<h1 class="text-2xl font-bold tracking-tight text-zinc-950 dark:text-white">
|
||||||
|
{{ __('Confirm your account') }}</h1>
|
||||||
|
<p class="text-sm leading-6 text-zinc-600 dark:text-zinc-400">
|
||||||
|
{{ __('Verify your email address before accessing the WMS dashboard.') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -18,7 +24,8 @@
|
|||||||
</flux:text>
|
</flux:text>
|
||||||
|
|
||||||
@if (session('status') == 'verification-link-sent')
|
@if (session('status') == 'verification-link-sent')
|
||||||
<div class="mt-5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-center text-sm font-semibold text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200">
|
<div
|
||||||
|
class="mt-5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-center text-sm font-semibold text-emerald-800 dark:border-emerald-900/60 dark:bg-emerald-950/40 dark:text-emerald-200">
|
||||||
{{ __('A new verification link has been sent to the email address you provided during registration.') }}
|
{{ __('A new verification link has been sent to the email address you provided during registration.') }}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@@ -33,7 +40,8 @@
|
|||||||
|
|
||||||
<form method="POST" action="{{ route('logout') }}">
|
<form method="POST" action="{{ route('logout') }}">
|
||||||
@csrf
|
@csrf
|
||||||
<flux:button variant="ghost" type="submit" class="w-full cursor-pointer text-sm" data-test="logout-button">
|
<flux:button variant="ghost" type="submit" class="w-full cursor-pointer text-sm"
|
||||||
|
data-test="logout-button">
|
||||||
{{ __('Log out') }}
|
{{ __('Log out') }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<flux:modal.trigger name="confirm-user-deletion">
|
<flux:modal.trigger name="confirm-user-deletion">
|
||||||
<flux:button variant="danger" x-data="" x-on:click.prevent="$dispatch('open-modal', 'confirm-user-deletion')">
|
<flux:button variant="danger" x-data=""
|
||||||
|
x-on:click.prevent="$dispatch('open-modal', 'confirm-user-deletion')">
|
||||||
{{ __('Delete account') }}
|
{{ __('Delete account') }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
</flux:modal.trigger>
|
</flux:modal.trigger>
|
||||||
|
|||||||
@@ -15,7 +15,8 @@
|
|||||||
<flux:text class="mt-4">
|
<flux:text class="mt-4">
|
||||||
{{ __('Your email address is unverified.') }}
|
{{ __('Your email address is unverified.') }}
|
||||||
|
|
||||||
<flux:link class="text-sm cursor-pointer" wire:click.prevent="resendVerificationNotification">
|
<flux:link class="text-sm cursor-pointer"
|
||||||
|
wire:click.prevent="resendVerificationNotification">
|
||||||
{{ __('Click here to re-send the verification email.') }}
|
{{ __('Click here to re-send the verification email.') }}
|
||||||
</flux:link>
|
</flux:link>
|
||||||
</flux:text>
|
</flux:text>
|
||||||
|
|||||||
@@ -5,35 +5,20 @@
|
|||||||
|
|
||||||
<x-settings.layout :heading="__('Update password')" :subheading="__('Ensure your account is using a long, random password to stay secure')">
|
<x-settings.layout :heading="__('Update password')" :subheading="__('Ensure your account is using a long, random password to stay secure')">
|
||||||
<form method="POST" wire:submit="updatePassword" class="mt-6 space-y-6">
|
<form method="POST" wire:submit="updatePassword" class="mt-6 space-y-6">
|
||||||
<flux:input
|
<flux:input wire:model="current_password" :label="__('Current password')" type="password" required
|
||||||
wire:model="current_password"
|
autocomplete="current-password" viewable />
|
||||||
:label="__('Current password')"
|
<flux:input wire:model="password" :label="__('New password')" type="password" required
|
||||||
type="password"
|
|
||||||
required
|
|
||||||
autocomplete="current-password"
|
|
||||||
viewable
|
|
||||||
/>
|
|
||||||
<flux:input
|
|
||||||
wire:model="password"
|
|
||||||
:label="__('New password')"
|
|
||||||
type="password"
|
|
||||||
required
|
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
passwordrules="{{ \Illuminate\Validation\Rules\Password::defaults()->toPasswordRulesString() }}"
|
passwordrules="{{ \Illuminate\Validation\Rules\Password::defaults()->toPasswordRulesString() }}"
|
||||||
viewable
|
viewable />
|
||||||
/>
|
<flux:input wire:model="password_confirmation" :label="__('Confirm password')" type="password" required
|
||||||
<flux:input
|
|
||||||
wire:model="password_confirmation"
|
|
||||||
:label="__('Confirm password')"
|
|
||||||
type="password"
|
|
||||||
required
|
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
passwordrules="{{ \Illuminate\Validation\Rules\Password::defaults()->toPasswordRulesString() }}"
|
passwordrules="{{ \Illuminate\Validation\Rules\Password::defaults()->toPasswordRulesString() }}"
|
||||||
viewable
|
viewable />
|
||||||
/>
|
|
||||||
|
|
||||||
<div class="flex items-center gap-4">
|
<div class="flex items-center gap-4">
|
||||||
<flux:button variant="primary" type="submit" data-test="update-password-button">{{ __('Save') }}</flux:button>
|
<flux:button variant="primary" type="submit" data-test="update-password-button">{{ __('Save') }}
|
||||||
|
</flux:button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@@ -50,10 +35,7 @@
|
|||||||
</flux:text>
|
</flux:text>
|
||||||
|
|
||||||
<div class="flex justify-start">
|
<div class="flex justify-start">
|
||||||
<flux:button
|
<flux:button variant="danger" wire:click="disable">
|
||||||
variant="danger"
|
|
||||||
wire:click="disable"
|
|
||||||
>
|
|
||||||
{{ __('Disable 2FA') }}
|
{{ __('Disable 2FA') }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
</div>
|
</div>
|
||||||
@@ -66,10 +48,7 @@
|
|||||||
{{ __('When you enable two-factor authentication, you will be prompted for a secure pin during login. This pin can be retrieved from a TOTP-supported application on your phone.') }}
|
{{ __('When you enable two-factor authentication, you will be prompted for a secure pin during login. This pin can be retrieved from a TOTP-supported application on your phone.') }}
|
||||||
</flux:text>
|
</flux:text>
|
||||||
|
|
||||||
<flux:button
|
<flux:button variant="primary" wire:click="enable">
|
||||||
variant="primary"
|
|
||||||
wire:click="enable"
|
|
||||||
>
|
|
||||||
{{ __('Enable 2FA') }}
|
{{ __('Enable 2FA') }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
</div>
|
</div>
|
||||||
@@ -79,23 +58,23 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($canManageTwoFactor)
|
@if ($canManageTwoFactor)
|
||||||
<flux:modal
|
<flux:modal name="two-factor-setup-modal" class="max-w-md md:min-w-md" @close="closeModal"
|
||||||
name="two-factor-setup-modal"
|
wire:model="showModal">
|
||||||
class="max-w-md md:min-w-md"
|
|
||||||
@close="closeModal"
|
|
||||||
wire:model="showModal"
|
|
||||||
>
|
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<div class="flex flex-col items-center space-y-4">
|
<div class="flex flex-col items-center space-y-4">
|
||||||
<div class="p-0.5 w-auto rounded-full border border-stone-100 dark:border-stone-600 bg-white dark:bg-stone-800 shadow-sm">
|
<div
|
||||||
<div class="p-2.5 rounded-full border border-stone-200 dark:border-stone-600 overflow-hidden bg-stone-100 dark:bg-stone-200 relative">
|
class="p-0.5 w-auto rounded-full border border-stone-100 dark:border-stone-600 bg-white dark:bg-stone-800 shadow-sm">
|
||||||
<div class="flex items-stretch absolute inset-0 w-full h-full divide-x [&>div]:flex-1 divide-stone-200 dark:divide-stone-300 justify-around opacity-50">
|
<div
|
||||||
|
class="p-2.5 rounded-full border border-stone-200 dark:border-stone-600 overflow-hidden bg-stone-100 dark:bg-stone-200 relative">
|
||||||
|
<div
|
||||||
|
class="flex items-stretch absolute inset-0 w-full h-full divide-x [&>div]:flex-1 divide-stone-200 dark:divide-stone-300 justify-around opacity-50">
|
||||||
@for ($i = 1; $i <= 5; $i++)
|
@for ($i = 1; $i <= 5; $i++)
|
||||||
<div></div>
|
<div></div>
|
||||||
@endfor
|
@endfor
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-col items-stretch absolute w-full h-full divide-y [&>div]:flex-1 inset-0 divide-stone-200 dark:divide-stone-300 justify-around opacity-50">
|
<div
|
||||||
|
class="flex flex-col items-stretch absolute w-full h-full divide-y [&>div]:flex-1 inset-0 divide-stone-200 dark:divide-stone-300 justify-around opacity-50">
|
||||||
@for ($i = 1; $i <= 5; $i++)
|
@for ($i = 1; $i <= 5; $i++)
|
||||||
<div></div>
|
<div></div>
|
||||||
@endfor
|
@endfor
|
||||||
@@ -113,36 +92,19 @@
|
|||||||
|
|
||||||
@if ($showVerificationStep)
|
@if ($showVerificationStep)
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<div
|
<div class="flex flex-col items-center space-y-3 justify-center" x-data
|
||||||
class="flex flex-col items-center space-y-3 justify-center"
|
x-init="$nextTick(() => $el.querySelector('input')?.focus())">
|
||||||
x-data
|
<flux:otp name="code" wire:model="code" length="6" label="OTP Code" label:sr-only
|
||||||
x-init="$nextTick(() => $el.querySelector('input')?.focus())"
|
class="mx-auto" />
|
||||||
>
|
|
||||||
<flux:otp
|
|
||||||
name="code"
|
|
||||||
wire:model="code"
|
|
||||||
length="6"
|
|
||||||
label="OTP Code"
|
|
||||||
label:sr-only
|
|
||||||
class="mx-auto"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center space-x-3">
|
<div class="flex items-center space-x-3">
|
||||||
<flux:button
|
<flux:button variant="outline" class="flex-1" wire:click="resetVerification">
|
||||||
variant="outline"
|
|
||||||
class="flex-1"
|
|
||||||
wire:click="resetVerification"
|
|
||||||
>
|
|
||||||
{{ __('Back') }}
|
{{ __('Back') }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
|
|
||||||
<flux:button
|
<flux:button variant="primary" class="flex-1" wire:click="confirmTwoFactor"
|
||||||
variant="primary"
|
x-bind:disabled="$wire.code.length < 6">
|
||||||
class="flex-1"
|
|
||||||
wire:click="confirmTwoFactor"
|
|
||||||
x-bind:disabled="$wire.code.length < 6"
|
|
||||||
>
|
|
||||||
{{ __('Confirm') }}
|
{{ __('Confirm') }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
</div>
|
</div>
|
||||||
@@ -153,17 +115,18 @@
|
|||||||
@enderror
|
@enderror
|
||||||
|
|
||||||
<div class="flex justify-center">
|
<div class="flex justify-center">
|
||||||
<div class="relative w-64 overflow-hidden border rounded-lg border-stone-200 dark:border-stone-700 aspect-square">
|
<div
|
||||||
|
class="relative w-64 overflow-hidden border rounded-lg border-stone-200 dark:border-stone-700 aspect-square">
|
||||||
@empty($qrCodeSvg)
|
@empty($qrCodeSvg)
|
||||||
<div class="absolute inset-0 flex items-center justify-center bg-white dark:bg-stone-700 animate-pulse">
|
<div
|
||||||
|
class="absolute inset-0 flex items-center justify-center bg-white dark:bg-stone-700 animate-pulse">
|
||||||
<flux:icon.loading />
|
<flux:icon.loading />
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<div x-data class="flex items-center justify-center h-full p-4">
|
<div x-data class="flex items-center justify-center h-full p-4">
|
||||||
<div
|
<div class="bg-white p-3 rounded"
|
||||||
class="bg-white p-3 rounded"
|
:style="($flux.appearance === 'dark' || ($flux.appearance === 'system' && $flux
|
||||||
:style="($flux.appearance === 'dark' || ($flux.appearance === 'system' && $flux.dark)) ? 'filter: invert(1) brightness(1.5)' : ''"
|
.dark)) ? 'filter: invert(1) brightness(1.5)' : ''">
|
||||||
>
|
|
||||||
{!! $qrCodeSvg !!}
|
{!! $qrCodeSvg !!}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -172,12 +135,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<flux:button
|
<flux:button :disabled="$errors->has('setupData')" variant="primary" class="w-full"
|
||||||
:disabled="$errors->has('setupData')"
|
wire:click="showVerificationIfNecessary">
|
||||||
variant="primary"
|
|
||||||
class="w-full"
|
|
||||||
wire:click="showVerificationIfNecessary"
|
|
||||||
>
|
|
||||||
{{ $this->modalConfig['buttonText'] }}
|
{{ $this->modalConfig['buttonText'] }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
</div>
|
</div>
|
||||||
@@ -185,14 +144,13 @@
|
|||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
<div class="relative flex items-center justify-center w-full">
|
<div class="relative flex items-center justify-center w-full">
|
||||||
<div class="absolute inset-0 w-full h-px top-1/2 bg-stone-200 dark:bg-stone-600"></div>
|
<div class="absolute inset-0 w-full h-px top-1/2 bg-stone-200 dark:bg-stone-600"></div>
|
||||||
<span class="relative px-2 text-sm bg-white dark:bg-stone-800 text-stone-600 dark:text-stone-400">
|
<span
|
||||||
|
class="relative px-2 text-sm bg-white dark:bg-stone-800 text-stone-600 dark:text-stone-400">
|
||||||
{{ __('or, enter the code manually') }}
|
{{ __('or, enter the code manually') }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div class="flex items-center space-x-2" x-data="{
|
||||||
class="flex items-center space-x-2"
|
|
||||||
x-data="{
|
|
||||||
copied: false,
|
copied: false,
|
||||||
async copy() {
|
async copy() {
|
||||||
try {
|
try {
|
||||||
@@ -203,31 +161,22 @@
|
|||||||
console.warn('Could not copy to clipboard');
|
console.warn('Could not copy to clipboard');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}"
|
}">
|
||||||
>
|
|
||||||
<div class="flex items-stretch w-full border rounded-xl dark:border-stone-700">
|
<div class="flex items-stretch w-full border rounded-xl dark:border-stone-700">
|
||||||
@empty($manualSetupKey)
|
@empty($manualSetupKey)
|
||||||
<div class="flex items-center justify-center w-full p-3 bg-stone-100 dark:bg-stone-700">
|
<div
|
||||||
|
class="flex items-center justify-center w-full p-3 bg-stone-100 dark:bg-stone-700">
|
||||||
<flux:icon.loading variant="mini" />
|
<flux:icon.loading variant="mini" />
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<input
|
<input type="text" readonly value="{{ $manualSetupKey }}"
|
||||||
type="text"
|
class="w-full p-3 bg-transparent outline-none text-stone-900 dark:text-stone-100" />
|
||||||
readonly
|
|
||||||
value="{{ $manualSetupKey }}"
|
|
||||||
class="w-full p-3 bg-transparent outline-none text-stone-900 dark:text-stone-100"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<button
|
<button @click="copy()"
|
||||||
@click="copy()"
|
class="px-3 transition-colors border-l cursor-pointer border-stone-200 dark:border-stone-600">
|
||||||
class="px-3 transition-colors border-l cursor-pointer border-stone-200 dark:border-stone-600"
|
|
||||||
>
|
|
||||||
<flux:icon.document-duplicate x-show="!copied" variant="outline"></flux:icon>
|
<flux:icon.document-duplicate x-show="!copied" variant="outline"></flux:icon>
|
||||||
<flux:icon.check
|
<flux:icon.check x-show="copied" variant="solid" class="text-green-500">
|
||||||
x-show="copied"
|
</flux:icon>
|
||||||
variant="solid"
|
|
||||||
class="text-green-500"
|
|
||||||
></flux:icon>
|
|
||||||
</button>
|
</button>
|
||||||
@endempty
|
@endempty
|
||||||
</div>
|
</div>
|
||||||
@@ -246,16 +195,19 @@
|
|||||||
<div class="mt-6 flex flex-col w-full mx-auto space-y-6 text-sm" wire:cloak>
|
<div class="mt-6 flex flex-col w-full mx-auto space-y-6 text-sm" wire:cloak>
|
||||||
<div class="border rounded-lg border-zinc-200 dark:border-zinc-700 overflow-hidden">
|
<div class="border rounded-lg border-zinc-200 dark:border-zinc-700 overflow-hidden">
|
||||||
@forelse ($passkeys as $passkey)
|
@forelse ($passkeys as $passkey)
|
||||||
<div class="flex items-center justify-between p-4 {{ ! $loop->last ? 'border-b border-zinc-200 dark:border-zinc-700' : '' }}">
|
<div
|
||||||
|
class="flex items-center justify-between p-4 {{ !$loop->last ? 'border-b border-zinc-200 dark:border-zinc-700' : '' }}">
|
||||||
<div class="flex items-center gap-4">
|
<div class="flex items-center gap-4">
|
||||||
<div class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-zinc-100 dark:bg-zinc-800">
|
<div
|
||||||
|
class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-zinc-100 dark:bg-zinc-800">
|
||||||
<flux:icon.key class="size-5 text-zinc-500 dark:text-zinc-400" />
|
<flux:icon.key class="size-5 text-zinc-500 dark:text-zinc-400" />
|
||||||
</div>
|
</div>
|
||||||
<div class="space-y-1">
|
<div class="space-y-1">
|
||||||
<div class="flex items-center gap-2.5">
|
<div class="flex items-center gap-2.5">
|
||||||
<p class="font-medium tracking-tight">{{ $passkey['name'] }}</p>
|
<p class="font-medium tracking-tight">{{ $passkey['name'] }}</p>
|
||||||
@if ($passkey['authenticator'])
|
@if ($passkey['authenticator'])
|
||||||
<flux:badge size="sm">{{ $passkey['authenticator'] }}</flux:badge>
|
<flux:badge size="sm">{{ $passkey['authenticator'] }}
|
||||||
|
</flux:badge>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<p class="text-zinc-500 dark:text-zinc-400 text-xs">
|
<p class="text-zinc-500 dark:text-zinc-400 text-xs">
|
||||||
@@ -268,22 +220,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<flux:button
|
<flux:button variant="ghost" size="sm" icon="trash" icon:variant="outline"
|
||||||
variant="ghost"
|
|
||||||
size="sm"
|
|
||||||
icon="trash"
|
|
||||||
icon:variant="outline"
|
|
||||||
wire:click="confirmDelete({{ $passkey['id'] }})"
|
wire:click="confirmDelete({{ $passkey['id'] }})"
|
||||||
class="text-red-500 hover:text-red-600 hover:bg-red-50 dark:hover:bg-red-950/50"
|
class="text-red-500 hover:text-red-600 hover:bg-red-50 dark:hover:bg-red-950/50" />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
@empty
|
@empty
|
||||||
<div class="p-8 text-center">
|
<div class="p-8 text-center">
|
||||||
<div class="mx-auto mb-4 flex size-14 items-center justify-center rounded-2xl bg-zinc-100 dark:bg-zinc-800">
|
<div
|
||||||
|
class="mx-auto mb-4 flex size-14 items-center justify-center rounded-2xl bg-zinc-100 dark:bg-zinc-800">
|
||||||
<flux:icon.key class="size-7 text-zinc-400 dark:text-zinc-500" />
|
<flux:icon.key class="size-7 text-zinc-400 dark:text-zinc-500" />
|
||||||
</div>
|
</div>
|
||||||
<p class="font-medium">{{ __('No passkeys yet') }}</p>
|
<p class="font-medium">{{ __('No passkeys yet') }}</p>
|
||||||
<flux:text class="mt-1">{{ __('Add a passkey to sign in without a password') }}</flux:text>
|
<flux:text class="mt-1">{{ __('Add a passkey to sign in without a password') }}
|
||||||
|
</flux:text>
|
||||||
</div>
|
</div>
|
||||||
@endforelse
|
@endforelse
|
||||||
</div>
|
</div>
|
||||||
@@ -294,12 +243,8 @@
|
|||||||
@endif
|
@endif
|
||||||
</x-settings.layout>
|
</x-settings.layout>
|
||||||
|
|
||||||
<flux:modal
|
<flux:modal name="delete-passkey-modal" class="max-w-md md:min-w-md" @close="closeDeleteModal"
|
||||||
name="delete-passkey-modal"
|
wire:model="showDeleteModal">
|
||||||
class="max-w-md md:min-w-md"
|
|
||||||
@close="closeDeleteModal"
|
|
||||||
wire:model="showDeleteModal"
|
|
||||||
>
|
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<flux:heading size="lg">{{ __('Remove passkey') }}</flux:heading>
|
<flux:heading size="lg">{{ __('Remove passkey') }}</flux:heading>
|
||||||
@@ -309,16 +254,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex gap-3 justify-end">
|
<div class="flex gap-3 justify-end">
|
||||||
<flux:button
|
<flux:button variant="outline" wire:click="closeDeleteModal">
|
||||||
variant="outline"
|
|
||||||
wire:click="closeDeleteModal"
|
|
||||||
>
|
|
||||||
{{ __('Cancel') }}
|
{{ __('Cancel') }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
<flux:button
|
<flux:button variant="danger" wire:click="deletePasskey">
|
||||||
variant="danger"
|
|
||||||
wire:click="deletePasskey"
|
|
||||||
>
|
|
||||||
{{ __('Remove passkey') }}
|
{{ __('Remove passkey') }}
|
||||||
</flux:button>
|
</flux:button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user