@extends('admin.layouts.app') @section('title', 'Settings') @section('content')
{{-- Shop Details --}}

Shop Details

Update your store information.

@csrf
{{-- Change Password --}}

Change Password

Use a strong password.

@csrf
@error('current_password')

{{ $message }}

@enderror
{{-- SDK Embed Code --}}

SDK Embed Code

This is automatically injected via the Shopify Theme App Extension. For manual testing:

<script src="{{ config('CDN_URL', 'https://cdn.yourdomain.com') }}/checkout-sdk.js"
  onload="window.ExternalCheckout.init({ shop: '{{ $shop->domain }}', apiUrl: '{{ config('app.url') }}' })"
  defer></script>
{{-- Account Info --}}

Account Info

Name
{{ $user->name }}
Email
{{ $user->email }}
Role
{{ ucfirst($user->role) }}
Shop Domain
{{ $shop->domain }}
Last Login
{{ $user->last_login_at?->diffForHumans() ?? 'First login' }}
@endsection