Skip to content

Commit

Permalink
fix: trans
Browse files Browse the repository at this point in the history
  • Loading branch information
ah-rahimi committed Sep 2, 2023
1 parent b1d7833 commit 30f2d25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions resources/views/button/modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ class="modal-dialog modal-dialog-scrollable modal-{{ $modal->size }} @if ($modal

<div class="modal-footer">
<button class="btn btn-secondary btn-{{ $modal->close->size ?? 'md' }}" data-bs-dismiss="modal">
{{ $modal->close->label ?? 'بستن' }}
{{ $modal->close->label ?? 'Close' }}
</button>

@if ($modal->form)
<button type="submit" form="form_{{ $uniqueId }}"
class="btn btn-{{ $modal->form->submit->color ?? 'primary' }} btn-{{ $modal->form->submit->size ?? 'md' }}">
{{ $modal->form->submit->label ?? 'ثبت' }}
{{ $modal->form->submit->label ?? 'Submit' }}
</button>
@endif
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/form/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</div>

<button type="submit" class="btn btn-{{ $form->submit_color ?? 'primary' }} btn-{{ $form->submit_size }}">
{{ $form->submit ?? 'ثبت فرم' }}
{{ $form->submit ?? 'Submit' }}
</button>

@if (isset($form->reset))
Expand Down
10 changes: 5 additions & 5 deletions resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<div class="menu">
@foreach ($items as $item)
<a class="nav-link d-flex justify-content-between align-items-center {{ $item->active ? 'active' : '' }}" href="{{ $item->url }}">
<div class="d-flex gap-2">
<div class="d-flex gap-2 align-items-center">
<i class="{{ $item->icon }}"></i>
<span>{{ $item->name }}</span>
</div>
Expand All @@ -80,18 +80,18 @@
<div class="bottom-sidebar">
<hr>
@if (strtolower($config['logout']['method']) == 'post')
<a class="nav-link d-flex justify-content-between align-items-center gap-2" onclick="document.getElementById('logout-form').submit();">
<a class="nav-link d-flex align-items-center gap-2" onclick="document.getElementById('logout-form').submit();">
<i class="fa-light fa-sign-out-alt"></i>
<span>خروج</span>
<span>Logout</span>
</a>

<form id="logout-form" action="{{ route($config['logout']['route']) }}" method="POST" class="d-none">
@csrf
</form>
@else
<a class="nav-link d-flex justify-content-between align-items-center gap-2" href="{{ route($config['logout']['route']) }}">
<a class="nav-link d-flex align-items-center gap-2" href="{{ route($config['logout']['route']) }}">
<i class="fa-light fa-sign-out-alt"></i>
<span>خروج</span>
<span>Logout</span>
</a>
@endif
</div>
Expand Down

0 comments on commit 30f2d25

Please sign in to comment.