@extends('layouts.app') @section('title', $selectedAccount ? "Dashboard: {$selectedAccount->name}" : 'Select Account - ResMan Sync') @section('extra_head') @endsection @section('extra_css') .account-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 1.5rem; padding: 2.5rem 2rem; text-align: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; position: relative; overflow: hidden; } .account-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); } .account-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, transparent, var(--primary), transparent); transform: translateX(-100%); transition: transform 0.6s; } .account-card:hover::before { transform: translateX(100%); } .account-icon { width: 64px; height: 64px; background: rgba(56, 189, 248, 0.1); border-radius: 1rem; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.5rem; font-weight: 700; } .account-card h3 { margin: 0; font-size: 1.2rem; font-weight: 600; } .account-stats { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-dim); } .btn-select { background: var(--primary); color: #0f172a; padding: 0.6rem 1.5rem; border-radius: 0.8rem; font-weight: 700; text-decoration: none; font-size: 0.9rem; margin-top: 1rem; } /* Progress Overlay Style (Restored) */ #sync-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px); z-index: 9999; display: none; justify-content: center; align-items: center; flex-direction: column; color: white; text-align: center; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); } } @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } .pulse-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; } .progress-bar-glow { background: linear-gradient(90deg, var(--primary), #7dd3fc, var(--primary)); background-size: 200% 100%; animation: shimmer 2s infinite linear; box-shadow: 0 0 10px rgba(56, 189, 248, 0.5); } .sync-card { background: rgba(30, 41, 59, 0.7); padding: 3rem; border-radius: 1.5rem; border: 1px solid var(--border); width: 90%; max-width: 500px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); } .progress-bar { width: 0%; height: 100%; background: var(--primary); box-shadow: 0 0 15px var(--primary); border-radius: 4px; transition: width 0.3s ease; } #sync-status-text { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--primary); } #copy-toast { position: fixed; bottom: 1rem; right: 2rem; background: var(--primary); color: #0f172a; padding: 0.6rem 1.2rem; border-radius: 0.5rem; font-weight: 700; font-size: 0.85rem; transform: translateY(150%); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 9999; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); } /* --- Comprehensive UI Overhaul Styles --- */ .content-section { background: rgba(15, 23, 42, 0.4); border: 1px solid var(--border); border-radius: 1.5rem; overflow: hidden; margin-bottom: 3rem; } .dashboard-page-header { padding: 2.5rem 2.5rem 1rem; display: flex; justify-content: space-between; align-items: center; background: transparent; } .dashboard-toolbar { padding: 0 2.5rem 2rem; background: transparent; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; } /* Input & Button Standardization */ .toolbar-input-group { display: flex; align-items: center; background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.75rem; height: 44px; transition: all 0.3s ease; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } .toolbar-input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2); background: rgba(15, 23, 42, 0.9); } .toolbar-input-group:focus-within { border-color: var(--primary); background: rgba(0, 0, 0, 0.3); box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.1); } .toolbar-btn { height: 44px; padding: 0 1.5rem; border-radius: 0.75rem; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 0.6rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; border: none; white-space: nowrap; } .toolbar-btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2); } /* Stat Card Premium Styling */ .stat-card { background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(10px); padding: 1.5rem; border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.3s ease; position: relative; overflow: hidden; } .stat-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), transparent); opacity: 0; transition: opacity 0.3s; } .stat-card:hover { border-color: rgba(56, 189, 248, 0.3); transform: translateY(-4px); background: rgba(30, 41, 59, 0.6); } .stat-card:hover::after { opacity: 1; } .stat-card .value { font-size: 2rem; font-weight: 800; color: var(--primary); display: flex; align-items: baseline; gap: 0.5rem; position: relative; z-index: 1; } /* Custom Checkbox Styling */ .custom-checkbox { display: block; position: relative; cursor: pointer; width: 20px; height: 20px; user-select: none; } .custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; } .checkmark { position: absolute; top: 0; left: 0; height: 20px; width: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 6px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .custom-checkbox:hover input~.checkmark { border-color: var(--primary); background: rgba(56, 189, 248, 0.05); } .custom-checkbox input:checked~.checkmark { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 10px rgba(56, 189, 248, 0.3); } .checkmark:after { content: ""; position: absolute; display: none; left: 7px; top: 3px; width: 4px; height: 8px; border: solid #0f172a; border-width: 0 2px 2px 0; transform: rotate(45deg); } .custom-checkbox input:checked~.checkmark:after { display: block; } /* Action Bar Styling */ #bulk-action-bar { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(200%); background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(16px); border: 1px solid rgba(56, 189, 248, 0.2); padding: 0.75rem 2rem; border-radius: 1.25rem; display: flex; align-items: center; gap: 2rem; z-index: 10000; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); } #bulk-action-bar.visible { transform: translateX(-50%) translateY(0); } /* --- Responsive View Toggling Logic --- */ .property-grid { padding: 0 2.5rem 2.5rem; } .property-card { background: rgba(15, 23, 42, 0.3); border: 1px solid var(--border); border-radius: 1.25rem; position: relative; overflow: hidden; transition: all 0.3s ease; margin-bottom: 1.25rem; } .property-card:hover { border-color: var(--primary); box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3); } /* DEFAULT (List View / Rows) */ .property-grid.list-view .property-card { padding: 1.5rem 2.5rem; display: grid; grid-template-columns: 50px 380px 1fr 320px; align-items: center; gap: 1rem; } /* ALTERNATE (Grid View / Squares) */ .property-grid:not(.list-view) { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; } .property-grid:not(.list-view) .property-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 0; background: rgba(15, 23, 42, 0.5); } /* Repositioning inner UI for Grid View */ .property-grid:not(.list-view) .property-card>div:nth-child(1) { /* Checkbox */ position: absolute; right: 1.5rem; top: 1.5rem; } .property-grid:not(.list-view) .property-card>div.metrics-container { /* Metrics block */ border-left: none !important; border-right: none !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding: 1rem 0 !important; height: auto !important; } .property-grid:not(.list-view) .property-card>div.identity-container { padding-right: 30px; /* Leave space for absolute checkbox */ min-height: 85px; /* Alignment */ } /* Status Toggle Switch UI */ .status-switch { position: relative; display: inline-block; width: 38px; height: 20px; margin: 0; flex-shrink: 0; } .status-switch input { opacity: 0; width: 0; height: 0; } .status-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 34px; border: 1px solid rgba(255,255,255,0.1); } .status-slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px; background-color: #f8fafc; transition: .4s; border-radius: 50%; } .status-switch input:checked + .status-slider { background-color: var(--primary); border-color: var(--primary); } .status-switch input:checked + .status-slider:before { transform: translateX(18px); background-color: #0f172a; } .status-switch input:focus + .status-slider { box-shadow: 0 0 10px rgba(56, 189, 248, 0.3); } @endsection @section('content') @include('partials.action-bar')
Synchronizing...
0%
Initializing connection...
@if(!$selectedAccount)

Welcome back!

Please select a ResMan account to manage properties.

@forelse($accounts as $acc)

{{ $acc->name }}

Enter Portal
@empty

No active ResMan accounts found.

+ Create First Account
@endforelse
@else
Dashboard {{ $selectedAccount->name }}

Property Overview

Reports
Active Portal

Account Properties

{{ $propertyCount }}Synced

Floorplans

{{ $floorplanCount }}Assets

API Hits {{ (request('date_from') || request('date_to')) ? '(Period)' : '(Life)' }}

{{ number_format($totalApiHits) }}

Synced Properties

Manage and synchronize your ResMan property portfolios.

All
@csrf
Property:
@if(request('date_from') || request('date_to')) @endif
Status:
Sort:
@if(request()->has('filter') || request()->has('sort') || request()->has('search') || request()->has('date_from') || request()->has('date_to')) Reset @endif
@include('partials.property-rows', ['properties' => $properties])
@if($properties->hasPages()) @endif
Portal Activity Log
@include('partials.log-rows', ['syncLogs' => $syncLogs])
@endif
ID Copied to Clipboard!
@endsection @section('extra_js') @endsection