@extends('admin.layout.master') @section('title', 'Data Sync') @section('content')

Data Sync

{{-- @php $last_sync_inv = $last_sync->where('type', 1)->first(); $last_sync_acc = $last_sync->where('type', 2)->first(); @endphp --}}
{{-- @if(active_user() == 1)
Database: {{ env('SYNC_DB_DATABASE') }}
Database User: {{ env('SYNC_DB_USERNAME') }}
Database Password: {{ env('SYNC_DB_PASSWORD') }}
@endif @php $not_synced = 'Not Synced'; @endphp --}}

Inventory

{{--

{!! $last_sync_inv->getUser->name ?? $not_synced !!}

--}}
{{--

{!! $last_sync_inv ? date('d-m-Y h:i:sA', strtotime($last_sync_inv->created_at)): $not_synced !!}

--}}

{{-- @if($last_sync_inv) {{ date('d-m-Y', strtotime($last_sync_inv->date)) }} @else @endif --}}
{{-- Accounts --}}

Accounts

{{--

{!! $last_sync_acc->getUser->name ?? $not_synced !!}

--}}
{{--

{!! $last_sync_acc ? date('d-m-Y h:i:sA', strtotime($last_sync_acc->created_at)): $not_synced !!}

--}}

{{-- @if($last_sync_acc) {{ date('d-m-Y', strtotime($last_sync_acc->date)) }} @else @endif --}}
@include('admin.global.loader') @endsection @section('script') @endsection