Skip to content

Commit 5a3e464

Browse files
committed
fix
1 parent 99f6d20 commit 5a3e464

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

docs/examples.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -49,32 +49,30 @@ class XeroController extends Controller
4949

5050
*resources\views\xero.blade.php*
5151

52-
```bladehtml
5352
{% raw %}
5453
@extends('_layouts.main')
5554

5655
@section('content')
57-
@if($error)
58-
<h1>Your connection to Xero failed</h1>
59-
<p>{{ $error }}</p>
60-
<a href="{{ route('xero.auth.authorize') }}" class="btn btn-primary btn-large mt-4">
61-
Reconnect to Xero
62-
</a>
63-
@elseif($connected)
64-
<h1>You are connected to Xero</h1>
65-
<p>{{ $organisationName }} via {{ $username }}</p>
66-
<a href="{{ route('xero.auth.authorize') }}" class="btn btn-primary btn-large mt-4">
67-
Reconnect to Xero
68-
</a>
69-
@else
70-
<h1>You are not connected to Xero</h1>
71-
<a href="{{ route('xero.auth.authorize') }}" class="btn btn-primary btn-large mt-4">
72-
Connect to Xero
73-
</a>
74-
@endif
56+
@if($error)
57+
<h1>Your connection to Xero failed</h1>
58+
<p>{{ $error }}</p>
59+
<a href="{{ route('xero.auth.authorize') }}" class="btn btn-primary btn-large mt-4">
60+
Reconnect to Xero
61+
</a>
62+
@elseif($connected)
63+
<h1>You are connected to Xero</h1>
64+
<p>{{ $organisationName }} via {{ $username }}</p>
65+
<a href="{{ route('xero.auth.authorize') }}" class="btn btn-primary btn-large mt-4">
66+
Reconnect to Xero
67+
</a>
68+
@else
69+
<h1>You are not connected to Xero</h1>
70+
<a href="{{ route('xero.auth.authorize') }}" class="btn btn-primary btn-large mt-4">
71+
Connect to Xero
72+
</a>
73+
@endif
7574
@endsection
7675
{% endraw %}
77-
```
7876
*routes/web.php*
7977

8078
```php

0 commit comments

Comments
 (0)