Merge branch 'master' into title-subheading
This commit is contained in:
		@@ -32,23 +32,25 @@
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
                </x-form.section>
 | 
			
		||||
 | 
			
		||||
                @if (user()->can('read-common-companies') || user()->hasRole(['admin', 'manager']))
 | 
			
		||||
                    <x-form.section>
 | 
			
		||||
                        <x-slot name="head">
 | 
			
		||||
                            <x-form.section.head title="{{ trans('general.assign') }}" description="{!! trans('auth.form_description.assign', ['url' => $roles_url]) !!}" />
 | 
			
		||||
                        </x-slot>
 | 
			
		||||
                <x-form.section>
 | 
			
		||||
                    <x-slot name="head">
 | 
			
		||||
                        <x-form.section.head title="{{ trans('general.assign') }}" description="{!! trans('auth.form_description.assign', ['url' => $roles_url]) !!}" />
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
 | 
			
		||||
                        <x-slot name="body">
 | 
			
		||||
                            @can('read-common-companies')
 | 
			
		||||
                                <x-form.group.select multiple remote name="companies" label="{{ trans_choice('general.companies', 2) }}" :options="$companies" remote_action="{{ route('companies.index') }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
                    <x-slot name="body">
 | 
			
		||||
                        <x-form.group.select multiple remote name="companies" label="{{ trans_choice('general.companies', 2) }}" :options="$companies" remote_action="{{ route('companies.index') }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
 | 
			
		||||
                        @if (module_is_enabled('roles'))
 | 
			
		||||
                            @can('read-roles-roles')
 | 
			
		||||
                                <x-form.group.select name="roles" label="{{ trans_choice('general.roles', 1) }}" :options="$roles" change="onChangeRole" />
 | 
			
		||||
                            @endcan
 | 
			
		||||
 | 
			
		||||
                        @else
 | 
			
		||||
                            @role('admin|manager')
 | 
			
		||||
                                <x-form.group.select name="roles" label="{{ trans_choice('general.roles', 1) }}" :options="$roles" change="onChangeRole" />
 | 
			
		||||
                            @endrole
 | 
			
		||||
                        </x-slot>
 | 
			
		||||
                    </x-form.section>
 | 
			
		||||
                @endif
 | 
			
		||||
                        @endif
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
                </x-form.section>
 | 
			
		||||
 | 
			
		||||
                <x-form.section>
 | 
			
		||||
                    <x-slot name="head">
 | 
			
		||||
 
 | 
			
		||||
@@ -38,23 +38,25 @@
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
                </x-form.section>
 | 
			
		||||
 | 
			
		||||
                @if (user()->can('read-common-companies') || user()->hasRole(['admin', 'manager']))
 | 
			
		||||
                    <x-form.section>
 | 
			
		||||
                        <x-slot name="head">
 | 
			
		||||
                            <x-form.section.head title="{{ trans('general.assign') }}" description="{!! trans('auth.form_description.assign', ['url' => $roles_url]) !!}" />
 | 
			
		||||
                        </x-slot>
 | 
			
		||||
                <x-form.section>
 | 
			
		||||
                    <x-slot name="head">
 | 
			
		||||
                        <x-form.section.head title="{{ trans('general.assign') }}" description="{!! trans('auth.form_description.assign', ['url' => $roles_url]) !!}" />
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
 | 
			
		||||
                        <x-slot name="body">
 | 
			
		||||
                            @can('read-common-companies')
 | 
			
		||||
                                <x-form.group.select multiple remote name="companies" label="{{ trans_choice('general.companies', 2) }}" :options="$companies" selected-key="company_ids" :remote_action="route('companies.index')" form-group-class="sm:col-span-6" />
 | 
			
		||||
                    <x-slot name="body">
 | 
			
		||||
                        <x-form.group.select multiple remote name="companies" label="{{ trans_choice('general.companies', 2) }}" :options="$companies" selected-key="company_ids" :remote_action="route('companies.index')" form-group-class="sm:col-span-6" />
 | 
			
		||||
 | 
			
		||||
                        @if (module_is_enabled('roles'))
 | 
			
		||||
                            @can('read-roles-roles')
 | 
			
		||||
                                <x-form.group.select name="roles" label="{{ trans_choice('general.roles', 1) }}" :options="$roles" change="onChangeRole" selected-key="roles.id" />
 | 
			
		||||
                            @endcan
 | 
			
		||||
 | 
			
		||||
                        @else
 | 
			
		||||
                            @role('admin|manager')
 | 
			
		||||
                                <x-form.group.select name="roles" label="{{ trans_choice('general.roles', 1) }}" :options="$roles" change="onChangeRole" selected-key="roles.id" />
 | 
			
		||||
                            @endrole
 | 
			
		||||
                        </x-slot>
 | 
			
		||||
                    </x-form.section>
 | 
			
		||||
                @endif
 | 
			
		||||
                        @endif
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
                </x-form.section>
 | 
			
		||||
 | 
			
		||||
                <x-form.section>
 | 
			
		||||
                    <x-slot name="head">
 | 
			
		||||
@@ -62,7 +64,7 @@
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
 | 
			
		||||
                    <x-slot name="body">
 | 
			
		||||
                        <x-form.group.select name="landing_page" label="{{ trans('auth.landing_page') }}" :options="$landing_pages" dynamicOptions="landing_pages" />
 | 
			
		||||
                        <x-form.group.select name="landing_page" label="{{ trans('auth.landing_page') }}" :options="$landing_pages" dynamicOptions="landing_pages" force-dynamic-option-value />
 | 
			
		||||
 | 
			
		||||
                        <x-form.group.locale />
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
 
 | 
			
		||||
@@ -46,7 +46,7 @@
 | 
			
		||||
 | 
			
		||||
                    <x-table.tbody>
 | 
			
		||||
                        @foreach($users as $item)
 | 
			
		||||
                            <x-table.tr href="{{ route('users.edit', $item->id) }}">
 | 
			
		||||
                            <x-table.tr href="{{ route('users.show', $item->id) }}">
 | 
			
		||||
                                <x-table.td kind="bulkaction">
 | 
			
		||||
                                    <x-index.bulkaction.single
 | 
			
		||||
                                        id="{{ $item->id }}"
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										273
									
								
								resources/views/auth/users/show.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										273
									
								
								resources/views/auth/users/show.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,273 @@
 | 
			
		||||
<x-layouts.admin>
 | 
			
		||||
    <x-slot name="title">
 | 
			
		||||
        {{ $user->name }}
 | 
			
		||||
    </x-slot>
 | 
			
		||||
 | 
			
		||||
    <x-slot name="info">
 | 
			
		||||
        @if (! $user->enabled)
 | 
			
		||||
            <x-index.disable text="{{ trans_choice('general.users', 1) }}" />
 | 
			
		||||
        @endif
 | 
			
		||||
    </x-slot>
 | 
			
		||||
 | 
			
		||||
    <x-slot name="favorite"
 | 
			
		||||
        title="{{ $user->name }}"
 | 
			
		||||
        icon="person"
 | 
			
		||||
        :route="['users.show', $user->id]"
 | 
			
		||||
    ></x-slot>
 | 
			
		||||
 | 
			
		||||
    <x-slot name="buttons">
 | 
			
		||||
        @stack('create_button_start')
 | 
			
		||||
 | 
			
		||||
        @stack('edit_button_start')
 | 
			
		||||
 | 
			
		||||
        @can('update-auth-users')
 | 
			
		||||
        <x-link href="{{ route('users.edit', $user->id) }}" id="show-more-actions-edit-user">
 | 
			
		||||
            {{ trans('general.edit') }}
 | 
			
		||||
        </x-link>
 | 
			
		||||
        @endcan
 | 
			
		||||
 | 
			
		||||
        @stack('edit_button_end')
 | 
			
		||||
    </x-slot>
 | 
			
		||||
 | 
			
		||||
    <x-slot name="moreButtons">
 | 
			
		||||
        @stack('more_button_start')
 | 
			
		||||
 | 
			
		||||
        <x-dropdown id="show-more-actions-user">
 | 
			
		||||
            <x-slot name="trigger">
 | 
			
		||||
                <span class="material-icons pointer-events-none">more_horiz</span>
 | 
			
		||||
            </x-slot>
 | 
			
		||||
 | 
			
		||||
            @stack('delete_button_start')
 | 
			
		||||
 | 
			
		||||
            @can('delete-auth-users')
 | 
			
		||||
            <x-delete-link :model="$user" route="users.destroy" />
 | 
			
		||||
            @endcan
 | 
			
		||||
 | 
			
		||||
            @stack('delete_button_end')
 | 
			
		||||
        </x-dropdown>
 | 
			
		||||
 | 
			
		||||
        @stack('more_button_end')
 | 
			
		||||
    </x-slot>
 | 
			
		||||
 | 
			
		||||
    <x-slot name="content">
 | 
			
		||||
        <x-show.container>
 | 
			
		||||
            <x-show.summary>
 | 
			
		||||
                @stack('profile_start')
 | 
			
		||||
 | 
			
		||||
                <x-show.summary.left>
 | 
			
		||||
                    <x-slot name="avatar">
 | 
			
		||||
                        @if (setting('default.use_gravatar', '0') == '1')
 | 
			
		||||
                            <img src="{{ $user->picture }}" class="absolute w-12 h-12 rounded-full hidden lg:block" title="{{ $user->name }}" alt="{{ $user->name }}">
 | 
			
		||||
                        @elseif (is_object($user->picture))
 | 
			
		||||
                            <img src="{{ Storage::url($user->picture->id) }}" class="absolute w-12 h-12 rounded-full hidden lg:block" alt="{{ $user->name }}" title="{{ $user->name }}">
 | 
			
		||||
                        @else
 | 
			
		||||
                            <img src="{{ asset('public/img/user.svg') }}" class="absolute w-12 h-12 rounded-full hidden lg:block" alt="{{ $user->name }}"/>
 | 
			
		||||
                        @endif
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
 | 
			
		||||
                    <span>{{ $user->email }}</span>
 | 
			
		||||
                </x-show.summary.left>
 | 
			
		||||
 | 
			
		||||
                <x-show.summary.right>
 | 
			
		||||
                </x-show.summary.right>
 | 
			
		||||
            </x-show.summary>
 | 
			
		||||
 | 
			
		||||
            <x-show.content>
 | 
			
		||||
                <x-show.content.left>
 | 
			
		||||
                    @stack('name_input_start')
 | 
			
		||||
                    @stack('name_input_end')
 | 
			
		||||
 | 
			
		||||
                    @stack('logo_input_start')
 | 
			
		||||
                    @stack('logo_input_end')
 | 
			
		||||
 | 
			
		||||
                    @stack('email_input_start')
 | 
			
		||||
                    @stack('email_input_end')
 | 
			
		||||
 | 
			
		||||
                    @stack('roles_input_start')
 | 
			
		||||
                    <div class="flex flex-col text-sm sm:mb-5">
 | 
			
		||||
                        <div class="font-medium">{{ trans_choice('general.roles', 1) }}</div>
 | 
			
		||||
                        <span>{{ $user->roles()?->first()?->display_name }}</span>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    @stack('roles_input_end')
 | 
			
		||||
 | 
			
		||||
                    @stack('landing_page_input_start')
 | 
			
		||||
                    <div class="flex flex-col text-sm sm:mb-5">
 | 
			
		||||
                        <div class="font-medium">{{ trans('auth.landing_page') }}</div>
 | 
			
		||||
                        <span>{{ $landing_pages[$user->landing_page] }}</span>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    @stack('landing_page_input_end')
 | 
			
		||||
 | 
			
		||||
                    @stack('locale_input_start')
 | 
			
		||||
                    <div class="flex flex-col text-sm sm:mb-5">
 | 
			
		||||
                        <div class="font-medium">{{ trans_choice('general.languages', 1)  }}</div>
 | 
			
		||||
                        <span>{{ language()->allowed()[$user->locale] }}</span>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    @stack('locale_input_end')
 | 
			
		||||
                </x-show.content.left>
 | 
			
		||||
 | 
			
		||||
                <x-show.content.right>
 | 
			
		||||
                    <x-tabs active="companies">
 | 
			
		||||
                        <x-slot name="navs">
 | 
			
		||||
                            @stack('companies_nav_start')
 | 
			
		||||
 | 
			
		||||
                            <x-tabs.nav
 | 
			
		||||
                                id="companies"
 | 
			
		||||
                                name="{{ trans_choice('general.companies', 2) }}"
 | 
			
		||||
                                active
 | 
			
		||||
                            />
 | 
			
		||||
 | 
			
		||||
                            @stack('companies_nav_end')
 | 
			
		||||
                        </x-slot>
 | 
			
		||||
 | 
			
		||||
                        <x-slot name="content">
 | 
			
		||||
                            @stack('companies_tab_start')
 | 
			
		||||
 | 
			
		||||
                            <x-tabs.tab id="companies">
 | 
			
		||||
                                <x-table>
 | 
			
		||||
                                    <x-table.thead>
 | 
			
		||||
                                        <x-table.tr>
 | 
			
		||||
                                            <x-table.th class="w-2/12 sm:w-1/12">
 | 
			
		||||
                                                <x-sortablelink column="id" title="{{ trans('general.id') }}" />
 | 
			
		||||
                                            </x-table.th>
 | 
			
		||||
 | 
			
		||||
                                            <x-table.th class="w-8/12 sm:w-4/12">
 | 
			
		||||
                                                <x-slot name="first" class="flex items-center">
 | 
			
		||||
                                                    <x-sortablelink column="name" title="{{ trans('general.name') }}" />
 | 
			
		||||
                                                </x-slot>
 | 
			
		||||
                                                <x-slot name="second">
 | 
			
		||||
                                                    <x-sortablelink column="tax_number" title="{{ trans('general.tax_number') }}" />
 | 
			
		||||
                                                </x-slot>
 | 
			
		||||
                                            </x-table.th>
 | 
			
		||||
 | 
			
		||||
                                            <x-table.th class="w-4/12" hidden-mobile>
 | 
			
		||||
                                                <x-slot name="first">
 | 
			
		||||
                                                    <x-sortablelink column="email" title="{{ trans('general.email') }}" />
 | 
			
		||||
                                                </x-slot>
 | 
			
		||||
                                                <x-slot name="second">
 | 
			
		||||
                                                    <x-sortablelink column="phone" title="{{ trans('general.phone') }}" />
 | 
			
		||||
                                                </x-slot>
 | 
			
		||||
                                            </x-table.th>
 | 
			
		||||
 | 
			
		||||
                                            <x-table.th class="w-3/12" kind="right">
 | 
			
		||||
                                                <x-slot name="first">
 | 
			
		||||
                                                    <x-sortablelink column="country" title="{{ trans_choice('general.countries', 1) }}" />
 | 
			
		||||
                                                </x-slot>
 | 
			
		||||
                                                <x-slot name="second">
 | 
			
		||||
                                                    <x-sortablelink column="currency" title="{{ trans_choice('general.currencies', 1) }}" />
 | 
			
		||||
                                                </x-slot>
 | 
			
		||||
                                            </x-table.th>
 | 
			
		||||
                                        </x-table.tr>
 | 
			
		||||
                                    </x-table.thead>
 | 
			
		||||
 | 
			
		||||
                                    <x-table.tbody>
 | 
			
		||||
                                        @foreach($companies as $item)
 | 
			
		||||
                                            @if (in_array($item->id, user()->company_ids))
 | 
			
		||||
                                                <x-table.tr>
 | 
			
		||||
                                                    <x-table.td class="w-2/12 sm:w-1/12">
 | 
			
		||||
                                                        {{ $item->id }}
 | 
			
		||||
                                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                                    <x-table.td class="w-8/12 sm:w-4/12">
 | 
			
		||||
                                                        <x-slot name="first" class="flex" override="class">
 | 
			
		||||
                                                            <div class="font-bold truncate">
 | 
			
		||||
                                                                {{ $item->name }}
 | 
			
		||||
                                                            </div>
 | 
			
		||||
 | 
			
		||||
                                                            @if (! $item->enabled)
 | 
			
		||||
                                                                <x-index.disable text="{{ trans_choice('general.companies', 1) }}" />
 | 
			
		||||
                                                            @endif
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                        <x-slot name="second">
 | 
			
		||||
                                                            @if ($item->tax_number)
 | 
			
		||||
                                                                {{ $item->tax_number }}
 | 
			
		||||
                                                            @else
 | 
			
		||||
                                                                <x-empty-data />
 | 
			
		||||
                                                            @endif
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                                    <x-table.td class="w-4/12" hidden-mobile>
 | 
			
		||||
                                                        <x-slot name="first">
 | 
			
		||||
                                                            @if ($item->email)
 | 
			
		||||
                                                                {{ $item->email }}
 | 
			
		||||
                                                            @else
 | 
			
		||||
                                                                <x-empty-data />
 | 
			
		||||
                                                            @endif
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                        <x-slot name="second">
 | 
			
		||||
                                                            @if ($item->phone)
 | 
			
		||||
                                                                {{ $item->phone }}
 | 
			
		||||
                                                            @else
 | 
			
		||||
                                                                <x-empty-data />
 | 
			
		||||
                                                            @endif
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                                    <x-table.td class="w-3/12" kind="amount">
 | 
			
		||||
                                                        <x-slot name="first">
 | 
			
		||||
                                                            @if ($item->country)
 | 
			
		||||
                                                                <x-index.country code="{{ $item->country }}" />
 | 
			
		||||
                                                            @else
 | 
			
		||||
                                                                <x-empty-data />
 | 
			
		||||
                                                            @endif
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                        <x-slot name="second">
 | 
			
		||||
                                                            @if ($item->currency)
 | 
			
		||||
                                                                <x-index.currency code="{{ $item->currency }}" />
 | 
			
		||||
                                                            @else
 | 
			
		||||
                                                                <x-empty-data />
 | 
			
		||||
                                                            @endif
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                    </x-table.td>
 | 
			
		||||
                                                </x-table.tr>
 | 
			
		||||
                                            @else
 | 
			
		||||
                                                <x-table.tr>
 | 
			
		||||
                                                    <x-table.td class="w-2/12 sm:w-1/12">
 | 
			
		||||
                                                        ***
 | 
			
		||||
                                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                                    <x-table.td class="w-8/12 sm:w-4/12">
 | 
			
		||||
                                                        <x-slot name="first" class="flex" override="class">
 | 
			
		||||
                                                            <div class="font-bold truncate">
 | 
			
		||||
                                                                ***
 | 
			
		||||
                                                            </div>
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                        <x-slot name="second">
 | 
			
		||||
                                                            ***
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                                    <x-table.td class="w-4/12" hidden-mobile>
 | 
			
		||||
                                                        <x-slot name="first">
 | 
			
		||||
                                                            ***
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                        <x-slot name="second">
 | 
			
		||||
                                                            ***
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                                    <x-table.td class="w-3/12" kind="amount">
 | 
			
		||||
                                                        <x-slot name="first">
 | 
			
		||||
                                                            ***
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                        <x-slot name="second">
 | 
			
		||||
                                                            ***
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                    </x-table.td>
 | 
			
		||||
                                                </x-table.tr>
 | 
			
		||||
                                            @endif
 | 
			
		||||
                                        @endforeach
 | 
			
		||||
                                    </x-table.tbody>
 | 
			
		||||
                                </x-table>
 | 
			
		||||
                            </x-tabs.tab>
 | 
			
		||||
 | 
			
		||||
                            @stack('companies_tab_end')
 | 
			
		||||
                        </x-slot>
 | 
			
		||||
                    </x-tabs>
 | 
			
		||||
                </x-show.content.right>
 | 
			
		||||
            </x-show.content>
 | 
			
		||||
        </x-show-container>
 | 
			
		||||
    </x-slot>
 | 
			
		||||
 | 
			
		||||
    <x-contacts.script type="user" />
 | 
			
		||||
</x-layouts.admin>
 | 
			
		||||
@@ -26,7 +26,6 @@
 | 
			
		||||
                                'credit_card' => trans_choice('accounts.credit_cards', 1),
 | 
			
		||||
                            ]"
 | 
			
		||||
                            checked="bank"
 | 
			
		||||
                            @input="onType($event)"
 | 
			
		||||
                        />
 | 
			
		||||
 | 
			
		||||
                        <x-form.group.text name="name" label="{{ trans('general.name') }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,6 @@
 | 
			
		||||
                                'credit_card' => trans_choice('accounts.credit_cards', 1),
 | 
			
		||||
                            ]"
 | 
			
		||||
                            checked="{{ $account->type }}"
 | 
			
		||||
                            @input="onType($event)"
 | 
			
		||||
                        />
 | 
			
		||||
 | 
			
		||||
                        <x-form.group.text name="name" label="{{ trans('general.name') }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
 
 | 
			
		||||
@@ -97,7 +97,7 @@
 | 
			
		||||
                            </x-table.td>
 | 
			
		||||
 | 
			
		||||
                            <x-table.td class="w-6/12 sm:w-3/12" kind="amount">
 | 
			
		||||
                                <x-money :amount="$item->balance" :currency="$item->currency_code" convert />
 | 
			
		||||
                                <x-money :amount="$item->balance" :currency="$item->currency_code" />
 | 
			
		||||
                            </x-table.td>
 | 
			
		||||
 | 
			
		||||
                            <x-table.td kind="action">
 | 
			
		||||
 
 | 
			
		||||
@@ -178,7 +178,7 @@
 | 
			
		||||
                        </div>
 | 
			
		||||
 | 
			
		||||
                        <span>
 | 
			
		||||
                            <x-money :amount="$account->opening_balance" :currency="$account->currency_code" convert />
 | 
			
		||||
                            <x-money :amount="$account->opening_balance" :currency="$account->currency_code" />
 | 
			
		||||
                        </span>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    @stack('opening_balance_input_end')
 | 
			
		||||
@@ -323,7 +323,7 @@
 | 
			
		||||
                                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                                    <x-table.td class="w-6/12 lg:w-3/12" kind="amount">
 | 
			
		||||
                                                        <x-money :amount="$item->amount" :currency="$item->currency_code" convert />
 | 
			
		||||
                                                        <x-money :amount="$item->amount" :currency="$item->currency_code" />
 | 
			
		||||
                                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                                    <x-table.td kind="action">
 | 
			
		||||
@@ -391,7 +391,7 @@
 | 
			
		||||
                                                    $item->name = trans('transfers.messages.delete', [
 | 
			
		||||
                                                        'from' => $item->expense_transaction->account->name,
 | 
			
		||||
                                                        'to' => $item->income_transaction->account->name,
 | 
			
		||||
                                                        'amount' => money($item->expense_transaction->amount, $item->expense_transaction->currency_code, true)
 | 
			
		||||
                                                        'amount' => money($item->expense_transaction->amount, $item->expense_transaction->currency_code)
 | 
			
		||||
                                                    ]);
 | 
			
		||||
                                                @endphp
 | 
			
		||||
 | 
			
		||||
@@ -429,10 +429,10 @@
 | 
			
		||||
 | 
			
		||||
                                                    <x-table.td class="w-6/12 sm:w-3/12" kind="amount">
 | 
			
		||||
                                                        <x-slot name="first">
 | 
			
		||||
                                                            <x-money :amount="$item->expense_transaction->amount" :currency="$item->expense_transaction->currency_code" convert />
 | 
			
		||||
                                                            <x-money :amount="$item->expense_transaction->amount" :currency="$item->expense_transaction->currency_code" />
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                        <x-slot name="second">
 | 
			
		||||
                                                            <x-money :amount="$item->income_transaction->amount" :currency="$item->income_transaction->currency_code" convert />
 | 
			
		||||
                                                            <x-money :amount="$item->income_transaction->amount" :currency="$item->income_transaction->currency_code" />
 | 
			
		||||
                                                        </x-slot>
 | 
			
		||||
                                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -51,8 +51,8 @@
 | 
			
		||||
                            :currency="$currency"
 | 
			
		||||
                        />
 | 
			
		||||
 | 
			
		||||
                        <x-form.group.account 
 | 
			
		||||
                            form-group-class="col-span-10 lg:col-span-5 xl:col-span-2 account-input" 
 | 
			
		||||
                        <x-form.group.account
 | 
			
		||||
                            form-group-class="col-span-10 lg:col-span-5 xl:col-span-2 account-input"
 | 
			
		||||
                            selected="{{ request('account_id', setting('default.account')) }}"
 | 
			
		||||
                        />
 | 
			
		||||
 | 
			
		||||
@@ -130,7 +130,7 @@
 | 
			
		||||
 | 
			
		||||
                                @if ($item->isIncome())
 | 
			
		||||
                                    <x-table.td class="w-6/12 lg:w-2/12" hidden-mobile kind="cursor-none">
 | 
			
		||||
                                        <x-money :amount="$item->amount" :currency="$item->currency_code" convert />
 | 
			
		||||
                                        <x-money :amount="$item->amount" :currency="$item->currency_code" />
 | 
			
		||||
                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                    <x-table.td class="w-6/12 lg:w-2/12" hidden-mobile kind="cursor-none">
 | 
			
		||||
@@ -142,7 +142,7 @@
 | 
			
		||||
                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                    <x-table.td class="w-6/12 lg:w-2/12" hidden-mobile kind="cursor-none">
 | 
			
		||||
                                        <x-money :amount="$item->amount" :currency="$item->currency_code" convert />
 | 
			
		||||
                                        <x-money :amount="$item->amount" :currency="$item->currency_code" />
 | 
			
		||||
                                    </x-table.td>
 | 
			
		||||
                                @endif
 | 
			
		||||
 | 
			
		||||
@@ -174,7 +174,7 @@
 | 
			
		||||
 | 
			
		||||
                                    <td id="closing-balance" class="w-3/12 ltr:text-right rtl:text-left">
 | 
			
		||||
                                        <span class="w-auto pl-6 text-sm">
 | 
			
		||||
                                            <x-money :amount="$opening_balance" :currency="$account->currency_code" convert />
 | 
			
		||||
                                            <x-money :amount="$opening_balance" :currency="$account->currency_code" />
 | 
			
		||||
                                        </span>
 | 
			
		||||
                                    </td>
 | 
			
		||||
                                </tr>
 | 
			
		||||
 
 | 
			
		||||
@@ -64,7 +64,7 @@
 | 
			
		||||
 | 
			
		||||
                                @if ($item->isIncome())
 | 
			
		||||
                                    <x-table.td class="w-6/12 lg:w-2/12" hidden-mobile kind="cursor-none">
 | 
			
		||||
                                        <x-money :amount="$item->amount" hidden-mobile :currency="$item->currency_code" convert />
 | 
			
		||||
                                        <x-money :amount="$item->amount" hidden-mobile :currency="$item->currency_code" />
 | 
			
		||||
                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                    <x-table.td class="w-6/12 lg:w-2/12" hidden-mobile kind="cursor-none">
 | 
			
		||||
@@ -76,7 +76,7 @@
 | 
			
		||||
                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                    <x-table.td class="w-6/12 lg:w-2/12" hidden-mobile kind="cursor-none">
 | 
			
		||||
                                        <x-money :amount="$item->amount" :currency="$item->currency_code" convert />
 | 
			
		||||
                                        <x-money :amount="$item->amount" :currency="$item->currency_code" />
 | 
			
		||||
                                    </x-table.td>
 | 
			
		||||
                                @endif
 | 
			
		||||
 | 
			
		||||
@@ -123,7 +123,7 @@
 | 
			
		||||
 | 
			
		||||
                                <td id="closing-balance" class="w-3/12 text-right">
 | 
			
		||||
                                    <span class="w-auto pl-6 text-sm">
 | 
			
		||||
                                        <x-money :amount="$opening_balance" :currency="$account->currency_code" convert />
 | 
			
		||||
                                        <x-money :amount="$opening_balance" :currency="$account->currency_code" />
 | 
			
		||||
                                    </span>
 | 
			
		||||
                                </td>
 | 
			
		||||
                            </tr>
 | 
			
		||||
@@ -262,4 +262,4 @@
 | 
			
		||||
    </x-slot>
 | 
			
		||||
 | 
			
		||||
    <x-script folder="banking" file="reconciliations" />
 | 
			
		||||
</x-layouts.admin>
 | 
			
		||||
</x-layouts.admin>
 | 
			
		||||
 
 | 
			
		||||
@@ -103,7 +103,7 @@
 | 
			
		||||
 | 
			
		||||
                                <x-table.td class="w-6/12 sm:w-3/12" kind="amount">
 | 
			
		||||
                                    @if ($item->closing_balance)
 | 
			
		||||
                                        <x-money :amount="$item->closing_balance" :currency="$item->account->currency_code" convert />
 | 
			
		||||
                                        <x-money :amount="$item->closing_balance" :currency="$item->account->currency_code" />
 | 
			
		||||
                                    @else
 | 
			
		||||
                                        <x-empty-data />
 | 
			
		||||
                                    @endif
 | 
			
		||||
@@ -120,7 +120,7 @@
 | 
			
		||||
                <x-pagination :items="$reconciliations" />
 | 
			
		||||
            </x-index.container>
 | 
			
		||||
        @else
 | 
			
		||||
            <x-empty-page group="banking" page="reconciliations" />
 | 
			
		||||
            <x-empty-page group="banking" page="reconciliations" hide-button-import />
 | 
			
		||||
        @endif
 | 
			
		||||
    </x-slot>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -54,7 +54,7 @@
 | 
			
		||||
                    <x-slot name="body">
 | 
			
		||||
                        <x-form.group.category type="{{ $real_type }}" :selected="setting('default.' . $real_type . '_category')" />
 | 
			
		||||
 | 
			
		||||
                        <x-form.group.contact type="{{ config('type.transaction.' . $real_type . '.contact_type') }}" not-required />
 | 
			
		||||
                        <x-form.group.contact :type="$contact_type" not-required />
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
                </x-form.section>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -47,7 +47,7 @@
 | 
			
		||||
                    <x-slot name="body">
 | 
			
		||||
                        <x-form.group.category type="{{ $real_type }}" />
 | 
			
		||||
 | 
			
		||||
                        <x-form.group.contact type="{{ config('type.transaction.' . $real_type . '.contact_type') }}" not-required />
 | 
			
		||||
                        <x-form.group.contact :type="$contact_type" not-required />
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
                </x-form.section>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -39,10 +39,6 @@
 | 
			
		||||
                            <x-table>
 | 
			
		||||
                                <x-table.thead>
 | 
			
		||||
                                    <x-table.tr>
 | 
			
		||||
                                        <x-table.th kind="bulkaction">
 | 
			
		||||
                                            <x-index.bulkaction.all />
 | 
			
		||||
                                        </x-table.th>
 | 
			
		||||
 | 
			
		||||
                                        <x-table.th class="w-4/12 sm:w-3/12">
 | 
			
		||||
                                            <x-slot name="first">
 | 
			
		||||
                                                <x-sortablelink column="recurring.started_at" title="{{ trans('general.start_date') }}" />
 | 
			
		||||
@@ -83,10 +79,6 @@
 | 
			
		||||
                                <x-table.tbody>
 | 
			
		||||
                                    @foreach($transactions as $item)
 | 
			
		||||
                                        <x-table.tr href="{{ route('recurring-transactions.show', $item->id) }}">
 | 
			
		||||
                                            <x-table.td kind="bulkaction">
 | 
			
		||||
                                                <x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->contact->name }}" />
 | 
			
		||||
                                            </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                            <x-table.td class="w-4/12 sm:w-3/12">
 | 
			
		||||
                                                <x-slot name="first">
 | 
			
		||||
                                                    <x-date date="{{ $item->recurring->started_at }}" />
 | 
			
		||||
@@ -129,7 +121,7 @@
 | 
			
		||||
                                            </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                            <x-table.td class="w-4/12 sm:w-2/12" kind="amount">
 | 
			
		||||
                                                <x-money :amount="$item->amount" :currency="$item->currency_code" convert />
 | 
			
		||||
                                                <x-money :amount="$item->amount" :currency="$item->currency_code" />
 | 
			
		||||
                                            </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                            <x-table.td kind="action">
 | 
			
		||||
 
 | 
			
		||||
@@ -40,9 +40,9 @@
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
 | 
			
		||||
                    <x-slot name="body">
 | 
			
		||||
                        <x-form.group.category type="{{ $real_type }}" :selected="setting('default.' . $real_type . '_category')" />
 | 
			
		||||
                        <x-form.group.category :type="$real_type" :selected="setting('default.' . $real_type . '_category')" />
 | 
			
		||||
 | 
			
		||||
                        <x-form.group.contact type="{{ config('type.transaction.' . $real_type . '.contact_type') }}" not-required />
 | 
			
		||||
                        <x-form.group.contact :type="$contact_type" not-required />
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
                </x-form.section>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -56,9 +56,9 @@
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
 | 
			
		||||
                    <x-slot name="body">
 | 
			
		||||
                        <x-form.group.category type="{{ $type }}" />
 | 
			
		||||
                        <x-form.group.category :type="$type" />
 | 
			
		||||
 | 
			
		||||
                        <x-form.group.contact type="{{ config('type.transaction.' . $type . '.contact_type') }}" not-required />
 | 
			
		||||
                        <x-form.group.contact :type="$contact_type" not-required />
 | 
			
		||||
 | 
			
		||||
                        @if ($transaction->document)
 | 
			
		||||
                            <x-form.group.text name="document" label="{{ trans_choice('general.' . Str::plural(config('type.transaction.' . $type . '.document_type')), 1) }}" not-required disabled value="{{ $transaction->document->document_number }}" />
 | 
			
		||||
 
 | 
			
		||||
@@ -185,7 +185,7 @@
 | 
			
		||||
                                            </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                            <x-table.td class="relative w-4/12 sm:w-2/12" kind="amount">
 | 
			
		||||
                                                <x-money :amount="$item->amount" :currency="$item->currency_code" convert />
 | 
			
		||||
                                                <x-money :amount="$item->amount" :currency="$item->currency_code" />
 | 
			
		||||
                                            </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                            <x-table.td kind="action">
 | 
			
		||||
 
 | 
			
		||||
@@ -94,7 +94,7 @@
 | 
			
		||||
                                $item->name = trans('transfers.messages.delete', [
 | 
			
		||||
                                    'from' => $item->expense_transaction->account->name,
 | 
			
		||||
                                    'to' => $item->income_transaction->account->name,
 | 
			
		||||
                                    'amount' => money($item->expense_transaction->amount, $item->expense_transaction->currency_code, true)
 | 
			
		||||
                                    'amount' => money($item->expense_transaction->amount, $item->expense_transaction->currency_code)
 | 
			
		||||
                                ]);
 | 
			
		||||
                            @endphp
 | 
			
		||||
 | 
			
		||||
@@ -136,10 +136,10 @@
 | 
			
		||||
 | 
			
		||||
                                <x-table.td class="w-4/12 sm:w-3/12" kind="amount">
 | 
			
		||||
                                    <x-slot name="first">
 | 
			
		||||
                                        <x-money :amount="$item->expense_transaction->amount" :currency="$item->expense_transaction->currency_code" convert />
 | 
			
		||||
                                        <x-money :amount="$item->expense_transaction->amount" :currency="$item->expense_transaction->currency_code" />
 | 
			
		||||
                                    </x-slot>
 | 
			
		||||
                                    <x-slot name="second">
 | 
			
		||||
                                        <x-money :amount="$item->income_transaction->amount" :currency="$item->income_transaction->currency_code" convert />
 | 
			
		||||
                                        <x-money :amount="$item->income_transaction->amount" :currency="$item->income_transaction->currency_code" />
 | 
			
		||||
                                    </x-slot>
 | 
			
		||||
                                </x-table.td>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -47,51 +47,29 @@
 | 
			
		||||
            popper-class="dashboard-picker"
 | 
			
		||||
            :picker-options="{
 | 
			
		||||
                shortcuts: [
 | 
			
		||||
                    {
 | 
			
		||||
                        text: '{{ trans("reports.this_year") }}',
 | 
			
		||||
                        onClick(picker) {
 | 
			
		||||
                            const start = new Date('{{ $date_picker_shortcuts[trans("reports.this_year")]["start"] }}');
 | 
			
		||||
                            const end = new Date('{{ $date_picker_shortcuts[trans("reports.this_year")]["end"] }}');
 | 
			
		||||
                    @php
 | 
			
		||||
                        $shortcuts = [
 | 
			
		||||
                            trans('reports.this_year'),
 | 
			
		||||
                            trans('reports.previous_year'),
 | 
			
		||||
                            trans('reports.this_quarter'),
 | 
			
		||||
                            trans('reports.previous_quarter'),
 | 
			
		||||
                            trans('reports.last_12_months')
 | 
			
		||||
                        ];
 | 
			
		||||
                    @endphp
 | 
			
		||||
 | 
			
		||||
                            picker.$emit('pick', [start, end]);
 | 
			
		||||
                        }
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        text: '{{ trans("reports.previous_year") }}',
 | 
			
		||||
                        onClick(picker) {
 | 
			
		||||
                            const start = new Date('{{ $date_picker_shortcuts[trans("reports.previous_year")]["start"] }}');
 | 
			
		||||
                            const end = new Date('{{ $date_picker_shortcuts[trans("reports.previous_year")]["end"] }}');
 | 
			
		||||
                    @foreach ($shortcuts as $shortcut)
 | 
			
		||||
                        @continue(! isset($date_picker_shortcuts[$shortcut]))
 | 
			
		||||
 | 
			
		||||
                            picker.$emit('pick', [start, end]);
 | 
			
		||||
                        }
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        text: '{{ trans("reports.this_quarter") }}',
 | 
			
		||||
                        onClick(picker) {
 | 
			
		||||
                            const start = new Date('{{ $date_picker_shortcuts[trans("reports.this_quarter")]["start"] }}');
 | 
			
		||||
                            const end = new Date('{{ $date_picker_shortcuts[trans("reports.this_quarter")]["end"] }}');
 | 
			
		||||
                        {
 | 
			
		||||
                            text: '{{ $shortcut }}',
 | 
			
		||||
                            onClick(picker) {
 | 
			
		||||
                                const start = new Date('{{ $date_picker_shortcuts[$shortcut]["start"] }}');
 | 
			
		||||
                                const end = new Date('{{ $date_picker_shortcuts[$shortcut]["end"] }}');
 | 
			
		||||
 | 
			
		||||
                            picker.$emit('pick', [start, end]);
 | 
			
		||||
                        }
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        text: '{{ trans("reports.previous_quarter") }}',
 | 
			
		||||
                        onClick(picker) {
 | 
			
		||||
                            const start = new Date('{{ $date_picker_shortcuts[trans("reports.previous_quarter")]["start"] }}');
 | 
			
		||||
                            const end = new Date('{{ $date_picker_shortcuts[trans("reports.previous_quarter")]["end"] }}');
 | 
			
		||||
 | 
			
		||||
                            picker.$emit('pick', [start, end]);
 | 
			
		||||
                        }
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        text: '{{ trans("reports.last_12_months") }}',
 | 
			
		||||
                        onClick(picker) {
 | 
			
		||||
                            const start = new Date('{{ $date_picker_shortcuts[trans("reports.last_12_months")]["start"] }}');
 | 
			
		||||
                            const end = new Date('{{ $date_picker_shortcuts[trans("reports.last_12_months")]["end"] }}');
 | 
			
		||||
 | 
			
		||||
                            picker.$emit('pick', [start, end]);
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                                picker.$emit('pick', [start, end]);
 | 
			
		||||
                            }
 | 
			
		||||
                        },
 | 
			
		||||
                    @endforeach
 | 
			
		||||
                ]
 | 
			
		||||
            }">
 | 
			
		||||
        </el-date-picker>
 | 
			
		||||
@@ -120,7 +98,7 @@
 | 
			
		||||
                                {{ trans('general.title.add', ['type' => trans_choice('general.widgets', 1)]) }}
 | 
			
		||||
                            </x-button>
 | 
			
		||||
                        </div>
 | 
			
		||||
                        
 | 
			
		||||
 | 
			
		||||
                        <x-dropdown.divider />
 | 
			
		||||
                    @endcan
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -86,7 +86,7 @@
 | 
			
		||||
                                <x-table.td class="w-6/12 sm:w-4/12">
 | 
			
		||||
                                    <x-slot name="first" class="flex font-bold" override="class">
 | 
			
		||||
                                        {{ $item->name }}
 | 
			
		||||
                                        
 | 
			
		||||
 | 
			
		||||
                                        @if (! $item->enabled)
 | 
			
		||||
                                            <x-index.disable text="{{ trans_choice('general.items', 1) }}" />
 | 
			
		||||
                                        @endif
 | 
			
		||||
@@ -117,14 +117,14 @@
 | 
			
		||||
                                <x-table.td class="w-6/12 sm:w-3/12" kind="amount">
 | 
			
		||||
                                    <x-slot name="first">
 | 
			
		||||
                                        @if ($item->sale_price)
 | 
			
		||||
                                            <x-money :amount="$item->sale_price" :currency="default_currency()" convert />
 | 
			
		||||
                                            <x-money :amount="$item->sale_price" />
 | 
			
		||||
                                        @else
 | 
			
		||||
                                            <x-empty-data />
 | 
			
		||||
                                        @endif
 | 
			
		||||
                                    </x-slot>
 | 
			
		||||
                                    <x-slot name="second">
 | 
			
		||||
                                        @if ($item->purchase_price)
 | 
			
		||||
                                            <x-money :amount="$item->purchase_price" :currency="default_currency()" convert />
 | 
			
		||||
                                            <x-money :amount="$item->purchase_price" />
 | 
			
		||||
                                        @else
 | 
			
		||||
                                            <x-empty-data />
 | 
			
		||||
                                        @endif
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								resources/views/components/alert/border.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								resources/views/components/alert/border.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<x-alert
 | 
			
		||||
    border
 | 
			
		||||
    :rounded="$rounded"
 | 
			
		||||
 | 
			
		||||
    :color="$color"
 | 
			
		||||
    :icon="$icon"
 | 
			
		||||
 | 
			
		||||
    :title="$title"
 | 
			
		||||
    :description="$description"
 | 
			
		||||
    :message="$message"
 | 
			
		||||
    :list="$list"
 | 
			
		||||
 | 
			
		||||
    :actions="$actions"
 | 
			
		||||
    :dismiss="$dismiss"
 | 
			
		||||
/>
 | 
			
		||||
							
								
								
									
										15
									
								
								resources/views/components/alert/danger.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								resources/views/components/alert/danger.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<x-alert
 | 
			
		||||
    color="red"
 | 
			
		||||
    icon="error"
 | 
			
		||||
 | 
			
		||||
    :title="$title"
 | 
			
		||||
    :description="$description"
 | 
			
		||||
    :message="$message"
 | 
			
		||||
    :list="$list"
 | 
			
		||||
 | 
			
		||||
    :rounded="$rounded"
 | 
			
		||||
    :border="$border"
 | 
			
		||||
 | 
			
		||||
    :actions="$actions"
 | 
			
		||||
    :dismiss="$dismiss"
 | 
			
		||||
/>
 | 
			
		||||
							
								
								
									
										116
									
								
								resources/views/components/alert/index.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										116
									
								
								resources/views/components/alert/index.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,116 @@
 | 
			
		||||
<div 
 | 
			
		||||
    @class([
 | 
			
		||||
        'rounded-md' => $rounded,
 | 
			
		||||
        'border-l-4 border-' . $color . '-400' => $border,
 | 
			
		||||
        'bg-' . $color . '-50' => $color != 'green',
 | 
			
		||||
        'bg-' . $color . '-100' => $color == 'green',
 | 
			
		||||
        'p-4 my-4',
 | 
			
		||||
    ])
 | 
			
		||||
    x-data
 | 
			
		||||
>
 | 
			
		||||
    <div class="flex">
 | 
			
		||||
        <div class="flex-shrink-0">
 | 
			
		||||
            <x-icon icon="{{ $icon }}" sharp class="h-5 w-5 text-{{ $color }}-400" />
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <div class="ml-3">
 | 
			
		||||
            @if ($title)
 | 
			
		||||
                <h3 class="text-sm font-medium text-{{ $color }}-800">
 | 
			
		||||
                    {!! $title !!}
 | 
			
		||||
                </h3>
 | 
			
		||||
            @endif
 | 
			
		||||
 | 
			
		||||
            @if ($description || $list)
 | 
			
		||||
                <div class="mt-2 text-sm text-{{ $color }}-700">
 | 
			
		||||
                    <p>{!! $description !!}</p>
 | 
			
		||||
 | 
			
		||||
                    @if ($list)
 | 
			
		||||
                        <ul role="list" class="list-disc space-y-1 pl-5">
 | 
			
		||||
                            @foreach ($list as $message)
 | 
			
		||||
                                <li>{!! $message !!}</li>
 | 
			
		||||
                            @endforeach
 | 
			
		||||
                        </ul>
 | 
			
		||||
                    @endif
 | 
			
		||||
                </div>
 | 
			
		||||
            @endif
 | 
			
		||||
 | 
			
		||||
            @if ($message)
 | 
			
		||||
                <p class="text-sm font-medium text-{{ $color }}-800 inline-block align-middle">
 | 
			
		||||
                    {!! $message !!}
 | 
			
		||||
                </p>
 | 
			
		||||
            @endif
 | 
			
		||||
 | 
			
		||||
            @if ($actions) 
 | 
			
		||||
                <div class="mt-4">
 | 
			
		||||
                    <div class="-mx-2 -my-1.5 flex">
 | 
			
		||||
                        @foreach ($actions as $action)
 | 
			
		||||
                            @if ($action['type'] == 'button')
 | 
			
		||||
                                <button type="button"
 | 
			
		||||
                                    {{ $action['attributes'] }}
 | 
			
		||||
                                    @class([
 | 
			
		||||
                                        'ml-3' => ! $loop->first,
 | 
			
		||||
                                        'rounded-md',
 | 
			
		||||
                                        'bg-' . $color . '-50',
 | 
			
		||||
                                        'px-2 py-1.5',
 | 
			
		||||
                                        'text-sm font-medium',
 | 
			
		||||
                                        'text-' . $color . '-800 hover:bg-' . $color . '-100',
 | 
			
		||||
                                        'focus:outline-none focus:ring-2',
 | 
			
		||||
                                        'focus:ring-' . $color . '-600',
 | 
			
		||||
                                        'focus:ring-offset-2',
 | 
			
		||||
                                        'focus:ring-offset-' . $color . '-50',
 | 
			
		||||
                                    ])
 | 
			
		||||
                                >
 | 
			
		||||
                                    {{ $action['text'] }}
 | 
			
		||||
                                </button>
 | 
			
		||||
                            @else
 | 
			
		||||
                                <a href="{{ $action['url'] }}"
 | 
			
		||||
                                    @class([
 | 
			
		||||
                                        'ml-3' => ! $loop->first,
 | 
			
		||||
                                        'rounded-md',
 | 
			
		||||
                                        'bg-' . $color . '-50',
 | 
			
		||||
                                        'px-2 py-1.5',
 | 
			
		||||
                                        'text-sm font-medium',
 | 
			
		||||
                                        'text-' . $color . '-800 hover:bg-' . $color . '-100',
 | 
			
		||||
                                        'focus:outline-none focus:ring-2',
 | 
			
		||||
                                        'focus:ring-' . $color . '-600',
 | 
			
		||||
                                        'focus:ring-offset-2',
 | 
			
		||||
                                        'focus:ring-offset-' . $color . '-50',
 | 
			
		||||
                                    ])
 | 
			
		||||
                                >
 | 
			
		||||
                                    {{ $action['text'] }}
 | 
			
		||||
                                </a>
 | 
			
		||||
                            @endif
 | 
			
		||||
                        @endforeach
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            @endif
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        @if ($dismiss)
 | 
			
		||||
            <div class="ml-auto pl-3">
 | 
			
		||||
                <div class="-mx-1.5 -my-1.5">
 | 
			
		||||
                    <button type="button"
 | 
			
		||||
                        x-on:click="$el.remove()"
 | 
			
		||||
                        @class([
 | 
			
		||||
                            'inline-flex',
 | 
			
		||||
                            'rounded-md',
 | 
			
		||||
                            'bg-' . $color . '-50' => $color != 'green',
 | 
			
		||||
                            'bg-' . $color . '-100' => $color == 'green',
 | 
			
		||||
                            'p-1.5',
 | 
			
		||||
                            'text-sm font-medium',
 | 
			
		||||
                            'text-' . $color . '-500 hover:bg-' . $color . '-100',
 | 
			
		||||
                            'focus:outline-none focus:ring-2',
 | 
			
		||||
                            'focus:ring-' . $color . '-600',
 | 
			
		||||
                            'focus:ring-offset-2',
 | 
			
		||||
                            'focus:ring-offset-' . $color . '-50',
 | 
			
		||||
                        ])
 | 
			
		||||
                    >
 | 
			
		||||
                        <span class="sr-only">{{ trans('general.dismiss') }}</span>
 | 
			
		||||
 | 
			
		||||
                        <x-icon icon="close" sharp class="h-5 w-5 text-{{ $color }}-400" />
 | 
			
		||||
                    </button>
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
        @endif
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										15
									
								
								resources/views/components/alert/info.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								resources/views/components/alert/info.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<x-alert
 | 
			
		||||
    color="blue"
 | 
			
		||||
    icon="info"
 | 
			
		||||
 | 
			
		||||
    :title="$title"
 | 
			
		||||
    :description="$description"
 | 
			
		||||
    :message="$message"
 | 
			
		||||
    :list="$list"
 | 
			
		||||
 | 
			
		||||
    :rounded="$rounded"
 | 
			
		||||
    :border="$border"
 | 
			
		||||
 | 
			
		||||
    :actions="$actions"
 | 
			
		||||
    :dismiss="$dismiss"
 | 
			
		||||
/>
 | 
			
		||||
							
								
								
									
										15
									
								
								resources/views/components/alert/success.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								resources/views/components/alert/success.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<x-alert
 | 
			
		||||
    color="green"
 | 
			
		||||
    icon="check_circle"
 | 
			
		||||
 | 
			
		||||
    :title="$title"
 | 
			
		||||
    :description="$description"
 | 
			
		||||
    :message="$message"
 | 
			
		||||
    :list="$list"
 | 
			
		||||
 | 
			
		||||
    :rounded="$rounded"
 | 
			
		||||
    :border="$border"
 | 
			
		||||
 | 
			
		||||
    :actions="$actions"
 | 
			
		||||
    :dismiss="$dismiss"
 | 
			
		||||
/>
 | 
			
		||||
							
								
								
									
										15
									
								
								resources/views/components/alert/warning.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								resources/views/components/alert/warning.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<x-alert
 | 
			
		||||
    color="yellow"
 | 
			
		||||
    icon="warning"
 | 
			
		||||
 | 
			
		||||
    :title="$title"
 | 
			
		||||
    :description="$description"
 | 
			
		||||
    :message="$message"
 | 
			
		||||
    :list="$list"
 | 
			
		||||
 | 
			
		||||
    :rounded="$rounded"
 | 
			
		||||
    :border="$border"
 | 
			
		||||
 | 
			
		||||
    :actions="$actions"
 | 
			
		||||
    :dismiss="$dismiss"
 | 
			
		||||
/>
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
    @class([
 | 
			
		||||
        $color,
 | 
			
		||||
        $groupHover ? 'group-hover:bg-full-2' : 'hover:bg-full-2',
 | 
			
		||||
        'bg-no-repeat bg-0-2 bg-0-full bg-gradient-to-b from-transparent transition-backgroundSize'
 | 
			
		||||
        'bg-no-repeat bg-0-2 bg-0-full bg-gradient-to-b from-transparent transition-backgroundSize cursor-pointer'
 | 
			
		||||
    ])
 | 
			
		||||
>
 | 
			
		||||
    {!! $slot !!}
 | 
			
		||||
 
 | 
			
		||||
@@ -11,62 +11,63 @@
 | 
			
		||||
            <x-form.group.text name="name" label="{{ trans($textName) }}" form-group-class="{{ $classNameFromGroupClass }}" />
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        <div class="sm:col-span-3 grid gap-x-8 gap-y-6">
 | 
			
		||||
            @if (! $hideEmail)
 | 
			
		||||
                <x-form.group.text name="email" label="{{ trans($textEmail) }}" not-required />
 | 
			
		||||
            @endif
 | 
			
		||||
        <div class="sm:col-span-3">
 | 
			
		||||
            <div class="relative sm:col-span-6 grid gap-x-8 gap-y-6">
 | 
			
		||||
                @if (! $hideEmail)
 | 
			
		||||
                    <x-form.group.text name="email" label="{{ trans($textEmail) }}" form-group-class="sm:col-span-6" not-required />
 | 
			
		||||
                @endif
 | 
			
		||||
 | 
			
		||||
            @if (! $hidePhone)
 | 
			
		||||
                <x-form.group.text name="phone" label="{{ trans($textPhone) }}" not-required />
 | 
			
		||||
            @endif
 | 
			
		||||
                @if (! $hidePhone)
 | 
			
		||||
                    <x-form.group.text name="phone" label="{{ trans($textPhone) }}" form-group-class="sm:col-span-6" not-required />
 | 
			
		||||
                @endif
 | 
			
		||||
 | 
			
		||||
            @if (! $hideWebsite)
 | 
			
		||||
                <x-form.group.text name="website" label="{{ trans($textWebsite) }}" not-required />
 | 
			
		||||
            @endif
 | 
			
		||||
                @if (! $hideWebsite)
 | 
			
		||||
                    <x-form.group.text name="website" label="{{ trans($textWebsite) }}" form-group-class="sm:col-span-6" not-required />
 | 
			
		||||
                @endif
 | 
			
		||||
 | 
			
		||||
            @if (! $hideReference)
 | 
			
		||||
                <x-form.group.text name="reference" label="{{ trans($textReference) }}" not-required />
 | 
			
		||||
            @endif
 | 
			
		||||
                @if (! $hideReference)
 | 
			
		||||
                    <x-form.group.text name="reference" label="{{ trans($textReference) }}" form-group-class="sm:col-span-6" not-required />
 | 
			
		||||
                @endif
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <div class="sm:col-span-3">
 | 
			
		||||
            @if (! $hideCanLogin)
 | 
			
		||||
                <div class="mt-9">
 | 
			
		||||
                    @if (empty($contact))
 | 
			
		||||
                        <x-tooltip id="tooltip-client_portal-text" placement="bottom" message="{{ trans('customers.can_login_description') }}">
 | 
			
		||||
                            <x-form.group.checkbox
 | 
			
		||||
                                name="create_user"
 | 
			
		||||
                                :options="['1' => trans('customers.can_login')]"
 | 
			
		||||
                                @input="onCanLogin($event)"
 | 
			
		||||
                                checkbox-class="sm:col-span-6"
 | 
			
		||||
                            />
 | 
			
		||||
                        </x-tooltip>
 | 
			
		||||
                    @else
 | 
			
		||||
                        @if ($contact->user_id)
 | 
			
		||||
                            <x-form.group.checkbox
 | 
			
		||||
                                name="create_user"
 | 
			
		||||
                                :options="['1' => trans('customers.user_created')]"
 | 
			
		||||
                                checkbox-class="sm:col-span-6"
 | 
			
		||||
                                checked
 | 
			
		||||
                                disabled
 | 
			
		||||
                            />
 | 
			
		||||
                        @else
 | 
			
		||||
            <div class="relative sm:col-span-6 grid gap-x-8 gap-y-6">
 | 
			
		||||
                @if (! $hideCanLogin)
 | 
			
		||||
                    <div class="sm:col-span-6 mt-9 mb-2">
 | 
			
		||||
                        @if (empty($contact))
 | 
			
		||||
                            <x-tooltip id="tooltip-client_portal-text" placement="bottom" message="{{ trans('customers.can_login_description') }}">
 | 
			
		||||
                                <x-form.group.checkbox
 | 
			
		||||
                                    name="create_user"
 | 
			
		||||
                                    :options="['1' => trans('customers.can_login')]"
 | 
			
		||||
                                    checkbox-class="sm:col-span-6"
 | 
			
		||||
                                    @input="onCanLogin($event)"
 | 
			
		||||
                                />
 | 
			
		||||
                            </x-tooltip>
 | 
			
		||||
                        @else
 | 
			
		||||
                            @if ($contact->user_id)
 | 
			
		||||
                                <x-form.group.checkbox
 | 
			
		||||
                                    name="create_user"
 | 
			
		||||
                                    :options="['1' => trans('customers.user_created')]"
 | 
			
		||||
                                    checked
 | 
			
		||||
                                    disabled
 | 
			
		||||
                                />
 | 
			
		||||
                            @else
 | 
			
		||||
                                <x-tooltip id="tooltip-client_portal-text" placement="bottom" message="{{ trans('customers.can_login_description') }}">
 | 
			
		||||
                                    <x-form.group.checkbox
 | 
			
		||||
                                        name="create_user"
 | 
			
		||||
                                        :options="['1' => trans('customers.can_login')]"
 | 
			
		||||
                                        @input="onCanLogin($event)"
 | 
			
		||||
                                    />
 | 
			
		||||
                                </x-tooltip>
 | 
			
		||||
                            @endif
 | 
			
		||||
                        @endif
 | 
			
		||||
                    @endif
 | 
			
		||||
                </div>
 | 
			
		||||
            @endif
 | 
			
		||||
                    </div>
 | 
			
		||||
                @endif
 | 
			
		||||
 | 
			
		||||
            @if (! $hideLogo)
 | 
			
		||||
                <x-form.group.file name="logo" label="{{ trans_choice('general.pictures', 1) }}" :value="! empty($contact) ? $contact->logo : false" not-required />
 | 
			
		||||
            @endif
 | 
			
		||||
                @if (! $hideLogo)
 | 
			
		||||
                    <x-form.group.file name="logo" label="{{ trans_choice('general.pictures', 1) }}" :value="! empty($contact) ? $contact->logo : false" form-group-class="sm:col-span-6" not-required />
 | 
			
		||||
                @endif
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </x-slot>
 | 
			
		||||
</x-form.section>
 | 
			
		||||
 
 | 
			
		||||
@@ -221,7 +221,7 @@
 | 
			
		||||
                            @if (! $hideOpen)
 | 
			
		||||
                            <x-slot name="first">
 | 
			
		||||
                                @if ($item->open)
 | 
			
		||||
                                    <x-money :amount="$item->open" :currency="default_currency()" convert />
 | 
			
		||||
                                    <x-money :amount="$item->open" />
 | 
			
		||||
                                @else
 | 
			
		||||
                                    <x-empty-data />
 | 
			
		||||
                                @endif
 | 
			
		||||
@@ -233,7 +233,7 @@
 | 
			
		||||
                            @if (! $hideOverdue)
 | 
			
		||||
                            <x-slot name="second">
 | 
			
		||||
                                @if ($item->overdue)
 | 
			
		||||
                                    <x-money :amount="$item->overdue" :currency="default_currency()" convert />
 | 
			
		||||
                                    <x-money :amount="$item->overdue" />
 | 
			
		||||
                                @else
 | 
			
		||||
                                    <x-empty-data />
 | 
			
		||||
                                @endif
 | 
			
		||||
 
 | 
			
		||||
@@ -8,9 +8,9 @@
 | 
			
		||||
                <x-slot name="avatar">
 | 
			
		||||
                    @if ($contact->logo)
 | 
			
		||||
                        @if (is_object($contact->logo))
 | 
			
		||||
                            <img src="{{ Storage::url($contact->logo->id) }}" class="absolute w-12 h-12 rounded-full mr-2 hidden lg:block" alt="{{ $contact->name }}" title="{{ $contact->name }}">
 | 
			
		||||
                            <img src="{{ Storage::url($contact->logo->id) }}" class="absolute w-12 h-12 rounded-full hidden lg:block" alt="{{ $contact->name }}" title="{{ $contact->name }}">
 | 
			
		||||
                        @else
 | 
			
		||||
                            <img src="{{ asset('public/img/user.svg') }}" class="absolute w-12 h-12 rounded-full mr-2 hidden lg:block" alt="{{ $contact->name }}"/>
 | 
			
		||||
                            <img src="{{ asset('public/img/user.svg') }}" class="absolute w-12 h-12 rounded-full hidden lg:block" alt="{{ $contact->name }}"/>
 | 
			
		||||
                        @endif
 | 
			
		||||
 | 
			
		||||
                        {{ $contact->initials }}
 | 
			
		||||
@@ -184,7 +184,7 @@
 | 
			
		||||
                        id="transactions"
 | 
			
		||||
                        name="{{ trans_choice('general.transactions', 2) }}"
 | 
			
		||||
                    />
 | 
			
		||||
                    
 | 
			
		||||
 | 
			
		||||
                    @stack('transactions_nav_end')
 | 
			
		||||
                </x-slot>
 | 
			
		||||
 | 
			
		||||
@@ -261,7 +261,7 @@
 | 
			
		||||
                                            </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                            <x-table.td class="w-4/12 lg:w-3/12" kind="amount">
 | 
			
		||||
                                                <x-money :amount="$item->amount" :currency="$item->currency_code" convert />
 | 
			
		||||
                                                <x-money :amount="$item->amount" :currency="$item->currency_code" />
 | 
			
		||||
                                            </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                            <x-table.td kind="action">
 | 
			
		||||
@@ -359,7 +359,7 @@
 | 
			
		||||
                                            </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                            <x-table.td class="w-4/12 lg:w-3/12" kind="amount">
 | 
			
		||||
                                                <x-money :amount="$item->amount" :currency="$item->currency_code" convert />
 | 
			
		||||
                                                <x-money :amount="$item->amount" :currency="$item->currency_code" />
 | 
			
		||||
                                            </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                            <x-table.td kind="action">
 | 
			
		||||
 
 | 
			
		||||
@@ -15,6 +15,7 @@
 | 
			
		||||
                <thead class="border-b">
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        @stack('move_th_start')
 | 
			
		||||
 | 
			
		||||
                        <th class="w-6 block text-left border-t-0 border-r-0 border-b-0" style="vertical-align:bottom;">
 | 
			
		||||
                            @if (! $hideEditItemColumns)
 | 
			
		||||
                                <x-documents.form.item-columns :type="$type" />
 | 
			
		||||
@@ -29,53 +30,85 @@
 | 
			
		||||
                                <th class="px-3 py-1 ltr:pl-2 rtl:pr-2 ltr:text-left rtl:text-right text-xs font-normal border-t-0 border-r-0 border-b-0" style="vertical-align:bottom;">
 | 
			
		||||
                                    @if (! $hideItemName)
 | 
			
		||||
                                        {{ (trans_choice($textItemName, 2) != $textItemName) ? trans_choice($textItemName, 2) : trans($textItemName) }}
 | 
			
		||||
 | 
			
		||||
                                        @if ($hideSettingItemName)
 | 
			
		||||
                                              
 | 
			
		||||
                                            <x-tooltip id="tooltip-item-price" placement="top" message="{{ trans('documents.item_price_hidden', ['type' => config('type.document.' . $type . '.translation.prefix')]) }}">
 | 
			
		||||
                                                <x-icon icon="visibility_off" class="text-sm font-normal"></x-icon>
 | 
			
		||||
                                            </x-tooltip>
 | 
			
		||||
                                        @endif
 | 
			
		||||
                                    @endif
 | 
			
		||||
                                </th>
 | 
			
		||||
                            
 | 
			
		||||
 | 
			
		||||
                            @stack('name_th_end')
 | 
			
		||||
 | 
			
		||||
                            @stack('move_th_start')
 | 
			
		||||
                            @stack('description_th_start')
 | 
			
		||||
 | 
			
		||||
                            <th class="px-3 py-1 text-left text-xs font-normal border-t-0 border-r-0 border-b-0" style=" vertical-align:bottom;">
 | 
			
		||||
                                @if (! $hideItemDescription)
 | 
			
		||||
                                    {{ trans($textItemDescription) }}
 | 
			
		||||
 | 
			
		||||
                                    @if ($hideSettingItemDescription)
 | 
			
		||||
                                          
 | 
			
		||||
                                        <x-tooltip id="tooltip-item-price" placement="top" message="{{ trans('documents.item_price_hidden', ['type' => config('type.document.' . $type . '.translation.prefix')]) }}">
 | 
			
		||||
                                            <x-icon icon="visibility_off" class="text-sm font-normal"></x-icon>
 | 
			
		||||
                                        </x-tooltip>
 | 
			
		||||
                                    @endif
 | 
			
		||||
                                @endif
 | 
			
		||||
                            </th>
 | 
			
		||||
                            
 | 
			
		||||
 | 
			
		||||
                            @stack('move_th_end')
 | 
			
		||||
                            @stack('description_th_end')
 | 
			
		||||
                        @endif
 | 
			
		||||
 | 
			
		||||
                        @stack('quantity_th_start')
 | 
			
		||||
 | 
			
		||||
                        <th class="px-3 py-1 ltr:text-left rtl:text-right text-xs font-normal border-t-0 border-r-0 border-b-0" style="vertical-align:bottom;">
 | 
			
		||||
                            @if (! $hideItemQuantity)    
 | 
			
		||||
                            @if (! $hideItemQuantity)
 | 
			
		||||
                                {{ trans($textItemQuantity) }}
 | 
			
		||||
 | 
			
		||||
                                @if ($hideSettingItemQuantity)
 | 
			
		||||
                                      
 | 
			
		||||
                                    <x-tooltip id="tooltip-item-price" placement="top" message="{{ trans('documents.item_price_hidden', ['type' => config('type.document.' . $type . '.translation.prefix')]) }}">
 | 
			
		||||
                                        <x-icon icon="visibility_off" class="text-sm font-normal"></x-icon>
 | 
			
		||||
                                    </x-tooltip>
 | 
			
		||||
                                @endif
 | 
			
		||||
                            @endif
 | 
			
		||||
                        </th>
 | 
			
		||||
                        
 | 
			
		||||
 | 
			
		||||
                        @stack('quantity_th_end')
 | 
			
		||||
 | 
			
		||||
                        @stack('price_th_start')
 | 
			
		||||
 | 
			
		||||
                        <th class="px-3 py-1 ltr:text-left rtl:text-right text-xs font-normal border-t-0 border-r-0 border-b-0 pr-1" style="vertical-align:bottom;">
 | 
			
		||||
                            @if (! $hideItemPrice)    
 | 
			
		||||
                            @if (! $hideItemPrice)
 | 
			
		||||
                                {{ trans($textItemPrice) }}
 | 
			
		||||
 | 
			
		||||
                                @if ($hideSettingItemPrice)
 | 
			
		||||
                                      
 | 
			
		||||
                                    <x-tooltip id="tooltip-item-price" placement="top" message="{{ trans('documents.item_price_hidden', ['type' => config('type.document.' . $type . '.translation.prefix')]) }}">
 | 
			
		||||
                                        <x-icon icon="visibility_off" class="text-sm font-normal"></x-icon>
 | 
			
		||||
                                    </x-tooltip>
 | 
			
		||||
                                @endif
 | 
			
		||||
                            @endif
 | 
			
		||||
                        </th>
 | 
			
		||||
                        
 | 
			
		||||
 | 
			
		||||
                        @stack('price_th_end')
 | 
			
		||||
 | 
			
		||||
                        @stack('total_th_start')
 | 
			
		||||
 | 
			
		||||
                        <th class="px-3 py-1 ltr:text-right rtl:text-left text-xs font-normal border-t-0 border-b-0 item-total" style="vertical-align:bottom;">
 | 
			
		||||
                            @if (! $hideItemAmount)    
 | 
			
		||||
                            @if (! $hideItemAmount)
 | 
			
		||||
                                {{ trans($textItemAmount) }}
 | 
			
		||||
 | 
			
		||||
                                @if ($hideSettingItemAmount)
 | 
			
		||||
                                      
 | 
			
		||||
                                    <x-tooltip id="tooltip-item-price" placement="top" message="{{ trans('documents.item_price_hidden', ['type' => config('type.document.' . $type . '.translation.prefix')]) }}">
 | 
			
		||||
                                        <x-icon icon="visibility_off" class="text-sm font-normal"></x-icon>
 | 
			
		||||
                                    </x-tooltip>
 | 
			
		||||
                                @endif
 | 
			
		||||
                            @endif
 | 
			
		||||
                        </th>
 | 
			
		||||
                        
 | 
			
		||||
 | 
			
		||||
                        @stack('total_th_end')
 | 
			
		||||
 | 
			
		||||
                        @stack('remove_th_start')
 | 
			
		||||
@@ -109,4 +142,4 @@
 | 
			
		||||
            </table>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -19,17 +19,20 @@
 | 
			
		||||
                <tbody>
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        @stack('move_td_start')
 | 
			
		||||
 | 
			
		||||
                        <td class="align-middle border-b-0 flex items-center justify-center" style="width:24px; height:100px; color: #8898aa;">
 | 
			
		||||
                            <div class="handle mt-2 hidden lg:block cursor-move">
 | 
			
		||||
                                <span class="w-6 material-icons">list</span>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </td>
 | 
			
		||||
 | 
			
		||||
                        @stack('move_td_end')
 | 
			
		||||
 | 
			
		||||
                        @stack('items_td_start')
 | 
			
		||||
 | 
			
		||||
                        @if (! $hideItems || (! $hideItemName && ! $hideItemDescription))
 | 
			
		||||
                            @stack('name_td_start')
 | 
			
		||||
 | 
			
		||||
                            <td class="px-3 py-3 ltr:pl-2 rtl:pr-2 ltr:text-left rtl:text-right align-middle border-b-0 name">
 | 
			
		||||
                                @if (! $hideItemName)
 | 
			
		||||
                                    <span class="flex items-center text-sm" tabindex="0" v-if="row.item_id">
 | 
			
		||||
@@ -123,28 +126,26 @@
 | 
			
		||||
                        @stack('price_td_start')
 | 
			
		||||
 | 
			
		||||
                        <td class="px-3 py-3 pr-1 border-b-0 price">
 | 
			
		||||
                            @if (! $hideItemPrice)
 | 
			
		||||
                                <div>
 | 
			
		||||
                                    @stack('price_input_start')
 | 
			
		||||
                            <div>
 | 
			
		||||
                                @stack('price_input_start')
 | 
			
		||||
 | 
			
		||||
                                    <x-form.input.money
 | 
			
		||||
                                        name="price"
 | 
			
		||||
                                        value="0"
 | 
			
		||||
                                        row-input
 | 
			
		||||
                                        data-item="price"
 | 
			
		||||
                                        v-model="row.price"
 | 
			
		||||
                                        v-error="form.errors.get('items.' + index + '.price')"
 | 
			
		||||
                                        v-error-message="form.errors.get('items.' + index + '.price')"
 | 
			
		||||
                                        change="row.price = $event; form.errors.clear('items.' + index + '.price'); onCalculateTotal"
 | 
			
		||||
                                        :currency="$currency"
 | 
			
		||||
                                        dynamicCurrency="currency"
 | 
			
		||||
                                        money-class="text-right mt-0"
 | 
			
		||||
                                        form-group-class="text-right"
 | 
			
		||||
                                    />
 | 
			
		||||
                                <x-form.input.money
 | 
			
		||||
                                    name="price"
 | 
			
		||||
                                    value="0"
 | 
			
		||||
                                    row-input
 | 
			
		||||
                                    data-item="price"
 | 
			
		||||
                                    v-model="row.price"
 | 
			
		||||
                                    v-error="form.errors.get('items.' + index + '.price')"
 | 
			
		||||
                                    v-error-message="form.errors.get('items.' + index + '.price')"
 | 
			
		||||
                                    change="row.price = $event; form.errors.clear('items.' + index + '.price'); onCalculateTotal"
 | 
			
		||||
                                    :currency="$currency"
 | 
			
		||||
                                    dynamicCurrency="currency"
 | 
			
		||||
                                    money-class="text-right mt-0"
 | 
			
		||||
                                    form-group-class="text-right"
 | 
			
		||||
                                />
 | 
			
		||||
 | 
			
		||||
                                    @stack('price_input_end')
 | 
			
		||||
                                </div>
 | 
			
		||||
                            @endif
 | 
			
		||||
                                @stack('price_input_end')
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </td>
 | 
			
		||||
 | 
			
		||||
                        @stack('price_td_end')
 | 
			
		||||
@@ -230,7 +231,7 @@
 | 
			
		||||
                                                :class="[{'btn-outline-primary' : row.discount_type !== 'fixed'}, {'bg-white rounded-lg' : row.discount_type === 'fixed'}]"
 | 
			
		||||
                                                @click="onChangeLineDiscountType(index, 'fixed')"
 | 
			
		||||
                                            >
 | 
			
		||||
                                                <span class="text-base">{{ $currency->symbol }}</span>
 | 
			
		||||
                                                <span class="text-base">{{ ($currency) ? $currency->symbol : '$' }}</span>
 | 
			
		||||
                                            </button>
 | 
			
		||||
                                        </div>
 | 
			
		||||
 | 
			
		||||
@@ -272,7 +273,7 @@
 | 
			
		||||
                                        />
 | 
			
		||||
                                    </div>
 | 
			
		||||
 | 
			
		||||
                                    <div class="pl-2 group">
 | 
			
		||||
                                    <div class="ltr:pl-2 rtl:pr-2 group">
 | 
			
		||||
                                        <button type="button" @click="onDeleteDiscount(index)" class="w-6 h-7 flex items-center rounded-lg p-0 group-hover:bg-gray-100">
 | 
			
		||||
                                            <span class="w-full material-icons-outlined text-lg text-gray-300 group-hover:text-gray-500">delete</span>
 | 
			
		||||
                                        </button>
 | 
			
		||||
@@ -283,7 +284,7 @@
 | 
			
		||||
                            <div class="flex items-center justify-between h-10 ml-3 my-3" v-for="(row_tax, row_tax_index) in row.tax_ids"
 | 
			
		||||
                                :index="row_tax_index"
 | 
			
		||||
                            >
 | 
			
		||||
                                <span class="absolute text-sm ltr:-ml-7 rtl:-mr-7">{{ trans_choice('general.taxes', 1) }}</span>
 | 
			
		||||
                                <span class="absolute text-sm ltr:right-1/2 rtl:left-1/2 ltr:-ml-7 rtl:-mr-7">{{ trans_choice('general.taxes', 1) }}</span>
 | 
			
		||||
 | 
			
		||||
                                <div class="lg:w-1/4 lg:absolute">
 | 
			
		||||
                                    @stack('taxes_input_start')
 | 
			
		||||
@@ -347,7 +348,7 @@
 | 
			
		||||
                                        />
 | 
			
		||||
                                    </div>
 | 
			
		||||
 | 
			
		||||
                                    <div class="pl-2 group">
 | 
			
		||||
                                    <div class="ltr:pl-2 rtl:pr-2 group">
 | 
			
		||||
                                        <button type="button" @click="onDeleteTax(index, row_tax_index)" class="w-6 h-7 flex items-center rounded-lg p-0 group-hover:bg-gray-100">
 | 
			
		||||
                                            <span class="w-full material-icons-outlined text-lg text-gray-300 group-hover:text-gray-500">delete</span>
 | 
			
		||||
                                        </button>
 | 
			
		||||
@@ -356,7 +357,7 @@
 | 
			
		||||
                            </div>
 | 
			
		||||
 | 
			
		||||
                            <div v-if="row.add_tax" class="flex items-center justify-between h-10 ml-3 my-3" :class="{'pt-2' : row.add_discount}">
 | 
			
		||||
                                <span class="absolute text-sm ltr:-ml-7 rtl:-mr-7">{{ trans_choice('general.taxes', 1) }}</span>
 | 
			
		||||
                                <span class="absolute text-sm ltr:right-1/2 rtl:left-1/2 ltr:-ml-7 rtl:-mr-7">{{ trans_choice('general.taxes', 1) }}</span>
 | 
			
		||||
 | 
			
		||||
                                <div class="lg:w-1/4 lg:absolute">
 | 
			
		||||
                                    @stack('taxes_input_start')
 | 
			
		||||
@@ -412,7 +413,7 @@
 | 
			
		||||
                                        </div>
 | 
			
		||||
                                    </div>
 | 
			
		||||
 | 
			
		||||
                                    <div class="pl-2 group">
 | 
			
		||||
                                    <div class="ltr:pl-2 rtl:pr-2 group">
 | 
			
		||||
                                        <button type="button" @click="onDeleteTax(index, 999)" class="w-6 h-7 flex items-center rounded-lg p-0 group-hover:bg-gray-100">
 | 
			
		||||
                                            <span class="w-full material-icons-outlined text-lg text-gray-300 group-hover:text-gray-500">delete</span>
 | 
			
		||||
                                        </button>
 | 
			
		||||
 
 | 
			
		||||
@@ -163,7 +163,7 @@
 | 
			
		||||
                @if (! $hideAmount)
 | 
			
		||||
                <x-table.td class="{{ $classAmount }}" kind="amount">
 | 
			
		||||
                    @stack('amount_td_inside_start')
 | 
			
		||||
                    <x-money :amount="$item->amount" :currency="$item->currency_code" convert />
 | 
			
		||||
                    <x-money :amount="$item->amount" :currency="$item->currency_code" />
 | 
			
		||||
                    @stack('amount_td_inside_end')
 | 
			
		||||
                </x-table.td>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -62,7 +62,7 @@
 | 
			
		||||
                        </div>
 | 
			
		||||
 | 
			
		||||
                        <span class="font-normal">
 | 
			
		||||
                            <x-money :amount="$document_item->price" :currency="$document->currency_code" convert />
 | 
			
		||||
                            <x-money :amount="$document_item->price" :currency="$document->currency_code" />
 | 
			
		||||
                        </span>
 | 
			
		||||
 | 
			
		||||
                        <div class="w-40 font-normal text-sm truncate">
 | 
			
		||||
@@ -100,7 +100,7 @@
 | 
			
		||||
 | 
			
		||||
                    @if ($document->paid)
 | 
			
		||||
                        <span>
 | 
			
		||||
                            <x-money :amount="$document->paid" :currency="$document->currency_code" convert />
 | 
			
		||||
                            <x-money :amount="$document->paid" :currency="$document->currency_code" />
 | 
			
		||||
                        </span>
 | 
			
		||||
                    @endif
 | 
			
		||||
                </div>
 | 
			
		||||
@@ -111,7 +111,7 @@
 | 
			
		||||
                    </span>
 | 
			
		||||
 | 
			
		||||
                    <span>
 | 
			
		||||
                        <x-money :amount="$document->amount" :currency="$document->currency_code" convert />
 | 
			
		||||
                        <x-money :amount="$document->amount" :currency="$document->currency_code" />
 | 
			
		||||
                    </span>
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -97,7 +97,7 @@
 | 
			
		||||
                </x-table.td>
 | 
			
		||||
 | 
			
		||||
                <x-table.td class="w-4/12 sm:w-2/12" kind="amount">
 | 
			
		||||
                    <x-money :amount="$item->amount" :currency="$item->currency_code" convert />
 | 
			
		||||
                    <x-money :amount="$item->amount" :currency="$item->currency_code" />
 | 
			
		||||
                </x-table.td>
 | 
			
		||||
 | 
			
		||||
                <x-table.td kind="action">
 | 
			
		||||
 
 | 
			
		||||
@@ -34,6 +34,10 @@
 | 
			
		||||
            @if ($document->status == 'draft')
 | 
			
		||||
                <x-documents.show.message type="status" background-color="bg-red-100" text-color="text-red-600" message="{!! trans($textStatusMessage) !!}" />
 | 
			
		||||
            @endif
 | 
			
		||||
 | 
			
		||||
            @if (! $document->totals->count())
 | 
			
		||||
                <x-documents.show.message type="status" background-color="bg-red-100" text-color="text-red-600" message="{!! trans('invoices.messages.totals_required', ['type' => $type]) !!}" />
 | 
			
		||||
            @endif
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @stack('status_message_end')
 | 
			
		||||
 
 | 
			
		||||
@@ -11,9 +11,13 @@
 | 
			
		||||
 | 
			
		||||
    <x-slot name="body">
 | 
			
		||||
        <div class="flex">
 | 
			
		||||
            <x-link href="{{ route($editRoute, $document->id) }}" id="show-slider-actions-edit-{{ $document->type }}" @click="e => e.target.classList.add('disabled')">
 | 
			
		||||
                {{ trans('general.edit') }}
 | 
			
		||||
            </x-link>
 | 
			
		||||
            @if (! $hideEdit)
 | 
			
		||||
                @can($permissionUpdate)
 | 
			
		||||
                    <x-link href="{{ route($editRoute, $document->id) }}" id="show-slider-actions-edit-{{ $document->type }}" @click="e => e.target.classList.add('disabled')">
 | 
			
		||||
                        {{ trans('general.edit') }}
 | 
			
		||||
                    </x-link>
 | 
			
		||||
                @endcan
 | 
			
		||||
            @endif
 | 
			
		||||
        </div>
 | 
			
		||||
    </x-slot>
 | 
			
		||||
</x-show.accordion>
 | 
			
		||||
 
 | 
			
		||||
@@ -11,15 +11,23 @@
 | 
			
		||||
            @stack('timeline_get_paid_body_button_payment_start')
 | 
			
		||||
 | 
			
		||||
            @if (! $hideAddPayment)
 | 
			
		||||
                @if ($document->status != 'paid' && (empty($document->transactions->count()) || (! empty($document->transactions->count()) && $document->paid != $document->amount)))
 | 
			
		||||
                    <x-button
 | 
			
		||||
                        @click="onAddPayment('{{ route('modals.documents.document.transactions.create', $document->id) }}')"
 | 
			
		||||
                        id="show-slider-actions-payment-{{ $document->type }}"
 | 
			
		||||
                        class="px-3 py-1.5 mb-3 sm:mb-0 rounded-lg text-xs font-medium leading-6 bg-green hover:bg-green-700 text-white disabled:bg-green-100"
 | 
			
		||||
                        override="class"
 | 
			
		||||
                    >
 | 
			
		||||
                        {{ trans('invoices.add_payment') }}
 | 
			
		||||
                    </x-button>
 | 
			
		||||
                @if ($document->totals->count())
 | 
			
		||||
                    @if ($document->status != 'paid' && (empty($document->transactions->count()) || (! empty($document->transactions->count()) && $document->paid != $document->amount)))
 | 
			
		||||
                        <x-button
 | 
			
		||||
                            @click="onAddPayment('{{ route('modals.documents.document.transactions.create', $document->id) }}')"
 | 
			
		||||
                            id="show-slider-actions-payment-{{ $document->type }}"
 | 
			
		||||
                            class="px-3 py-1.5 mb-3 sm:mb-0 rounded-lg text-xs font-medium leading-6 bg-green hover:bg-green-700 text-white disabled:bg-green-100"
 | 
			
		||||
                            override="class"
 | 
			
		||||
                        >
 | 
			
		||||
                            {{ trans('invoices.add_payment') }}
 | 
			
		||||
                        </x-button>
 | 
			
		||||
                    @endif
 | 
			
		||||
                @else
 | 
			
		||||
                    <x-tooltip message="{{ trans('invoices.messages.totals_required', ['type' => $type]) }}" placement="top">
 | 
			
		||||
                        <x-dropdown.button disabled="disabled">
 | 
			
		||||
                            {{ trans('invoices.add_payment') }}
 | 
			
		||||
                        </x-dropdown.button>
 | 
			
		||||
                    </x-tooltip>
 | 
			
		||||
                @endif
 | 
			
		||||
            @endif
 | 
			
		||||
 | 
			
		||||
@@ -45,7 +53,7 @@
 | 
			
		||||
 | 
			
		||||
        <div class="text-xs mt-6" style="margin-left: 0 !important;">
 | 
			
		||||
            <span class="font-medium">
 | 
			
		||||
                {{ trans('invoices.payment_received') }} :
 | 
			
		||||
                {{ trans('invoices.payments_received') }}:
 | 
			
		||||
            </span>
 | 
			
		||||
 | 
			
		||||
            @if ($transactions->count())
 | 
			
		||||
@@ -54,61 +62,63 @@
 | 
			
		||||
                        <span>
 | 
			
		||||
                            <x-date :date="$transaction->paid_at" />
 | 
			
		||||
                             - {!! trans('documents.transaction', [
 | 
			
		||||
                                 'amount' => '<span class="font-medium">' . money($transaction->amount, $transaction->currency_code, true) . '</span>',
 | 
			
		||||
                                 'amount' => '<span class="font-medium">' . money($transaction->amount, $transaction->currency_code) . '</span>',
 | 
			
		||||
                                 'account' => '<span class="font-medium">' . $transaction->account->name . '</span>',
 | 
			
		||||
                             ]) !!}
 | 
			
		||||
                        </span>
 | 
			
		||||
 | 
			
		||||
                        </br>
 | 
			
		||||
 | 
			
		||||
                        @if (! empty($transaction->contact) && $transaction->contact->email)
 | 
			
		||||
                            <x-button id="show-slider-actions-transaction-send-email-{{ $document->type }}-{{ $transaction->id }}" class="text-purple mt-1" override="class" @click="onEmailViaTemplate('{{ route($transactionEmailRoute, $transaction->id) }}', '{{ $transactionEmailTemplate }}')">
 | 
			
		||||
                                <x-button.hover color="to-purple">
 | 
			
		||||
                                    {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
 | 
			
		||||
                                </x-button.hover>
 | 
			
		||||
                            </x-button>
 | 
			
		||||
                        @else
 | 
			
		||||
                            <x-tooltip message="{{ trans('invoices.messages.email_required') }}" placement="top">
 | 
			
		||||
                                <x-button class="text-purple mt-1" override="class" disabled="disabled">
 | 
			
		||||
                        <div class="flex flex-row">
 | 
			
		||||
                            @if (! empty($transaction->contact) && $transaction->contact->email)
 | 
			
		||||
                                <x-button id="show-slider-actions-transaction-send-email-{{ $document->type }}-{{ $transaction->id }}" class="text-purple mt-1" override="class" @click="onEmailViaTemplate('{{ route($transactionEmailRoute, $transaction->id) }}', '{{ $transactionEmailTemplate }}')">
 | 
			
		||||
                                    <x-button.hover color="to-purple">
 | 
			
		||||
                                        {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
 | 
			
		||||
                                    </x-button.hover>
 | 
			
		||||
                                </x-button>
 | 
			
		||||
                            </x-tooltip>
 | 
			
		||||
                        @endif
 | 
			
		||||
                            @else
 | 
			
		||||
                                <x-tooltip message="{{ trans('invoices.messages.email_required') }}" placement="top">
 | 
			
		||||
                                    <x-button class="text-purple mt-1" override="class" disabled="disabled">
 | 
			
		||||
                                        <x-button.hover color="to-purple">
 | 
			
		||||
                                            {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
 | 
			
		||||
                                        </x-button.hover>
 | 
			
		||||
                                    </x-button>
 | 
			
		||||
                                </x-tooltip>
 | 
			
		||||
                            @endif
 | 
			
		||||
 | 
			
		||||
                        <span> - </span>
 | 
			
		||||
                            <span class="mt-1 mr-2 ml-2"> - </span>
 | 
			
		||||
 | 
			
		||||
                        <x-button
 | 
			
		||||
                            @click="onEditPayment('{{ route('modals.documents.document.transactions.edit', ['document' => $document->id, 'transaction' => $transaction->id]) }}')"
 | 
			
		||||
                            id="show-slider-actions-transaction-edit-{{ $document->type }}-{{ $transaction->id }}"
 | 
			
		||||
                            class="text-purple mt-1"
 | 
			
		||||
                            override="class"
 | 
			
		||||
                        >
 | 
			
		||||
                            <x-button.hover color="to-purple">
 | 
			
		||||
                                {{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }}
 | 
			
		||||
                            </x-button.hover>
 | 
			
		||||
                        </x-button>
 | 
			
		||||
                            <x-button
 | 
			
		||||
                                @click="onEditPayment('{{ route('modals.documents.document.transactions.edit', ['document' => $document->id, 'transaction' => $transaction->id]) }}')"
 | 
			
		||||
                                id="show-slider-actions-transaction-edit-{{ $document->type }}-{{ $transaction->id }}"
 | 
			
		||||
                                class="text-purple mt-1"
 | 
			
		||||
                                override="class"
 | 
			
		||||
                            >
 | 
			
		||||
                                <x-button.hover color="to-purple">
 | 
			
		||||
                                    {{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }}
 | 
			
		||||
                                </x-button.hover>
 | 
			
		||||
                            </x-button>
 | 
			
		||||
 | 
			
		||||
                        <span> - </span>
 | 
			
		||||
                            <span class="mt-1 mr-2 ml-2"> - </span>
 | 
			
		||||
 | 
			
		||||
                        @php
 | 
			
		||||
                            $message = trans('general.delete_confirm', [
 | 
			
		||||
                                'name' => '<strong>' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '</strong>',
 | 
			
		||||
                                'type' => strtolower(trans_choice('general.transactions', 1))
 | 
			
		||||
                            ]);
 | 
			
		||||
                        @endphp
 | 
			
		||||
                            @php
 | 
			
		||||
                                $message = trans('general.delete_confirm', [
 | 
			
		||||
                                    'name' => '<strong>' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code) . ' - ' . $transaction->account->name . '</strong>',
 | 
			
		||||
                                    'type' => strtolower(trans_choice('general.transactions', 1))
 | 
			
		||||
                                ]);
 | 
			
		||||
                            @endphp
 | 
			
		||||
 | 
			
		||||
                        <x-delete-link
 | 
			
		||||
                            :model="$transaction"
 | 
			
		||||
                            :route="'transactions.destroy'"
 | 
			
		||||
                            :title="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])"
 | 
			
		||||
                            :message="$message"
 | 
			
		||||
                            :label="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])"
 | 
			
		||||
                            class="text-purple mt-1"
 | 
			
		||||
                            text-class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent to-purple transition-backgroundSize"
 | 
			
		||||
                            override="class"
 | 
			
		||||
                        />
 | 
			
		||||
                            <x-delete-link
 | 
			
		||||
                                :model="$transaction"
 | 
			
		||||
                                :route="'transactions.destroy'"
 | 
			
		||||
                                :title="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])"
 | 
			
		||||
                                :message="$message"
 | 
			
		||||
                                :label="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])"
 | 
			
		||||
                                class="text-purple mt-1"
 | 
			
		||||
                                text-class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent to-purple transition-backgroundSize"
 | 
			
		||||
                                override="class"
 | 
			
		||||
                            />
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </div>
 | 
			
		||||
                @endforeach
 | 
			
		||||
            @else
 | 
			
		||||
 
 | 
			
		||||
@@ -11,15 +11,23 @@
 | 
			
		||||
            @stack('timeline_get_paid_body_button_payment_start')
 | 
			
		||||
 | 
			
		||||
            @if (! $hideAddPayment)
 | 
			
		||||
                @if ($document->status != 'paid' && (empty($document->transactions->count()) || (! empty($document->transactions->count()) && $document->paid != $document->amount)) )
 | 
			
		||||
                    <x-button
 | 
			
		||||
                        @click="onAddPayment('{{ route('modals.documents.document.transactions.create', $document->id) }}')"
 | 
			
		||||
                        id="show-slider-actions-payment-{{ $document->type }}"
 | 
			
		||||
                        class="px-3 py-1.5 mb-3 sm:mb-0 rounded-lg text-xs font-medium leading-6 bg-green hover:bg-green-700 text-white disabled:bg-green-100"
 | 
			
		||||
                        override="class"
 | 
			
		||||
                    >
 | 
			
		||||
                        {{ trans('invoices.add_payment') }}
 | 
			
		||||
                    </x-button>
 | 
			
		||||
                @if ($document->totals->count())
 | 
			
		||||
                    @if ($document->status != 'paid' && (empty($document->transactions->count()) || (! empty($document->transactions->count()) && $document->paid != $document->amount)) )
 | 
			
		||||
                        <x-button
 | 
			
		||||
                            @click="onAddPayment('{{ route('modals.documents.document.transactions.create', $document->id) }}')"
 | 
			
		||||
                            id="show-slider-actions-payment-{{ $document->type }}"
 | 
			
		||||
                            class="px-3 py-1.5 mb-3 sm:mb-0 rounded-lg text-xs font-medium leading-6 bg-green hover:bg-green-700 text-white disabled:bg-green-100"
 | 
			
		||||
                            override="class"
 | 
			
		||||
                        >
 | 
			
		||||
                            {{ trans('invoices.add_payment') }}
 | 
			
		||||
                        </x-button>
 | 
			
		||||
                    @endif
 | 
			
		||||
                @else
 | 
			
		||||
                    <x-tooltip message="{{ trans('invoices.messages.totals_required', ['type' => $type]) }}" placement="top">
 | 
			
		||||
                        <x-button disabled="disabled">
 | 
			
		||||
                            {{ trans('invoices.add_payment') }}
 | 
			
		||||
                        </x-button>
 | 
			
		||||
                    </x-tooltip>
 | 
			
		||||
                @endif
 | 
			
		||||
            @endif
 | 
			
		||||
 | 
			
		||||
@@ -37,61 +45,63 @@
 | 
			
		||||
                        <span>
 | 
			
		||||
                            <x-date :date="$transaction->paid_at" />
 | 
			
		||||
                             - {!! trans('documents.transaction', [
 | 
			
		||||
                                 'amount' => '<span class="font-medium">' . money($transaction->amount, $transaction->currency_code, true) . '</span>',
 | 
			
		||||
                                 'amount' => '<span class="font-medium">' . money($transaction->amount, $transaction->currency_code) . '</span>',
 | 
			
		||||
                                 'account' => '<span class="font-medium">' . $transaction->account->name . '</span>',
 | 
			
		||||
                             ]) !!}
 | 
			
		||||
                        </span>
 | 
			
		||||
 | 
			
		||||
                        </br>
 | 
			
		||||
 | 
			
		||||
                        @if (! empty($transaction->contact) && $transaction->contact->email)
 | 
			
		||||
                            <x-button id="show-slider-actions-transaction-send-email-{{ $document->type }}-{{ $transaction->id }}" class="text-purple mt-1" override="class" @click="onEmailViaTemplate('{{ route($transactionEmailRoute, $transaction->id) }}', '{{ $transactionEmailTemplate }}')">
 | 
			
		||||
                                <x-button.hover color="to-purple">
 | 
			
		||||
                                    {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
 | 
			
		||||
                                </x-button.hover>
 | 
			
		||||
                            </x-button>
 | 
			
		||||
                        @else
 | 
			
		||||
                            <x-tooltip message="{{ trans('invoices.messages.email_required') }}" placement="top">
 | 
			
		||||
                                <x-button class="text-purple mt-1" override="class" disabled="disabled">
 | 
			
		||||
                        <div class="flex flex-row">
 | 
			
		||||
                            @if (! empty($transaction->contact) && $transaction->contact->email)
 | 
			
		||||
                                <x-button id="show-slider-actions-transaction-send-email-{{ $document->type }}-{{ $transaction->id }}" class="text-purple mt-1" override="class" @click="onEmailViaTemplate('{{ route($transactionEmailRoute, $transaction->id) }}', '{{ $transactionEmailTemplate }}')">
 | 
			
		||||
                                    <x-button.hover color="to-purple">
 | 
			
		||||
                                        {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
 | 
			
		||||
                                    </x-button.hover>
 | 
			
		||||
                                </x-button>
 | 
			
		||||
                            </x-tooltip>
 | 
			
		||||
                        @endif
 | 
			
		||||
                            @else
 | 
			
		||||
                                <x-tooltip message="{{ trans('invoices.messages.email_required') }}" placement="top">
 | 
			
		||||
                                    <x-button class="text-purple mt-1" override="class" disabled="disabled">
 | 
			
		||||
                                        <x-button.hover color="to-purple">
 | 
			
		||||
                                            {{ trans('general.title.send', ['type' => trans_choice('general.receipts', 1)]) }}
 | 
			
		||||
                                        </x-button.hover>
 | 
			
		||||
                                    </x-button>
 | 
			
		||||
                                </x-tooltip>
 | 
			
		||||
                            @endif
 | 
			
		||||
 | 
			
		||||
                        <span> - </span>
 | 
			
		||||
                            <span class="mt-1 mr-2 ml-2"> - </span>
 | 
			
		||||
 | 
			
		||||
                        <x-button
 | 
			
		||||
                            @click="onEditPayment('{{ route('modals.documents.document.transactions.edit', ['document' => $document->id, 'transaction' => $transaction->id]) }}')"
 | 
			
		||||
                            id="show-slider-actions-transaction-edit-{{ $document->type }}-{{ $transaction->id }}"
 | 
			
		||||
                            class="text-purple mt-1"
 | 
			
		||||
                            override="class"
 | 
			
		||||
                        >
 | 
			
		||||
                            <x-button.hover color="to-purple">
 | 
			
		||||
                                {{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }}
 | 
			
		||||
                            </x-button.hover>
 | 
			
		||||
                        </x-button>
 | 
			
		||||
                            <x-button
 | 
			
		||||
                                @click="onEditPayment('{{ route('modals.documents.document.transactions.edit', ['document' => $document->id, 'transaction' => $transaction->id]) }}')"
 | 
			
		||||
                                id="show-slider-actions-transaction-edit-{{ $document->type }}-{{ $transaction->id }}"
 | 
			
		||||
                                class="text-purple mt-1"
 | 
			
		||||
                                override="class"
 | 
			
		||||
                            >
 | 
			
		||||
                                <x-button.hover color="to-purple">
 | 
			
		||||
                                    {{ trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]) }}
 | 
			
		||||
                                </x-button.hover>
 | 
			
		||||
                            </x-button>
 | 
			
		||||
 | 
			
		||||
                        <span> - </span>
 | 
			
		||||
                            <span class="mt-1 mr-2 ml-2"> - </span>
 | 
			
		||||
 | 
			
		||||
                        @php
 | 
			
		||||
                            $message = trans('general.delete_confirm', [
 | 
			
		||||
                                'name' => '<strong>' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code, true) . ' - ' . $transaction->account->name . '</strong>',
 | 
			
		||||
                                'type' => strtolower(trans_choice('general.transactions', 1))
 | 
			
		||||
                            ]);
 | 
			
		||||
                        @endphp
 | 
			
		||||
                            @php
 | 
			
		||||
                                $message = trans('general.delete_confirm', [
 | 
			
		||||
                                    'name' => '<strong>' . Date::parse($transaction->paid_at)->format(company_date_format()) . ' - ' . money($transaction->amount, $transaction->currency_code) . ' - ' . $transaction->account->name . '</strong>',
 | 
			
		||||
                                    'type' => strtolower(trans_choice('general.transactions', 1))
 | 
			
		||||
                                ]);
 | 
			
		||||
                            @endphp
 | 
			
		||||
 | 
			
		||||
                        <x-delete-link
 | 
			
		||||
                            :model="$transaction"
 | 
			
		||||
                            :route="'transactions.destroy'"
 | 
			
		||||
                            :title="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])"
 | 
			
		||||
                            :message="$message"
 | 
			
		||||
                            :label="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])"
 | 
			
		||||
                            class="text-purple mt-1"
 | 
			
		||||
                            text-class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent to-purple transition-backgroundSize"
 | 
			
		||||
                            override="class"
 | 
			
		||||
                        />
 | 
			
		||||
                            <x-delete-link
 | 
			
		||||
                                :model="$transaction"
 | 
			
		||||
                                :route="'transactions.destroy'"
 | 
			
		||||
                                :title="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])"
 | 
			
		||||
                                :message="$message"
 | 
			
		||||
                                :label="trans('general.title.delete', ['type' => trans_choice('general.payments', 1)])"
 | 
			
		||||
                                class="text-purple mt-1"
 | 
			
		||||
                                text-class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent to-purple transition-backgroundSize"
 | 
			
		||||
                                override="class"
 | 
			
		||||
                            />
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </div>
 | 
			
		||||
                @endforeach
 | 
			
		||||
            @else
 | 
			
		||||
 
 | 
			
		||||
@@ -108,15 +108,13 @@
 | 
			
		||||
 | 
			
		||||
        @stack('button_cancelled_start')
 | 
			
		||||
 | 
			
		||||
        @if (! $hideCancel)
 | 
			
		||||
        @if (! $hideCancel && ! in_array($document->status, ['cancelled', 'draft']))
 | 
			
		||||
            @can($permissionUpdate)
 | 
			
		||||
                <x-dropdown.divider />
 | 
			
		||||
 | 
			
		||||
                @if ($document->status != 'cancelled')
 | 
			
		||||
                    <x-dropdown.link href="{{ route($cancelledRoute, $document->id) }}" id="show-more-actions-cancel-{{ $document->type }}">
 | 
			
		||||
                        {{ trans('general.cancel') }}
 | 
			
		||||
                    </x-dropdown.link>
 | 
			
		||||
                @endif
 | 
			
		||||
                <x-dropdown.link href="{{ route($cancelledRoute, $document->id) }}" id="show-more-actions-cancel-{{ $document->type }}">
 | 
			
		||||
                    {{ trans('documents.actions.cancel') }}
 | 
			
		||||
                </x-dropdown.link>
 | 
			
		||||
            @endcan
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -17,9 +17,9 @@
 | 
			
		||||
                @stack('company_logo_input_start')
 | 
			
		||||
                @if (! $hideCompanyLogo)
 | 
			
		||||
                    @if (!empty($document->contact->logo) && !empty($document->contact->logo->id))
 | 
			
		||||
                        <img  class="c-logo w-image" src="{{ $logo }}" alt="{{ $document->contact_name }}"/>
 | 
			
		||||
                        <img  class="c-logo" src="{{ $logo }}" alt="{{ $document->contact_name }}"/>
 | 
			
		||||
                    @else
 | 
			
		||||
                        <img  class="c-logo w-image" src="{{ $logo }}" alt="{{ setting('company.name') }}" />
 | 
			
		||||
                        <img  class="c-logo" src="{{ $logo }}" alt="{{ setting('company.name') }}" />
 | 
			
		||||
                    @endif
 | 
			
		||||
                @endif
 | 
			
		||||
                @stack('company_logo_input_end')
 | 
			
		||||
@@ -52,7 +52,7 @@
 | 
			
		||||
                    @if (! $hideCompanyTaxNumber)
 | 
			
		||||
                        @if (setting('company.tax_number'))
 | 
			
		||||
                            <p>
 | 
			
		||||
                                <span class="text-medium text-default">
 | 
			
		||||
                                <span class="font-semibold">
 | 
			
		||||
                                    {{ trans('general.tax_number') }}:
 | 
			
		||||
                                </span>
 | 
			
		||||
                                {{ setting('company.tax_number') }}
 | 
			
		||||
@@ -113,7 +113,7 @@
 | 
			
		||||
 | 
			
		||||
    <div class="row top-spacing">
 | 
			
		||||
        <div class="col-60">
 | 
			
		||||
            <div class="text p-index-left">
 | 
			
		||||
            <div class="text p-index-left break-words">
 | 
			
		||||
                @if (! $hideContactInfo)
 | 
			
		||||
                    <p class="font-semibold mb-0">
 | 
			
		||||
                        {{ trans($textContactInfo) }}
 | 
			
		||||
@@ -153,7 +153,7 @@
 | 
			
		||||
                    @if (! $hideContactTaxNumber)
 | 
			
		||||
                        @if ($document->contact_tax_number)
 | 
			
		||||
                            <p>
 | 
			
		||||
                                <span class="text-medium text-default">    
 | 
			
		||||
                                <span class="font-semibold">
 | 
			
		||||
                                    {{ trans('general.tax_number') }}:
 | 
			
		||||
                                </span>
 | 
			
		||||
                                {{ $document->contact_tax_number }}
 | 
			
		||||
@@ -236,7 +236,7 @@
 | 
			
		||||
                            </span>
 | 
			
		||||
 | 
			
		||||
                            <span class="float-right spacing">
 | 
			
		||||
                                <x-money :amount="$total->amount - $document->paid" :currency="$document->currency_code" convert />
 | 
			
		||||
                                <x-money :amount="$total->amount - $document->paid" :currency="$document->currency_code" />
 | 
			
		||||
                            </span>
 | 
			
		||||
                        </p>
 | 
			
		||||
                    @endif
 | 
			
		||||
@@ -328,7 +328,7 @@
 | 
			
		||||
 | 
			
		||||
    <div class="row mt-4 clearfix">
 | 
			
		||||
        <div class="col-60">
 | 
			
		||||
            <div class="text p-index-right">
 | 
			
		||||
            <div class="text p-index-right break-words">
 | 
			
		||||
                @stack('notes_input_start')
 | 
			
		||||
                    @if ($hideNote)
 | 
			
		||||
                        @if ($document->notes)
 | 
			
		||||
@@ -353,7 +353,7 @@
 | 
			
		||||
                        </strong>
 | 
			
		||||
 | 
			
		||||
                        <span>
 | 
			
		||||
                            <x-money :amount="$total->amount" :currency="$document->currency_code" convert />
 | 
			
		||||
                            <x-money :amount="$total->amount" :currency="$document->currency_code" />
 | 
			
		||||
                        </span>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    @stack($total->code . '_total_tr_end')
 | 
			
		||||
@@ -366,7 +366,7 @@
 | 
			
		||||
                            </span>
 | 
			
		||||
 | 
			
		||||
                            <span>
 | 
			
		||||
                                - <x-money :amount="$document->paid" :currency="$document->currency_code" convert />
 | 
			
		||||
                                - <x-money :amount="$document->paid" :currency="$document->currency_code" />
 | 
			
		||||
                            </span>
 | 
			
		||||
                        </div>
 | 
			
		||||
                        @stack('paid_total_tr_end')
 | 
			
		||||
@@ -379,7 +379,7 @@
 | 
			
		||||
                        </span>
 | 
			
		||||
 | 
			
		||||
                        <span>
 | 
			
		||||
                            <x-money :amount="$document->amount_due" :currency="$document->currency_code" convert />
 | 
			
		||||
                            <x-money :amount="$document->amount_due" :currency="$document->currency_code" />
 | 
			
		||||
                        </span>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    @stack('grand_total_tr_end')
 | 
			
		||||
 
 | 
			
		||||
@@ -17,9 +17,9 @@
 | 
			
		||||
                @stack('company_logo_input_start')
 | 
			
		||||
                @if (! $hideCompanyLogo)
 | 
			
		||||
                    @if (! empty($document->contact->logo) && ! empty($document->contact->logo->id))
 | 
			
		||||
                        <img class="d-logo w-image" src="{{ $logo }}" alt="{{ $document->contact_name }}"/>
 | 
			
		||||
                        <img class="d-logo" src="{{ $logo }}" alt="{{ $document->contact_name }}"/>
 | 
			
		||||
                    @else
 | 
			
		||||
                        <img class="d-logo w-image" src="{{ $logo }}" alt="{{ setting('company.name') }}"/>
 | 
			
		||||
                        <img class="d-logo" src="{{ $logo }}" alt="{{ setting('company.name') }}"/>
 | 
			
		||||
                    @endif
 | 
			
		||||
                @endif
 | 
			
		||||
                @stack('company_logo_input_end')
 | 
			
		||||
@@ -48,13 +48,13 @@
 | 
			
		||||
                    @endif
 | 
			
		||||
 | 
			
		||||
                    @if (! $hideCompanyTaxNumber)
 | 
			
		||||
                        
 | 
			
		||||
 | 
			
		||||
                        @if (setting('company.tax_number'))
 | 
			
		||||
                            <p>
 | 
			
		||||
                                {{ trans('general.tax_number') }}: {{ setting('company.tax_number') }}
 | 
			
		||||
                            </p>
 | 
			
		||||
                        @endif
 | 
			
		||||
                        
 | 
			
		||||
 | 
			
		||||
                    @endif
 | 
			
		||||
 | 
			
		||||
                    @if (! $hideCompanyPhone)
 | 
			
		||||
@@ -76,7 +76,7 @@
 | 
			
		||||
 | 
			
		||||
    <div class="row top-spacing">
 | 
			
		||||
        <div class="col-60">
 | 
			
		||||
            <div class="text p-index-left">
 | 
			
		||||
            <div class="text p-index-left break-words">
 | 
			
		||||
                @if (! $hideContactInfo)
 | 
			
		||||
                    <p class="font-semibold mb-0">
 | 
			
		||||
                        {{ trans($textContactInfo) }}
 | 
			
		||||
@@ -116,7 +116,7 @@
 | 
			
		||||
                    @if (! $hideContactTaxNumber)
 | 
			
		||||
                        @if ($document->contact_tax_number)
 | 
			
		||||
                            <p>
 | 
			
		||||
                                <span class="text-medium text-default">
 | 
			
		||||
                                <span class="font-semibold">
 | 
			
		||||
                                    {{ trans('general.tax_number') }}:
 | 
			
		||||
                                </span>
 | 
			
		||||
                                {{ $document->contact_tax_number }}
 | 
			
		||||
@@ -301,7 +301,7 @@
 | 
			
		||||
 | 
			
		||||
    <div class="row mt-9 clearfix">
 | 
			
		||||
        <div class="col-60">
 | 
			
		||||
            <div class="text p-index-left">
 | 
			
		||||
            <div class="text p-index-left break-words">
 | 
			
		||||
                @stack('notes_input_start')
 | 
			
		||||
                    @if ($document->notes)
 | 
			
		||||
                        <p class="font-semibold">
 | 
			
		||||
@@ -324,7 +324,7 @@
 | 
			
		||||
                        </span>
 | 
			
		||||
 | 
			
		||||
                        <span>
 | 
			
		||||
                            <x-money :amount="$total->amount" :currency="$document->currency_code" convert />
 | 
			
		||||
                            <x-money :amount="$total->amount" :currency="$document->currency_code" />
 | 
			
		||||
                        </span>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    @stack($total->code . '_total_tr_end')
 | 
			
		||||
@@ -337,7 +337,7 @@
 | 
			
		||||
                            </span>
 | 
			
		||||
 | 
			
		||||
                            <span>
 | 
			
		||||
                                - <x-money :amount="$document->paid" :currency="$document->currency_code" convert />
 | 
			
		||||
                                - <x-money :amount="$document->paid" :currency="$document->currency_code" />
 | 
			
		||||
                            </span>
 | 
			
		||||
                        </div>
 | 
			
		||||
                        @stack('paid_total_tr_end')
 | 
			
		||||
@@ -350,7 +350,7 @@
 | 
			
		||||
                        </span>
 | 
			
		||||
 | 
			
		||||
                        <span>
 | 
			
		||||
                            <x-money :amount="$document->amount_due" :currency="$document->currency_code" convert />
 | 
			
		||||
                            <x-money :amount="$document->amount_due" :currency="$document->currency_code" />
 | 
			
		||||
                        </span>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    @stack('grand_total_tr_end')
 | 
			
		||||
 
 | 
			
		||||
@@ -1,16 +1,16 @@
 | 
			
		||||
<tr>
 | 
			
		||||
    @stack('name_td_start')
 | 
			
		||||
        @if (! $hideItems || (! $hideName && ! $hideDescription))
 | 
			
		||||
            <td class="item text text-alignment-left text-left">
 | 
			
		||||
            <td class="item text text-alignment-left text-left max-w-0">
 | 
			
		||||
                @if (! $hideName)
 | 
			
		||||
                    {{ $item->name }} <br/>
 | 
			
		||||
                @endif
 | 
			
		||||
 | 
			
		||||
                @if (! $hideDescription)
 | 
			
		||||
                    @if (! empty($item->description))
 | 
			
		||||
                        <span class="small-text">
 | 
			
		||||
                        <div class="small-text break-words">
 | 
			
		||||
                            {!! \Illuminate\Support\Str::limit(nl2br($item->description), 500) !!}
 | 
			
		||||
                        </span>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    @endif
 | 
			
		||||
                @endif
 | 
			
		||||
 | 
			
		||||
@@ -31,7 +31,7 @@
 | 
			
		||||
    @stack('price_td_start')
 | 
			
		||||
        @if (! $hidePrice)
 | 
			
		||||
            <td class="price text text-alignment-right text-right">
 | 
			
		||||
                <x-money :amount="$item->price" :currency="$document->currency_code" convert />
 | 
			
		||||
                <x-money :amount="$item->price" :currency="$document->currency_code" />
 | 
			
		||||
            </td>
 | 
			
		||||
        @endif
 | 
			
		||||
    @stack('price_td_end')
 | 
			
		||||
@@ -59,7 +59,7 @@
 | 
			
		||||
                    </td>
 | 
			
		||||
                @else
 | 
			
		||||
                    <td class="discount text text-alignment-right text-right">
 | 
			
		||||
                        <x-money :amount="$item->discount" :currency="$document->currency_code" convert />
 | 
			
		||||
                        <x-money :amount="$item->discount" :currency="$document->currency_code" />
 | 
			
		||||
                    </td>
 | 
			
		||||
                @endif
 | 
			
		||||
            @stack('discount_td_end')
 | 
			
		||||
@@ -69,7 +69,7 @@
 | 
			
		||||
    @stack('total_td_start')
 | 
			
		||||
        @if (! $hideAmount)
 | 
			
		||||
            <td class="total text text-alignment-right text-right">
 | 
			
		||||
                <x-money :amount="$item->total" :currency="$document->currency_code" convert />
 | 
			
		||||
                <x-money :amount="$item->total" :currency="$document->currency_code" />
 | 
			
		||||
            </td>
 | 
			
		||||
        @endif
 | 
			
		||||
    @stack('total_td_end')
 | 
			
		||||
 
 | 
			
		||||
@@ -17,9 +17,9 @@
 | 
			
		||||
                @stack('company_logo_input_start')
 | 
			
		||||
                @if (! $hideCompanyLogo)
 | 
			
		||||
                    @if (! empty($document->contact->logo) && ! empty($document->contact->logo->id))
 | 
			
		||||
                        <img class="w-image radius-circle" src="{{ $logo }}" alt="{{ $document->contact_name }}"/>
 | 
			
		||||
                        <img class="radius-circle" src="{{ $logo }}" alt="{{ $document->contact_name }}"/>
 | 
			
		||||
                    @else
 | 
			
		||||
                        <img class="w-image radius-circle" src="{{ $logo }}" alt="{{ setting('company.name') }}" />
 | 
			
		||||
                        <img class="radius-circle" src="{{ $logo }}" alt="{{ setting('company.name') }}" />
 | 
			
		||||
                    @endif
 | 
			
		||||
                @endif
 | 
			
		||||
                @stack('company_logo_input_end')
 | 
			
		||||
@@ -52,7 +52,7 @@
 | 
			
		||||
                    @if (! $hideCompanyTaxNumber)
 | 
			
		||||
                        <p class="text-white">
 | 
			
		||||
                            @if (setting('company.tax_number'))
 | 
			
		||||
                                <span class="text-medium text-default">
 | 
			
		||||
                                <span class="font-semibold">
 | 
			
		||||
                                    {{ trans('general.tax_number') }}:
 | 
			
		||||
                                </span>
 | 
			
		||||
 | 
			
		||||
@@ -122,7 +122,7 @@
 | 
			
		||||
                    @if (! $hideContactTaxNumber)
 | 
			
		||||
                        @if ($document->contact_tax_number)
 | 
			
		||||
                            <p>
 | 
			
		||||
                                <span class="text-medium text-default">
 | 
			
		||||
                                <span class="font-semibold">
 | 
			
		||||
                                    {{ trans('general.tax_number') }}:
 | 
			
		||||
                                </span>
 | 
			
		||||
 | 
			
		||||
@@ -298,7 +298,7 @@
 | 
			
		||||
 | 
			
		||||
    <div class="row mt-7 clearfix">
 | 
			
		||||
        <div class="col-60">
 | 
			
		||||
            <div class="text p-index-right p-modern">
 | 
			
		||||
            <div class="text p-index-right p-modern break-words">
 | 
			
		||||
                @stack('notes_input_start')
 | 
			
		||||
                    @if ($document->notes)
 | 
			
		||||
                        <p class="font-semibold">
 | 
			
		||||
@@ -321,7 +321,7 @@
 | 
			
		||||
                        </span>
 | 
			
		||||
 | 
			
		||||
                        <span>
 | 
			
		||||
                            <x-money :amount="$total->amount" :currency="$document->currency_code" convert />
 | 
			
		||||
                            <x-money :amount="$total->amount" :currency="$document->currency_code" />
 | 
			
		||||
                        </span>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    @stack($total->code . '_total_tr_end')
 | 
			
		||||
@@ -334,7 +334,7 @@
 | 
			
		||||
                            </span>
 | 
			
		||||
 | 
			
		||||
                            <span>
 | 
			
		||||
                                - <x-money :amount="$document->paid" :currency="$document->currency_code" convert />
 | 
			
		||||
                                - <x-money :amount="$document->paid" :currency="$document->currency_code" />
 | 
			
		||||
                            </span>
 | 
			
		||||
                        </div>
 | 
			
		||||
                        @stack('paid_total_tr_end')
 | 
			
		||||
@@ -347,7 +347,7 @@
 | 
			
		||||
                            </span>
 | 
			
		||||
 | 
			
		||||
                            <span>
 | 
			
		||||
                                <x-money :amount="$document->amount_due" :currency="$document->currency_code" convert />
 | 
			
		||||
                                <x-money :amount="$document->amount_due" :currency="$document->currency_code" />
 | 
			
		||||
                            </span>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    @stack('grand_total_tr_end')
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
<div class="w-full flex items-center text-purple px-2 h-9 leading-9 whitespace-nowrap" {{ $attributes }}>
 | 
			
		||||
    <a href="{!! $href !!}" class="w-full h-full flex items-center rounded-md px-2 text-sm font-normal hover:bg-lilac-100">
 | 
			
		||||
    <a href="{!! $href !!}" target="{!! $target !!}" class="w-full h-full flex items-center rounded-md px-2 text-sm font-normal hover:bg-lilac-100">
 | 
			
		||||
        {!! $slot !!}
 | 
			
		||||
    </a>
 | 
			
		||||
</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -58,7 +58,7 @@
 | 
			
		||||
                                </div>
 | 
			
		||||
                            </div>
 | 
			
		||||
 | 
			
		||||
                            <span class="material-icons text-gray-500">chevron_right</span>
 | 
			
		||||
                            <span class="material-icons text-gray-500 rtl:rotate-180">chevron_right</span>
 | 
			
		||||
                        </x-link>
 | 
			
		||||
                    </li>
 | 
			
		||||
                @endforeach
 | 
			
		||||
@@ -67,7 +67,7 @@
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="w-full lg:w-1/2 flex justify-end mt-8 lg:mt-60">
 | 
			
		||||
        <img src="{{ $image }}" alt="{{ $title }}" />
 | 
			
		||||
        <img src="{{ $image }}" alt="{{ $title }}" class="ltr:scale-x-100 rtl:-scale-x-100" />
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
@@ -78,3 +78,4 @@
 | 
			
		||||
        }
 | 
			
		||||
    </style>
 | 
			
		||||
@endpush
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
@stack($name . '_input_start')
 | 
			
		||||
<div
 | 
			
		||||
    @class([
 | 
			
		||||
        'grid sm:grid-cols-6 lg:gap-8',
 | 
			
		||||
        'grid sm:grid-cols-6 lg:gap-8 col-span-3',
 | 
			
		||||
        $formGroupClass,
 | 
			
		||||
        'required' => $required,
 | 
			
		||||
        'readonly' => $readonly,
 | 
			
		||||
 
 | 
			
		||||
@@ -3,6 +3,9 @@
 | 
			
		||||
    :date-range-text="{{ json_encode(trans('general.date_range')) }}"
 | 
			
		||||
    middle-text="{!! trans('recurring.limit_middle') !!}"
 | 
			
		||||
    end-text="{{ Str::plural(Str::replace('-recurring', '', $type)) }}"
 | 
			
		||||
    send-email-text="{{ trans('recurring.send_email_auto') }}"
 | 
			
		||||
    send-email-yes-text="{{ trans('general.yes') }}"
 | 
			
		||||
    send-email-no-text="{{ trans('general.no') }}"
 | 
			
		||||
 | 
			
		||||
    :frequencies="{{ json_encode($frequencies) }}"
 | 
			
		||||
    frequency-text="{!! trans('recurring.frequency_type', ['type' => Str::replace('-recurring', '', $type)]) !!}"
 | 
			
		||||
@@ -23,12 +26,14 @@
 | 
			
		||||
    @else
 | 
			
		||||
    @interval="form.recurring_interval = $event"
 | 
			
		||||
    @endif
 | 
			
		||||
    :invertal-error="form.errors.get('recurring_interval')"
 | 
			
		||||
 | 
			
		||||
    @if ($attributes->has('@custom_frequency'))
 | 
			
		||||
    @custom_frequency="form.recurring_custom_frequency = $event;{{ $attributes['@custom_frequency'] }}"
 | 
			
		||||
    @else
 | 
			
		||||
    @custom_frequency="form.recurring_custom_frequency = $event"
 | 
			
		||||
    @endif
 | 
			
		||||
    :custom-frequency-error="form.errors.get('recurring_custom_frequency')"
 | 
			
		||||
 | 
			
		||||
    started-value="{{ $startedValue }}"
 | 
			
		||||
    @if ($attributes->has('@started'))
 | 
			
		||||
@@ -36,6 +41,7 @@
 | 
			
		||||
    @else
 | 
			
		||||
    @started="form.recurring_started_at = $event"
 | 
			
		||||
    @endif
 | 
			
		||||
    :started-error="form.errors.get('recurring_started_at')"
 | 
			
		||||
 | 
			
		||||
    :limits="{{ json_encode($limits) }}"
 | 
			
		||||
    limit-value="{{ $limit }}"
 | 
			
		||||
@@ -52,6 +58,7 @@
 | 
			
		||||
    @else
 | 
			
		||||
    @limit_count="form.recurring_limit_count = $event"
 | 
			
		||||
    @endif
 | 
			
		||||
    :limit-count-error="form.errors.get('recurring_limit_count')"
 | 
			
		||||
 | 
			
		||||
    limit-date-value="{{ $limitDateValue }}"
 | 
			
		||||
    @if ($attributes->has('@limit_date'))
 | 
			
		||||
@@ -59,9 +66,19 @@
 | 
			
		||||
    @else
 | 
			
		||||
    @limit_date="form.recurring_limit_date = $event"
 | 
			
		||||
    @endif
 | 
			
		||||
    :limit-date-error="form.errors.get('recurring_limit_date')"
 | 
			
		||||
 | 
			
		||||
    send-email-show="{{ $sendEmailShow }}"
 | 
			
		||||
    send-email-value="{{ $sendEmail }}"
 | 
			
		||||
    @if ($attributes->has('@send_email'))
 | 
			
		||||
    @send_email="form.recurring_send_email = $event;{{ $attributes['@send_email'] }}"
 | 
			
		||||
    @else
 | 
			
		||||
    @send_email="form.recurring_send_email = $event"
 | 
			
		||||
    @endif
 | 
			
		||||
    :send-email-error="form.errors.get('recurring_send_email')"
 | 
			
		||||
 | 
			
		||||
    date-format="{{ company_date_format() }}"
 | 
			
		||||
 | 
			
		||||
    {{ $attributes }}
 | 
			
		||||
>
 | 
			
		||||
</akaunting-recurring>
 | 
			
		||||
</akaunting-recurring>
 | 
			
		||||
 
 | 
			
		||||
@@ -7,11 +7,13 @@
 | 
			
		||||
        v-if="{{ $attributes['show'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
        >
 | 
			
		||||
        <x-form.label for="{{ $name }}">{!! $label !!}</x-form.label>
 | 
			
		||||
        <x-form.label for="{{ $name }}">
 | 
			
		||||
            {!! $label !!}
 | 
			
		||||
        </x-form.label>
 | 
			
		||||
 | 
			
		||||
        <div class="flex items-center mt-1">
 | 
			
		||||
            @if (empty($attributes['disabled']))
 | 
			
		||||
                <label class="relative w-10 ltr:rounded-tl-lg ltr:rounded-bl-lg rtl:rounded-tr-lg rtl:rounded-br-lg py-2 px-1 text-sm text-center transition-all cursor-pointer" @click="form.{{ $name }}=1" v-bind:class="[form.{{ $name }} == 1 ? ['bg-green-500','text-white'] : 'bg-black-100']">
 | 
			
		||||
                <label class="relative w-10 ltr:rounded-tl-lg ltr:rounded-bl-lg rtl:rounded-tr-lg rtl:rounded-br-lg py-2 px-1 text-sm text-center transition-all cursor-pointer" @click="form.{{ $name }}=1; @if(isset($attributes['change'])) {!! $attributes['change'] !!} @endif" v-bind:class="[form.{{ $name }} == 1 ? ['bg-green-500','text-white'] : 'bg-black-100']">
 | 
			
		||||
                    {{ empty($enable) ? trans('general.yes') : $enable }}
 | 
			
		||||
                    <input type="radio" name="{{ $name }}" id="{{ $name }}-1" class="absolute left-0 opacity-0">
 | 
			
		||||
                </label>
 | 
			
		||||
@@ -23,7 +25,7 @@
 | 
			
		||||
            @endif
 | 
			
		||||
 | 
			
		||||
            @if (empty($attributes['disabled']))
 | 
			
		||||
                <label class="relative w-10 ltr:rounded-tr-lg ltr:rounded-br-lg rtl:rounded-tl-lg rtl:rounded-bl-lg py-2 px-1 text-sm text-center transition-all cursor-pointer" @click="form.{{ $name }}=0" v-bind:class="[form.{{ $name }} == 0 ? ['bg-red-500','text-white'] : 'bg-black-100']">
 | 
			
		||||
                <label class="relative w-10 ltr:rounded-tr-lg ltr:rounded-br-lg rtl:rounded-tl-lg rtl:rounded-bl-lg py-2 px-1 text-sm text-center transition-all cursor-pointer" @click="form.{{ $name }}=0; @if(isset($attributes['change'])) {!! $attributes['change'] !!} @endif" v-bind:class="[form.{{ $name }} == 0 ? ['bg-red-500','text-white'] : 'bg-black-100']">
 | 
			
		||||
                    {{ empty($disable) ? trans('general.no') : $disable }}
 | 
			
		||||
                    <input type="radio" name="{{ $name }}" id="{{ $name }}-0" class="absolute left-0 opacity-0">
 | 
			
		||||
                </label>
 | 
			
		||||
 
 | 
			
		||||
@@ -9,10 +9,11 @@
 | 
			
		||||
@else
 | 
			
		||||
    <span
 | 
			
		||||
        @class([
 | 
			
		||||
            'material-icons-outlined' => (! $filled && ! $rounded),
 | 
			
		||||
            'material-icons-outlined' => (! $filled && ! $rounded && ! $sharp),
 | 
			
		||||
            $class,
 | 
			
		||||
            'material-icons' => $filled,
 | 
			
		||||
            'material-icons-round' => $rounded,
 | 
			
		||||
            'material-icons-sharp'=> $sharp,
 | 
			
		||||
        ])
 | 
			
		||||
        {{ $attributes }}
 | 
			
		||||
    >{{ $icon }}</span>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
@stack('footer_start')
 | 
			
		||||
    <footer class="footer">
 | 
			
		||||
    <footer class="footer container">
 | 
			
		||||
        <div class="flex flex-col sm:flex-row items-center justify-between lg:mt-20 py-7 text-sm font-light">
 | 
			
		||||
            <div>
 | 
			
		||||
                {{ trans('footer.powered') }}:
 | 
			
		||||
 
 | 
			
		||||
@@ -1,10 +1,10 @@
 | 
			
		||||
@props([
 | 
			
		||||
    'metaTitle', 'title',
 | 
			
		||||
    'metaTitle', 'title', 'currency'
 | 
			
		||||
])
 | 
			
		||||
 | 
			
		||||
<head>
 | 
			
		||||
    @stack('head_start')
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    <meta charset="utf-8">
 | 
			
		||||
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 | 
			
		||||
@@ -15,7 +15,7 @@
 | 
			
		||||
    <base href="{{ config('app.url') . '/' }}">
 | 
			
		||||
 | 
			
		||||
    <x-layouts.pwa.head />
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('public/css/custom_loading.css?v=' . version('short')) }}" type="text/css">
 | 
			
		||||
 | 
			
		||||
    <!-- Favicon -->
 | 
			
		||||
@@ -43,6 +43,7 @@
 | 
			
		||||
        var url = '{{ url("/" . company_id()) }}';
 | 
			
		||||
        var app_url = '{{ config("app.url") }}';
 | 
			
		||||
        var aka_currency = {!! !empty($currency) ? $currency : 'false' !!};
 | 
			
		||||
        var all_currencies = {!! !empty($currencies) ? $currencies : '[]' !!};
 | 
			
		||||
    //--></script>
 | 
			
		||||
 | 
			
		||||
    <x-script.exceptions.trackers />
 | 
			
		||||
 
 | 
			
		||||
@@ -117,45 +117,39 @@
 | 
			
		||||
                </div>
 | 
			
		||||
 | 
			
		||||
                <div class="flex ltr:ml-2 rtl:mr-2">
 | 
			
		||||
                    <span class="w-28 text-left block text-base truncate">
 | 
			
		||||
                    <span class="w-28 ltr:text-left rtl:text-right block text-base truncate">
 | 
			
		||||
                        <x-button.hover>
 | 
			
		||||
                            {{ Str::limit(setting('company.name'), 22) }}
 | 
			
		||||
                        </x-button.hover>
 | 
			
		||||
                    </span>
 | 
			
		||||
 | 
			
		||||
                    @can('read-common-companies')
 | 
			
		||||
                        <div class="absolute top-2 ltr:-right-1 rtl:-left-1">
 | 
			
		||||
                            <svg class="h-5 w-5 text-gray-400" x-description="Heroicon name: solid/selector" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
 | 
			
		||||
                                <path fill-rule="evenodd" d="M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z" clip-rule="evenodd"></path>
 | 
			
		||||
                            </svg>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    @endcan
 | 
			
		||||
                    <div class="absolute top-2 ltr:-right-1 rtl:-left-1">
 | 
			
		||||
                        <svg class="h-5 w-5 text-gray-400" x-description="Heroicon name: solid/selector" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
 | 
			
		||||
                            <path fill-rule="evenodd" d="M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z" clip-rule="evenodd"></path>
 | 
			
		||||
                        </svg>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            </button>
 | 
			
		||||
 | 
			
		||||
            @can('read-common-companies')
 | 
			
		||||
                <div id="dropdown-menu-company" class="absolute right-0 mt-3 pt-2 bg-white rounded-md shadow-xl z-20 hidden" style="left: auto; min-width: 10rem;">
 | 
			
		||||
                    @foreach($companies as $com)
 | 
			
		||||
                        <x-link href="{{ route('companies.switch', $com->id) }}" id="menu-company-{{ $com->id }}" class="h-9 leading-9 flex items-center text-sm px-2" override="class" role="menuitem" tabindex="-1">
 | 
			
		||||
                            <div class="w-full h-full flex items-center rounded-md px-2 hover:bg-lilac-100">
 | 
			
		||||
                                <span class="material-icons-outlined text-purple text-xl">business</span>
 | 
			
		||||
                                <span class="ltr:pl-2 rtl:pr-2 text-purple text-xs truncate">{{ Str::limit($com->name, 18) }}</span>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </x-link>
 | 
			
		||||
                    @endforeach
 | 
			
		||||
            <div id="dropdown-menu-company" class="absolute right-0 mt-3 pt-2 bg-white rounded-md shadow-xl z-20 hidden" style="left: auto; min-width: 10rem;">
 | 
			
		||||
                @foreach($companies as $com)
 | 
			
		||||
                    <x-link href="{{ route('companies.switch', $com->id) }}" id="menu-company-{{ $com->id }}" class="h-9 leading-9 flex items-center text-sm px-2" override="class" role="menuitem" tabindex="-1">
 | 
			
		||||
                        <div class="w-full h-full flex items-center rounded-md px-2 hover:bg-lilac-100">
 | 
			
		||||
                            <span class="material-icons-outlined text-purple text-xl">business</span>
 | 
			
		||||
                            <span class="ltr:pl-2 rtl:pr-2 text-purple text-xs truncate">{{ Str::limit($com->name, 18) }}</span>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </x-link>
 | 
			
		||||
                @endforeach
 | 
			
		||||
 | 
			
		||||
                    @can('update-common-companies')
 | 
			
		||||
                        <x-link href="{{ route('companies.index') }}" class="h-9 leading-9 flex items-center text-sm px-2 mt-2 border-t rounded-bl rounded-br group hover:bg-purple" override="class">
 | 
			
		||||
                            <div class="w-full h-full flex items-center rounded-md px-2">
 | 
			
		||||
                                <span class="material-icons-outlined text-purple text-xl group-hover:text-white">settings</span>
 | 
			
		||||
                                <span class="ltr:pl-2 rtl:pr-2 text-purple text-xs truncate group-hover:text-white">
 | 
			
		||||
                                    {{ trans('general.title.manage', ['type' => trans_choice('general.companies', 2)]) }}
 | 
			
		||||
                                </span>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </x-link>
 | 
			
		||||
                    @endcan
 | 
			
		||||
                </div>
 | 
			
		||||
            @endcan
 | 
			
		||||
                <x-link href="{{ route('companies.index') }}" class="h-9 leading-9 flex items-center text-sm px-2 mt-2 border-t rounded-bl rounded-br group hover:bg-purple" override="class">
 | 
			
		||||
                    <div class="w-full h-full flex items-center rounded-md px-2">
 | 
			
		||||
                        <span class="material-icons-outlined text-purple text-xl group-hover:text-white">settings</span>
 | 
			
		||||
                        <span class="ltr:pl-2 rtl:pr-2 text-purple text-xs truncate group-hover:text-white">
 | 
			
		||||
                            {{ trans('general.title.manage', ['type' => trans_choice('general.companies', 2)]) }}
 | 
			
		||||
                        </span>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </x-link>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <div class="main-menu transform">
 | 
			
		||||
@@ -235,3 +229,4 @@
 | 
			
		||||
<x-loading.menu />
 | 
			
		||||
 | 
			
		||||
@stack('menu_end')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -58,7 +58,7 @@
 | 
			
		||||
        function contentTransitionLeft() {
 | 
			
		||||
            sectionContent.classList.add("xl:ltr:ml-0", "xl:rtl:mr-0");
 | 
			
		||||
            sectionContent.classList.remove("xl:ltr:ml-64", "xl:rtl:mr-64");
 | 
			
		||||
 | 
			
		||||
            toggleButton.querySelector("span").classList.remove("ltr:rotate-90", "rtl:-rotate-90");
 | 
			
		||||
            toggleButton.querySelector("span").classList.add("ltr:-rotate-90", "rtl:rotate-90");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -66,8 +66,8 @@
 | 
			
		||||
        function contentTransitionRight() {
 | 
			
		||||
            sectionContent.classList.remove("xl:ltr:ml-0", "xl:rtl:mr-0");
 | 
			
		||||
            sectionContent.classList.add("xl:ltr:ml-64", "xl:rtl:mr-64");
 | 
			
		||||
 | 
			
		||||
            toggleButton.querySelector("span").classList.remove("ltr:-rotate-90", "rtl:rotate-90");
 | 
			
		||||
            toggleButton.querySelector("span").classList.add("ltr:rotate-90", "rtl:-rotate-90");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        function hiddenSidebar() {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,10 +1,15 @@
 | 
			
		||||
<body>
 | 
			
		||||
    @stack('body_start')
 | 
			
		||||
 | 
			
		||||
    <div class="max-w-7xl m-auto h-screen flex flex-col sm:flex-row items-center justify-center sm:justify-between px-12 lg:px-24">
 | 
			
		||||
        <div class="flex flex-col items-start gap-y-4 mb-10 sm:mb-0 sm:-mt-24">
 | 
			
		||||
            <span class="text-lg">
 | 
			
		||||
                {{ trans('maintenance.message') }}
 | 
			
		||||
            </span>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <img src="{{ asset('public/img/empty_pages/transactions.png') }}" alt="{{ trans('maintenance.message') }}" />
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    @stack('body_end')
 | 
			
		||||
</body>
 | 
			
		||||
 
 | 
			
		||||
@@ -26,5 +26,7 @@
 | 
			
		||||
 | 
			
		||||
    @stack('js')
 | 
			
		||||
 | 
			
		||||
    @stack('scripts')
 | 
			
		||||
 | 
			
		||||
    @stack('head_end')
 | 
			
		||||
</head>
 | 
			
		||||
 
 | 
			
		||||
@@ -31,7 +31,7 @@
 | 
			
		||||
                        @if ($popular)
 | 
			
		||||
                            <div class="flex flex-col gap-4">
 | 
			
		||||
                                @foreach ($popular->data as $item)
 | 
			
		||||
                                    <div class="hover:shadow-2xl rounded-lg">
 | 
			
		||||
                                    <div class="hover:bg-purple-100 rounded-lg">
 | 
			
		||||
                                        <x-link href="{{ route('apps.app.show', $item->slug) }}" class="flex items-center p-2" override="class">
 | 
			
		||||
                                            @foreach ($item->files as $file)
 | 
			
		||||
                                                @if (($file->media_type == 'image') && ($file->pivot->zone == 'thumbnail'))
 | 
			
		||||
@@ -44,7 +44,7 @@
 | 
			
		||||
                                                    {!! $item->name !!}
 | 
			
		||||
                                                </h6>
 | 
			
		||||
 | 
			
		||||
                                                <div class="line-clamp-2">
 | 
			
		||||
                                                <div class="line-clamp-2 h-12 overflow-hidden">
 | 
			
		||||
                                                    <p class="font-thin text-xs text-left">
 | 
			
		||||
                                                        {!! $item->description !!}
 | 
			
		||||
                                                    </p>
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
<div x-show="price_type == 'monthly'" class="w-full flex space-x-6">
 | 
			
		||||
    <x-tooltip message="{{ trans('modules.hosted_on_akaunting') }}" placement="top" width="w-full">
 | 
			
		||||
        <x-link
 | 
			
		||||
            href="{{ $module->action_url }}"
 | 
			
		||||
            href="{{ $module->monthly_url }}"
 | 
			
		||||
            target="_blank"
 | 
			
		||||
            class="bg-green rounded-md text-white text-sm text-center w-full flex items-center justify-center px-3 py-2 truncate hover:bg-green-700"
 | 
			
		||||
            override="class"
 | 
			
		||||
@@ -74,7 +74,7 @@
 | 
			
		||||
                    @endif
 | 
			
		||||
                @else
 | 
			
		||||
                    <x-link
 | 
			
		||||
                        href="{{ $module->action_url }}"
 | 
			
		||||
                        href="{{ $module->yearly_url }}"
 | 
			
		||||
                        target="_blank"
 | 
			
		||||
                        class="bg-green rounded-md text-white text-sm text-center w-full py-2 truncate hover:bg-green-700"
 | 
			
		||||
                        override="class"
 | 
			
		||||
@@ -87,7 +87,7 @@
 | 
			
		||||
    @else
 | 
			
		||||
        <x-tooltip message="{{ trans('modules.hosted_on_akaunting') }}" placement="top" width="w-full">
 | 
			
		||||
            <x-link
 | 
			
		||||
                href="{{ $module->action_url }}"
 | 
			
		||||
                href="{{ $module->yearly_url }}"
 | 
			
		||||
                target="_blank"
 | 
			
		||||
                class="bg-green rounded-md text-white text-sm text-center w-full flex items-center justify-center px-3 py-2 truncate hover:bg-green-700"
 | 
			
		||||
                override="class"
 | 
			
		||||
@@ -172,7 +172,7 @@
 | 
			
		||||
    @else
 | 
			
		||||
        <x-tooltip message="{{ trans('modules.hosted_on_akaunting') }}" placement="top" width="w-full">
 | 
			
		||||
            <x-link
 | 
			
		||||
                href="{{ $module->action_url }}"
 | 
			
		||||
                href="{{ $module->lifetime_url }}"
 | 
			
		||||
                target="_blank"
 | 
			
		||||
                class="bg-green rounded-md text-white text-sm text-center w-full flex items-center justify-center px-3 py-2 truncate hover:bg-green-700"
 | 
			
		||||
                override="class"
 | 
			
		||||
 
 | 
			
		||||
@@ -2,21 +2,43 @@
 | 
			
		||||
 | 
			
		||||
@if (! empty($module->plan))
 | 
			
		||||
    <div x-show="price_type == 'monthly' || price_type == 'yearly'" class="text-center text-sm mt-3 mb--2 bg-red-100 rounded-lg p-2 cursor-default">
 | 
			
		||||
        <span class="text-sm text-red-700">
 | 
			
		||||
            {!! trans('modules.only_premium_plan') !!}
 | 
			
		||||
        <span x-show="price_type == 'monthly'" class="text-sm text-red-700">
 | 
			
		||||
            {!! trans('modules.information_on_preme', [
 | 
			
		||||
                    'period'    => trans('modules.monthly'),
 | 
			
		||||
                    'url'       => 'https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign=' . str_replace('-', '_', $module->slug) 
 | 
			
		||||
            ]) !!}
 | 
			
		||||
        </span>
 | 
			
		||||
 | 
			
		||||
        <span x-show="price_type == 'yearly'" class="text-sm text-red-700">
 | 
			
		||||
            {!! trans('modules.information_on_preme', [
 | 
			
		||||
                    'period'    => trans('modules.yearly'),
 | 
			
		||||
                    'url'       => 'https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign=' . str_replace('-', '_', $module->slug) 
 | 
			
		||||
            ]) !!}
 | 
			
		||||
        </span>
 | 
			
		||||
    </div>
 | 
			
		||||
@elseif (in_array('onprime', $module->where_to_use))
 | 
			
		||||
    <div x-show="price_type == 'monthly'" class="text-center text-sm mt-3">
 | 
			
		||||
        <span style="font-size: 12px;">
 | 
			
		||||
            <span class="text-red">*</span> 
 | 
			
		||||
            {!! trans('modules.information_monthly', ['url' => 'https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign=' . str_replace('-', '_', $module->slug)]) !!}
 | 
			
		||||
    <div x-show="price_type == 'monthly'" class="text-center text-sm mt-3 mb--2 bg-red-100 rounded-lg p-2 cursor-default">
 | 
			
		||||
        <span x-show="price_type == 'monthly'" class="text-sm text-red-700">
 | 
			
		||||
            {!! trans('modules.information_on_preme', [
 | 
			
		||||
                    'period'    => trans('modules.monthly'),
 | 
			
		||||
                    'url'       => 'https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign=' . str_replace('-', '_', $module->slug) 
 | 
			
		||||
            ]) !!}
 | 
			
		||||
        </span>
 | 
			
		||||
    </div>
 | 
			
		||||
@else
 | 
			
		||||
    <div x-show="price_type == 'monthly' || price_type == 'yearly'" class="text-center text-sm mt-3 mb--2 bg-red-100 rounded-lg p-2 cursor-default">
 | 
			
		||||
        <span class="text-sm text-red-700">
 | 
			
		||||
            {!! trans('modules.only_works_cloud') !!}
 | 
			
		||||
        <span x-show="price_type == 'monthly'" class="text-sm text-red-700">
 | 
			
		||||
            {!! trans('modules.information_on_preme', [
 | 
			
		||||
                    'period'    => trans('modules.monthly'),
 | 
			
		||||
                    'url'       => 'https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign=' . str_replace('-', '_', $module->slug) 
 | 
			
		||||
            ]) !!}
 | 
			
		||||
        </span>
 | 
			
		||||
 | 
			
		||||
        <span x-show="price_type == 'yearly'" class="text-sm text-red-700">
 | 
			
		||||
            {!! trans('modules.information_on_preme', [
 | 
			
		||||
                    'period'    => trans('modules.yearly'),
 | 
			
		||||
                    'url'       => 'https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign=' . str_replace('-', '_', $module->slug) 
 | 
			
		||||
            ]) !!}
 | 
			
		||||
        </span>
 | 
			
		||||
    </div>
 | 
			
		||||
@endif
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@
 | 
			
		||||
                </span>
 | 
			
		||||
            @else
 | 
			
		||||
                <span class="text-5xl font-bold text-purple">
 | 
			
		||||
                    {!! $module->monthly_price !!} 
 | 
			
		||||
                    {!! $module->monthly_price !!}
 | 
			
		||||
                </span>
 | 
			
		||||
            @endif
 | 
			
		||||
        </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,7 @@
 | 
			
		||||
 | 
			
		||||
                <button type="button"
 | 
			
		||||
                    x-on:click="price_type = 'lifetime'"
 | 
			
		||||
                    class="w-18 flex justify-center text-base px-2 py-1 rounded-tr-lg rounded-br-lg "
 | 
			
		||||
                    class="w-18 flex justify-center text-base px-2 py-1 rounded-tr-lg rounded-br-lg"
 | 
			
		||||
                    x-bind:class="price_type == 'lifetime' ? 'bg-black-700 text-white' : 'bg-gray-200 btn-outline-primary'"
 | 
			
		||||
                >
 | 
			
		||||
                    {{ trans('general.lifetime') }}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
@stack('footer_start')
 | 
			
		||||
    <footer class="footer">
 | 
			
		||||
    <footer class="footer container">
 | 
			
		||||
        <div class="flex flex-col sm:flex-row items-center justify-between lg:mt-20 py-7 text-sm font-light">
 | 
			
		||||
            <div>
 | 
			
		||||
                {{ trans('footer.powered') }}:
 | 
			
		||||
 
 | 
			
		||||
@@ -42,6 +42,7 @@
 | 
			
		||||
        var url = '{{ url("/" . company_id()) }}';
 | 
			
		||||
        var app_url = '{{ config("app.url") }}';
 | 
			
		||||
        var aka_currency = {!! !empty($currency) ? $currency : 'false' !!};
 | 
			
		||||
        var all_currencies = {!! !empty($currencies) ? $currencies : '[]' !!};
 | 
			
		||||
    //--></script>
 | 
			
		||||
 | 
			
		||||
    <x-script.exceptions.trackers />
 | 
			
		||||
 
 | 
			
		||||
@@ -88,7 +88,7 @@
 | 
			
		||||
                </div>
 | 
			
		||||
 | 
			
		||||
                <div class="flex ltr:ml-2 rtl:mr-2">
 | 
			
		||||
                    <span class="w-28 text-left block text-base truncate">
 | 
			
		||||
                    <span class="w-28 ltr:text-left rtl:text-right block text-base truncate">
 | 
			
		||||
                        <x-button.hover>
 | 
			
		||||
                            {{ Str::limit(setting('company.name'), 22) }}
 | 
			
		||||
                        </x-button.hover>
 | 
			
		||||
@@ -103,7 +103,7 @@
 | 
			
		||||
                    @endcan
 | 
			
		||||
                </div>
 | 
			
		||||
            </button>
 | 
			
		||||
            
 | 
			
		||||
 | 
			
		||||
            @can('read-common-companies')
 | 
			
		||||
                <div id="dropdown-menu-company" class="absolute right-0 mt-3 py-2 bg-white rounded-md shadow-xl z-20 hidden" style="left: auto; min-width: 10rem;">
 | 
			
		||||
                    @foreach($companies as $com)
 | 
			
		||||
@@ -117,7 +117,7 @@
 | 
			
		||||
 | 
			
		||||
                    @can('update-common-companies')
 | 
			
		||||
                        <x-link href="{{ route('companies.index') }}" class="h-9 leading-9 flex items-center text-sm px-2 border-t rounded-bl rounded-br group hover:bg-purple" override="class">
 | 
			
		||||
                            <div class="w-full h-full flex items-center rounded-md px-2 ">
 | 
			
		||||
                            <div class="w-full h-full flex items-center rounded-md px-2">
 | 
			
		||||
                                <span class="material-icons-outlined text-purple text-xl group-hover:text-white">settings</span>
 | 
			
		||||
                                <span class="ltr:pl-2 rtl:pr-2 text-purple text-xs truncate group-hover:text-white">
 | 
			
		||||
                                    {{ trans('general.title.manage', ['type' => trans_choice('general.companies', 2)]) }}
 | 
			
		||||
@@ -182,3 +182,4 @@
 | 
			
		||||
<x-loading.menu />
 | 
			
		||||
 | 
			
		||||
@stack('menu_end')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -54,6 +54,7 @@
 | 
			
		||||
        function contentTransitionLeft() {
 | 
			
		||||
            sectionContent.classList.add("xl:ltr:ml-0", "xl:rtl:mr-0");
 | 
			
		||||
            sectionContent.classList.remove("xl:ltr:ml-64", "xl:rtl:mr-64");
 | 
			
		||||
            toggleButton.querySelector("span").classList.remove("ltr:rotate-90", "rtl:-rotate-90");
 | 
			
		||||
            toggleButton.querySelector("span").classList.add("ltr:-rotate-90", "rtl:rotate-90");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -62,6 +63,7 @@
 | 
			
		||||
            sectionContent.classList.remove("xl:ltr:ml-0", "xl:rtl:mr-0");
 | 
			
		||||
            sectionContent.classList.add("xl:ltr:ml-64", "xl:rtl:mr-64");
 | 
			
		||||
            toggleButton.querySelector("span").classList.remove("ltr:-rotate-90", "rtl:rotate-90");
 | 
			
		||||
            toggleButton.querySelector("span").classList.add("ltr:rotate-90", "rtl:-rotate-90");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        function hiddenSidebar() {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
@stack('footer_start')
 | 
			
		||||
 | 
			
		||||
    <footer class="footer">
 | 
			
		||||
    <footer class="footer container">
 | 
			
		||||
        <div class="flex flex-col sm:flex-row items-center justify-between lg:mt-20 py-7 text-sm font-light">
 | 
			
		||||
            <div>
 | 
			
		||||
                {{ trans('footer.powered') }}:
 | 
			
		||||
 
 | 
			
		||||
@@ -42,6 +42,7 @@
 | 
			
		||||
        var url = '{{ url("/" . company_id()) }}';
 | 
			
		||||
        var app_url = '{{ config("app.url") }}';
 | 
			
		||||
        var aka_currency = {!! !empty($currency) ? $currency : 'false' !!};
 | 
			
		||||
        var all_currencies = {!! !empty($currencies) ? $currencies : '[]' !!};
 | 
			
		||||
    //--></script>
 | 
			
		||||
 | 
			
		||||
    <x-script.exceptions.trackers />
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,7 @@
 | 
			
		||||
 | 
			
		||||
<!-- Tile for Win8 -->
 | 
			
		||||
<meta name="msapplication-TileColor" content="#ffffff">
 | 
			
		||||
<meta name="msapplication-TileImage" content="{{ asset('public/img/pwa/akaunting-512x512.png') }}">
 | 
			
		||||
<meta name="msapplication-TileImage" content="{{ asset('public/img/pwa/icon-512x512.png') }}">
 | 
			
		||||
 | 
			
		||||
<script type="text/javascript">
 | 
			
		||||
    if ('serviceWorker' in navigator) {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
@stack('footer_start')
 | 
			
		||||
 | 
			
		||||
    <footer class="footer">
 | 
			
		||||
    <footer class="footer container">
 | 
			
		||||
        <div class="flex flex-col sm:flex-row items-center justify-between lg:mt-20 py-7 text-sm font-light">
 | 
			
		||||
            <div>
 | 
			
		||||
                {{ trans('footer.powered') }}:
 | 
			
		||||
 
 | 
			
		||||
@@ -42,6 +42,7 @@
 | 
			
		||||
        var url = '{{ url("/" . company_id()) }}';
 | 
			
		||||
        var app_url = '{{ config("app.url") }}';
 | 
			
		||||
        var aka_currency = {!! !empty($currency) ? $currency : 'false' !!};
 | 
			
		||||
        var all_currencies = {!! !empty($currencies) ? $currencies : '[]' !!};
 | 
			
		||||
    //--></script>
 | 
			
		||||
 | 
			
		||||
    <x-script.exceptions.trackers />
 | 
			
		||||
 
 | 
			
		||||
@@ -1,2 +1,2 @@
 | 
			
		||||
<div class="w-full h-full absolute left-0 right-0 top-0 bottom-0 bg-cover bg-no-repeat opacity-20"
 | 
			
		||||
<div class="w-full h-full absolute inset-0 bg-cover bg-no-repeat opacity-20"
 | 
			
		||||
    style="background-image:url({{ asset('public/img/dashboard.png') }});"></div>
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@
 | 
			
		||||
        var url = '{{ url("/" . company_id()) }}';
 | 
			
		||||
        var app_url = '{{ config("app.url") }}';
 | 
			
		||||
        var aka_currency = {!! !empty($currency) ? $currency : 'false' !!};
 | 
			
		||||
        var all_currencies = {!! !empty($currencies) ? $currencies : '[]' !!};
 | 
			
		||||
    //--></script>
 | 
			
		||||
 | 
			
		||||
    <x-script.exceptions.trackers />
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
    @class([
 | 
			
		||||
        $color,
 | 
			
		||||
        $groupHover ? 'group-hover:bg-full-2' : 'hover:bg-full-2',
 | 
			
		||||
        'bg-no-repeat bg-0-2 bg-0-full bg-gradient-to-b from-transparent transition-backgroundSize'
 | 
			
		||||
        'bg-no-repeat bg-0-2 bg-0-full bg-gradient-to-b from-transparent transition-backgroundSize cursor-pointer'
 | 
			
		||||
    ])
 | 
			
		||||
>
 | 
			
		||||
    {!! $slot !!}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								resources/views/components/payment_method.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								resources/views/components/payment_method.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
@if (! empty($payment_method))
 | 
			
		||||
    {!! $payment_method !!}
 | 
			
		||||
@else
 | 
			
		||||
    <x-empty-data />
 | 
			
		||||
@endif
 | 
			
		||||
@@ -1,3 +1,3 @@
 | 
			
		||||
<div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4 mt-4 mb-4" role="alert">
 | 
			
		||||
  <p>{{ trans('maintenance.read_only') }}</p>
 | 
			
		||||
    <p>{{ trans('maintenance.read_only') }}</p>
 | 
			
		||||
</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -4,8 +4,8 @@
 | 
			
		||||
    <tr class="px-3">
 | 
			
		||||
        <th class="{{ $class->column_name_width }} text-uppercase text-left">{{ trans_choice('general.totals', 1) }}</th>
 | 
			
		||||
        @foreach($class->footer_totals[$table_key] as $total)
 | 
			
		||||
            <th class="{{ $class->column_value_width }} text-right px-0">{{ $class->has_money ? money($total, default_currency(), true) : $total }}</th>
 | 
			
		||||
            <th class="{{ $class->column_value_width }} text-right px-0">{{ $class->has_money ? money($total) : $total }}</th>
 | 
			
		||||
        @endforeach
 | 
			
		||||
        <th class="{{ $class->column_name_width }} text-right pl-0 pr-4">{{ $class->has_money ? money($grand_total, default_currency(), true) : $grand_total }}</th>
 | 
			
		||||
        <th class="{{ $class->column_name_width }} text-right pl-0 pr-4">{{ $class->has_money ? money($grand_total) : $grand_total }}</th>
 | 
			
		||||
    </tr>
 | 
			
		||||
</tfoot>
 | 
			
		||||
 
 | 
			
		||||
@@ -14,9 +14,9 @@
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @foreach($rows as $row)
 | 
			
		||||
            <td class="{{ $class->column_value_width }} py-2 ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs">{{ $class->has_money ? money($row, default_currency(), true) : $row }}</td>
 | 
			
		||||
            <td class="{{ $class->column_value_width }} py-2 ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs">{{ $class->has_money ? money($row) : $row }}</td>
 | 
			
		||||
        @endforeach
 | 
			
		||||
        <td class="{{ $class->column_name_width }} py-2 ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs uppercase">{{ $class->has_money ? money($row_total, default_currency(), true) : $row }}</td>
 | 
			
		||||
        <td class="{{ $class->column_name_width }} py-2 ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs uppercase">{{ $class->has_money ? money($row_total) : $row }}</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    @endif
 | 
			
		||||
@endif
 | 
			
		||||
@@ -57,9 +57,9 @@
 | 
			
		||||
        </div>
 | 
			
		||||
        </td>
 | 
			
		||||
        @foreach($parent_row_values as $row)
 | 
			
		||||
            <td class="{{ $class->column_value_width }} py-2 ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs">{{ $class->has_money ? money($row, default_currency(), true) : $row }}</td>
 | 
			
		||||
            <td class="{{ $class->column_value_width }} py-2 ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs">{{ $class->has_money ? money($row) : $row }}</td>
 | 
			
		||||
        @endforeach
 | 
			
		||||
        <td class="{{ $class->column_name_width }} py-2 ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs uppercase">{{ $class->has_money ? money($row_total, default_currency(), true) : $row }}</td>
 | 
			
		||||
        <td class="{{ $class->column_name_width }} py-2 ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs uppercase">{{ $class->has_money ? money($row_total) : $row }}</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    @endif
 | 
			
		||||
 | 
			
		||||
@@ -69,9 +69,9 @@
 | 
			
		||||
    <tr class="hover:bg-gray-100 border-b collapse-sub collapse-sub-report" data-collapse="child-{{ $id }}">
 | 
			
		||||
        <td class="{{ $class->column_name_width }} py-2 text-left text-black-400" style="padding-left: {{ ($tree_level + 1) * 20 }}px;" title="{{ $class->row_names[$table_key][$id] }}">{{ $class->row_names[$table_key][$id] }}</td>
 | 
			
		||||
        @foreach($rows as $row)
 | 
			
		||||
            <td class="{{ $class->column_value_width }} py-2 ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs">{{ $class->has_money ? money($row, default_currency(), true) : $row }}</td>
 | 
			
		||||
            <td class="{{ $class->column_value_width }} py-2 ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs">{{ $class->has_money ? money($row) : $row }}</td>
 | 
			
		||||
        @endforeach
 | 
			
		||||
        <td class="{{ $class->column_name_width }} py-2 ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs uppercase">{{ $class->has_money ? money($row_total, default_currency(), true) : $row }}</td>
 | 
			
		||||
        <td class="{{ $class->column_name_width }} py-2 ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs uppercase">{{ $class->has_money ? money($row_total) : $row }}</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    @endif
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,12 +1,12 @@
 | 
			
		||||
<div>
 | 
			
		||||
    <div 
 | 
			
		||||
    <div
 | 
			
		||||
        @class([
 | 
			
		||||
            'd-flex align-items-center justify-content-between rp-border-bottom-1 text' => $is_print,
 | 
			
		||||
            'flex items-center justify-between text-xl text-black-400 border-b pb-2' => !$is_print
 | 
			
		||||
        ])
 | 
			
		||||
        >
 | 
			
		||||
            <h2>{{ $table_name }}</h2>
 | 
			
		||||
            <span>{{ $class->has_money ? money($grand_total, default_currency(), true) : $grand_total }}</span>
 | 
			
		||||
            <span>{{ $class->has_money ? money($grand_total) : $grand_total }}</span>
 | 
			
		||||
    </div>
 | 
			
		||||
    @if (!empty($class->row_values[$table_key]))
 | 
			
		||||
        <ul
 | 
			
		||||
 
 | 
			
		||||
@@ -28,7 +28,7 @@
 | 
			
		||||
                @endif
 | 
			
		||||
                    <span>{{ $class->row_names[$table_key][$id] }}</span>
 | 
			
		||||
                </div>
 | 
			
		||||
                <span>{{ $class->has_money ? money($row_total, default_currency(), true) : $row_total }}</span>
 | 
			
		||||
                <span>{{ $class->has_money ? money($row_total) : $row_total }}</span>
 | 
			
		||||
            </div>
 | 
			
		||||
        </li>
 | 
			
		||||
    @endif
 | 
			
		||||
@@ -73,7 +73,7 @@
 | 
			
		||||
                        @endif
 | 
			
		||||
                    @endif
 | 
			
		||||
                </div>
 | 
			
		||||
                <span>{{ $class->has_money ? money($row_total, default_currency(), true) : $row_total }}</span>
 | 
			
		||||
                <span>{{ $class->has_money ? money($row_total) : $row_total }}</span>
 | 
			
		||||
            </div>
 | 
			
		||||
        </li>
 | 
			
		||||
    @endif
 | 
			
		||||
@@ -91,7 +91,7 @@
 | 
			
		||||
            <div style="display:flex; align-items: center; padding-left: {{ ($tree_level + 1) * 20 }}px;">
 | 
			
		||||
                <span>{{ $class->row_names[$table_key][$id] }}</span>
 | 
			
		||||
            </div>
 | 
			
		||||
            <span>{{ $class->has_money ? money($row_total, default_currency(), true) : $row_total }}</span>
 | 
			
		||||
            <span>{{ $class->has_money ? money($row_total) : $row_total }}</span>
 | 
			
		||||
        </div>
 | 
			
		||||
    </li>
 | 
			
		||||
    @endif
 | 
			
		||||
 
 | 
			
		||||
@@ -19,70 +19,70 @@
 | 
			
		||||
    <div class="w-full my-10 m-auto flex flex-col px-2 sm:px-0 max-w-md">
 | 
			
		||||
        <div class="p-2 bg-body rounded-lg">
 | 
			
		||||
            @foreach ($actions as $action)
 | 
			
		||||
                @if (! empty($action['permission']))
 | 
			
		||||
                    @can($action['permission'])
 | 
			
		||||
                @endif
 | 
			
		||||
 | 
			
		||||
                @if ($count_buttons > 3 && $loop->count > 4)
 | 
			
		||||
                    @break
 | 
			
		||||
                @endif
 | 
			
		||||
 | 
			
		||||
                @php
 | 
			
		||||
                    $type = ! empty($action['type']) ? $action['type'] : 'link';
 | 
			
		||||
                @endphp
 | 
			
		||||
                @if (isset($action['type']) && $action['type'] == 'divider')
 | 
			
		||||
                    @continue
 | 
			
		||||
                @endif
 | 
			
		||||
 | 
			
		||||
                @switch($type)
 | 
			
		||||
                    @case('button')
 | 
			
		||||
                        <button type="button" class="w-full flex items-center text-purple px-2 h-9 leading-9" {!! $action['attributes'] ?? null !!}>
 | 
			
		||||
                            <div class="w-full h-full flex items-center rounded-md px-2 text-sm hover:bg-lilac-100">
 | 
			
		||||
                                <span class="material-icons-outlined text-purple text-lg ltr:mr-2 rtl:ml-2 pointer-events-none">
 | 
			
		||||
                                    {{ $action['icon'] }}
 | 
			
		||||
                                </span>
 | 
			
		||||
                @if (
 | 
			
		||||
                    empty($action['permission'])
 | 
			
		||||
                    || (! empty($action['permission']) && user()->can($action['permission']))
 | 
			
		||||
                )
 | 
			
		||||
                    @php
 | 
			
		||||
                        $type = ! empty($action['type']) ? $action['type'] : 'link';
 | 
			
		||||
                    @endphp
 | 
			
		||||
 | 
			
		||||
                                {{ $action['title'] }}
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </button>
 | 
			
		||||
                        @break
 | 
			
		||||
                    @switch($type)
 | 
			
		||||
                        @case('button')
 | 
			
		||||
                            <button type="button" class="w-full flex items-center text-purple px-2 h-9 leading-9" {!! $action['attributes'] ?? null !!}>
 | 
			
		||||
                                <div class="w-full h-full flex items-center rounded-md px-2 text-sm hover:bg-lilac-100">
 | 
			
		||||
                                    <span class="material-icons-outlined text-purple text-lg ltr:mr-2 rtl:ml-2 pointer-events-none">
 | 
			
		||||
                                        {{ $action['icon'] }}
 | 
			
		||||
                                    </span>
 | 
			
		||||
 | 
			
		||||
                    @case('delete')
 | 
			
		||||
                        @php
 | 
			
		||||
                            $title = $action['title'] ?? null;
 | 
			
		||||
                            $modelId = ! empty($action['model-id']) ? $action['model-id'] : 'id';
 | 
			
		||||
                            $modelName = ! empty($action['model-name']) ? $action['model-name'] : 'name';
 | 
			
		||||
                        @endphp
 | 
			
		||||
                                    {{ $action['title'] }}
 | 
			
		||||
                                </div>
 | 
			
		||||
                            </button>
 | 
			
		||||
                            @break
 | 
			
		||||
 | 
			
		||||
                        <x-delete-button :model="$action['model']" :route="$action['route']" :text="$title" :model-id="$modelId" :model-name="$modelName" />
 | 
			
		||||
                        @break
 | 
			
		||||
                        @case('delete')
 | 
			
		||||
                            @php
 | 
			
		||||
                                $title = $action['title'] ?? null;
 | 
			
		||||
                                $modelId = ! empty($action['model-id']) ? $action['model-id'] : 'id';
 | 
			
		||||
                                $modelName = ! empty($action['model-name']) ? $action['model-name'] : 'name';
 | 
			
		||||
                            @endphp
 | 
			
		||||
 | 
			
		||||
                    @default
 | 
			
		||||
                        <a href="{{ $action['url'] }}" class="w-full flex items-center text-purple px-2 h-9 leading-9" {!! $action['attributes'] ?? null !!}>
 | 
			
		||||
                            <div class="w-full h-full flex items-center rounded-md px-2 text-sm hover:bg-lilac-100">
 | 
			
		||||
                                <span class="material-icons-outlined text-purple text-lg ltr:mr-2 rtl:ml-2 pointer-events-none">
 | 
			
		||||
                                    {{ $action['icon'] }}
 | 
			
		||||
                                </span>
 | 
			
		||||
                            <x-delete-button :model="$action['model']" :route="$action['route']" :text="$title" :model-id="$modelId" :model-name="$modelName" />
 | 
			
		||||
                            @break
 | 
			
		||||
 | 
			
		||||
                                {{ $action['title'] }}
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </a>
 | 
			
		||||
                @endswitch
 | 
			
		||||
                        @default
 | 
			
		||||
                            <a href="{{ $action['url'] }}" class="w-full flex items-center text-purple px-2 h-9 leading-9" {!! $action['attributes'] ?? null !!}>
 | 
			
		||||
                                <div class="w-full h-full flex items-center rounded-md px-2 text-sm hover:bg-lilac-100">
 | 
			
		||||
                                    <span class="material-icons-outlined text-purple text-lg ltr:mr-2 rtl:ml-2 pointer-events-none">
 | 
			
		||||
                                        {{ $action['icon'] }}
 | 
			
		||||
                                    </span>
 | 
			
		||||
 | 
			
		||||
                @php
 | 
			
		||||
                    array_shift($actions);
 | 
			
		||||
                                    {{ $action['title'] }}
 | 
			
		||||
                                </div>
 | 
			
		||||
                            </a>
 | 
			
		||||
                    @endswitch
 | 
			
		||||
 | 
			
		||||
                    $count_buttons++;
 | 
			
		||||
                @endphp
 | 
			
		||||
                    @php
 | 
			
		||||
                        array_shift($actions);
 | 
			
		||||
 | 
			
		||||
                @if (! empty($action['permission']))
 | 
			
		||||
                    @endcan
 | 
			
		||||
                        $count_buttons++;
 | 
			
		||||
                    @endphp
 | 
			
		||||
                @endif
 | 
			
		||||
            @endforeach
 | 
			
		||||
 | 
			
		||||
            @foreach ($actions as $action)
 | 
			
		||||
                @if (! empty($action['permission']))
 | 
			
		||||
                    @can($action['permission'])
 | 
			
		||||
                    @php $more_actions[] = $action; @endphp
 | 
			
		||||
                    @endcan
 | 
			
		||||
                @else
 | 
			
		||||
                @if (
 | 
			
		||||
                    empty($action['permission'])
 | 
			
		||||
                    || (! empty($action['permission']) && user()->can($action['permission']))
 | 
			
		||||
                )
 | 
			
		||||
                    @php $more_actions[] = $action; @endphp
 | 
			
		||||
                @endif
 | 
			
		||||
            @endforeach
 | 
			
		||||
@@ -147,4 +147,4 @@
 | 
			
		||||
            @endif
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -8,73 +8,73 @@
 | 
			
		||||
@else
 | 
			
		||||
    <div class="absolute ltr:right-12 rtl:left-12 -top-4 hidden items-center group-hover:flex">
 | 
			
		||||
        @foreach ($actions as $action)
 | 
			
		||||
            @if (! empty($action['permission']))
 | 
			
		||||
                @can($action['permission'])
 | 
			
		||||
            @endif
 | 
			
		||||
 | 
			
		||||
            @if ($count_buttons > 3 && $loop->count > 4)
 | 
			
		||||
                @break
 | 
			
		||||
            @endif
 | 
			
		||||
 | 
			
		||||
            @php
 | 
			
		||||
                $type = ! empty($action['type']) ? $action['type'] : 'link';
 | 
			
		||||
            @endphp
 | 
			
		||||
            @if (isset($action['type']) && $action['type'] == 'divider')
 | 
			
		||||
                @continue
 | 
			
		||||
            @endif
 | 
			
		||||
 | 
			
		||||
            @switch($type)
 | 
			
		||||
                @case('button')
 | 
			
		||||
                    <button type="button" class="relative bg-white hover:bg-gray-100 border py-0.5 px-1 cursor-pointer index-actions group/tooltip" {!! $action['attributes'] ?? null !!}>
 | 
			
		||||
                        <span class="material-icons-outlined text-purple text-lg pointer-events-none">
 | 
			
		||||
                            {{ $action['icon'] }}
 | 
			
		||||
                        </span>
 | 
			
		||||
            @if (
 | 
			
		||||
                empty($action['permission'])
 | 
			
		||||
                || (! empty($action['permission']) && user()->can($action['permission']))
 | 
			
		||||
            )
 | 
			
		||||
                @php
 | 
			
		||||
                    $type = ! empty($action['type']) ? $action['type'] : 'link';
 | 
			
		||||
                @endphp
 | 
			
		||||
 | 
			
		||||
                        <div class="inline-block absolute invisible z-20 py-1 px-2 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 shadow-sm whitespace-nowrap opacity-0 -top-10 -left-2 group-hover/tooltip:opacity-100 group-hover/tooltip:visible" data-tooltip-placement="top">
 | 
			
		||||
                            <span>{{ $action['title'] }}</span>
 | 
			
		||||
                            <div class="absolute w-2 h-2 -bottom-1 before:content-[' '] before:absolute before:w-2 before:h-2 before:bg-white before:border-gray-200 before:transform before:rotate-45 before:border before:border-t-0 before:border-l-0" data-popper-arrow></div>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </button>
 | 
			
		||||
                    @break
 | 
			
		||||
                @switch($type)
 | 
			
		||||
                    @case('button')
 | 
			
		||||
                        <button type="button" class="relative bg-white hover:bg-gray-100 border py-0.5 px-1 cursor-pointer index-actions group/tooltip" {!! $action['attributes'] ?? null !!}>
 | 
			
		||||
                            <span class="material-icons-outlined text-purple text-lg pointer-events-none">
 | 
			
		||||
                                {{ $action['icon'] }}
 | 
			
		||||
                            </span>
 | 
			
		||||
 | 
			
		||||
                @case('delete')
 | 
			
		||||
                    @php
 | 
			
		||||
                        $text = $action['text'] ?? null;
 | 
			
		||||
                        $title = $action['title'] ?? null;
 | 
			
		||||
                        $modelId = ! empty($action['model-id']) ? $action['model-id'] : 'id';
 | 
			
		||||
                        $modelName = ! empty($action['model-name']) ? $action['model-name'] : 'name';
 | 
			
		||||
                    @endphp
 | 
			
		||||
                            <div class="inline-block absolute invisible z-20 py-1 px-2 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 shadow-sm whitespace-nowrap opacity-0 -top-10 -left-2 group-hover/tooltip:opacity-100 group-hover/tooltip:visible" data-tooltip-placement="top">
 | 
			
		||||
                                <span>{{ $action['title'] }}</span>
 | 
			
		||||
                                <div class="absolute w-2 h-2 -bottom-1 before:content-[' '] before:absolute before:w-2 before:h-2 before:bg-white before:border-gray-200 before:transform before:rotate-45 before:border before:border-t-0 before:border-l-0" data-popper-arrow></div>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </button>
 | 
			
		||||
                        @break
 | 
			
		||||
 | 
			
		||||
                    <x-delete-button :model="$action['model']" :route="$action['route']" :title="$title" :text="$text" :model-id="$modelId" :model-name="$modelName" />
 | 
			
		||||
                    @break
 | 
			
		||||
                    @case('delete')
 | 
			
		||||
                        @php
 | 
			
		||||
                            $text = $action['text'] ?? null;
 | 
			
		||||
                            $title = $action['title'] ?? null;
 | 
			
		||||
                            $modelId = ! empty($action['model-id']) ? $action['model-id'] : 'id';
 | 
			
		||||
                            $modelName = ! empty($action['model-name']) ? $action['model-name'] : 'name';
 | 
			
		||||
                        @endphp
 | 
			
		||||
 | 
			
		||||
                @default
 | 
			
		||||
                    <a href="{{ $action['url'] }}" class="relative bg-white hover:bg-gray-100 border py-0.5 px-1 cursor-pointer index-actions group/tooltip" {!! $action['attributes'] ?? null !!}>
 | 
			
		||||
                        <span class="material-icons-outlined text-purple text-lg pointer-events-none">
 | 
			
		||||
                            {{ $action['icon'] }}
 | 
			
		||||
                        </span>
 | 
			
		||||
                        <x-delete-button :model="$action['model']" :route="$action['route']" :title="$title" :text="$text" :model-id="$modelId" :model-name="$modelName" />
 | 
			
		||||
                        @break
 | 
			
		||||
 | 
			
		||||
                        <div class="inline-block absolute invisible z-20 py-1 px-2 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 shadow-sm whitespace-nowrap opacity-0 -top-10 -left-2 group-hover/tooltip:opacity-100 group-hover/tooltip:visible" data-tooltip-placement="top">
 | 
			
		||||
                            <span>{{ $action['title'] }}</span>
 | 
			
		||||
                            <div class="absolute w-2 h-2 -bottom-1 before:content-[' '] before:absolute before:w-2 before:h-2 before:bg-white before:border-gray-200 before:transform before:rotate-45 before:border before:border-t-0 before:border-l-0" data-popper-arrow></div>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </a>
 | 
			
		||||
            @endswitch
 | 
			
		||||
                    @default
 | 
			
		||||
                        <a href="{{ $action['url'] }}" x-data="{ clicked: false }" x-on:click="clicked = true;" x-bind:class="{ 'pointer-events-none': clicked }" class="relative bg-white hover:bg-gray-100 border py-0.5 px-1 cursor-pointer index-actions group/tooltip" {!! $action['attributes'] ?? null !!}>
 | 
			
		||||
                            <span class="material-icons-outlined text-purple text-lg pointer-events-none">
 | 
			
		||||
                                {{ $action['icon'] }}
 | 
			
		||||
                            </span>
 | 
			
		||||
 | 
			
		||||
            @php
 | 
			
		||||
                array_shift($actions);
 | 
			
		||||
                            <div class="inline-block absolute invisible z-20 py-1 px-2 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 shadow-sm whitespace-nowrap opacity-0 -top-10 -left-2 group-hover/tooltip:opacity-100 group-hover/tooltip:visible" data-tooltip-placement="top">
 | 
			
		||||
                                <span>{{ $action['title'] }}</span>
 | 
			
		||||
                                <div class="absolute w-2 h-2 -bottom-1 before:content-[' '] before:absolute before:w-2 before:h-2 before:bg-white before:border-gray-200 before:transform before:rotate-45 before:border before:border-t-0 before:border-l-0" data-popper-arrow></div>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </a>
 | 
			
		||||
                @endswitch
 | 
			
		||||
 | 
			
		||||
                $count_buttons++;
 | 
			
		||||
            @endphp
 | 
			
		||||
                @php
 | 
			
		||||
                    array_shift($actions);
 | 
			
		||||
 | 
			
		||||
            @if (! empty($action['permission']))
 | 
			
		||||
                @endcan
 | 
			
		||||
                    $count_buttons++;
 | 
			
		||||
                @endphp
 | 
			
		||||
            @endif
 | 
			
		||||
        @endforeach
 | 
			
		||||
 | 
			
		||||
        @foreach ($actions as $action)
 | 
			
		||||
            @if (! empty($action['permission']))
 | 
			
		||||
                @can($action['permission'])
 | 
			
		||||
                @php $more_actions[] = $action; @endphp
 | 
			
		||||
                @endcan
 | 
			
		||||
            @else
 | 
			
		||||
            @if (
 | 
			
		||||
                empty($action['permission'])
 | 
			
		||||
                || (! empty($action['permission']) && user()->can($action['permission']))
 | 
			
		||||
            )
 | 
			
		||||
                @php $more_actions[] = $action; @endphp
 | 
			
		||||
            @endif
 | 
			
		||||
        @endforeach
 | 
			
		||||
@@ -127,7 +127,7 @@
 | 
			
		||||
                                @php $divider = false; @endphp
 | 
			
		||||
 | 
			
		||||
                                <div class="w-full flex items-center text-purple px-2 h-9 leading-9 whitespace-nowrap" {!! $action['attributes'] ?? null !!}>
 | 
			
		||||
                                    <a href="{{ $action['url'] }}" class="w-full h-full flex items-center rounded-md px-2 text-sm hover:bg-lilac-100">
 | 
			
		||||
                                    <a href="{{ $action['url'] }}" x-data="{ clicked: false }" x-on:click="clicked = true;" x-bind:class="{ 'pointer-events-none': clicked }" class="w-full h-full flex items-center rounded-md px-2 text-sm hover:bg-lilac-100">
 | 
			
		||||
                                        {{ $action['title'] }}
 | 
			
		||||
                                    </a>
 | 
			
		||||
                                </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,14 @@
 | 
			
		||||
    }
 | 
			
		||||
@endphp
 | 
			
		||||
 | 
			
		||||
<div data-swiper="{{ $slides }}" x-data="{ active: window.location.hash.split('#')[1] == undefined ? '{{ $active }}' : window.location.hash.split('#')[1] }">
 | 
			
		||||
<div
 | 
			
		||||
    data-swiper="{{ $slides }}"
 | 
			
		||||
    @if(! $attributes->has('ignore-hash'))
 | 
			
		||||
        x-data="{ active: window.location.hash.split('#')[1] == undefined ? '{{ $active }}' : window.location.hash.split('#')[1] }"
 | 
			
		||||
    @else
 | 
			
		||||
        x-data="{ active: '{{ $active }}' }"
 | 
			
		||||
    @endif
 | 
			
		||||
>
 | 
			
		||||
    <div data-tabs-swiper>
 | 
			
		||||
        <ul data-tabs-swiper-wrapper {{ ((! $attributes->has('override')) || ($attributes->has('override') && ! in_array('class', explode(',', $attributes->get('override'))))) ? $attributes->merge(['class' => 'inline-flex overflow-x-scroll large-overflow-unset']) : $attributes }}>
 | 
			
		||||
            {!! $navs !!}
 | 
			
		||||
 
 | 
			
		||||
@@ -132,7 +132,7 @@
 | 
			
		||||
                </td>
 | 
			
		||||
 | 
			
		||||
                <td valign="top" class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
 | 
			
		||||
                    {{ !empty($payment_methods[$transaction->payment_method]) ? $payment_methods[$transaction->payment_method] : trans('general.na') }}
 | 
			
		||||
                    <x-payment-method :method="$transaction->payment_method" />
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
        @endif
 | 
			
		||||
@@ -354,12 +354,12 @@
 | 
			
		||||
 | 
			
		||||
                        <td class="price text-alignment-right text-right" style="color:#424242; font-size:12px; padding-right:0;">
 | 
			
		||||
                            @if (! $hideRelatedDocumentAmount)
 | 
			
		||||
                                <x-money :amount="$transaction->document->amount" :currency="$transaction->document->currency_code" convert /> <br />
 | 
			
		||||
                                <x-money :amount="$transaction->document->amount" :currency="$transaction->document->currency_code" /> <br />
 | 
			
		||||
                            @endif
 | 
			
		||||
 | 
			
		||||
                            @if (! $hideRelatedAmount)
 | 
			
		||||
                                <span style="color: #6E6E6E">
 | 
			
		||||
                                    <x-money :amount="$transaction->amount" :currency="$transaction->currency_code" convert />
 | 
			
		||||
                                    <x-money :amount="$transaction->amount" :currency="$transaction->currency_code" />
 | 
			
		||||
                                </span>
 | 
			
		||||
                            @endif
 | 
			
		||||
                        </td>
 | 
			
		||||
@@ -379,7 +379,7 @@
 | 
			
		||||
                                <span class="ml-2 font-semibold">
 | 
			
		||||
                                    {{ trans($textAmount) }}
 | 
			
		||||
                                </span>
 | 
			
		||||
                                <x-money :amount="$transaction->amount" :currency="$transaction->currency_code" convert />
 | 
			
		||||
                                <x-money :amount="$transaction->amount" :currency="$transaction->currency_code" />
 | 
			
		||||
                            </td>
 | 
			
		||||
                        </tr>
 | 
			
		||||
                    </table>
 | 
			
		||||
 
 | 
			
		||||
@@ -214,11 +214,7 @@
 | 
			
		||||
            </td>
 | 
			
		||||
 | 
			
		||||
            <td valign="top" valign="top" class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
 | 
			
		||||
                @if (! empty($payment_methods[$transfer->expense_transaction->payment_method]))
 | 
			
		||||
                    {!! $payment_methods[$transfer->expense_transaction->payment_method] !!}
 | 
			
		||||
                @else
 | 
			
		||||
                    <x-empty-data />
 | 
			
		||||
                @endif
 | 
			
		||||
                <x-payment-method :method="$transfer->expense_transaction->payment_method" />
 | 
			
		||||
            </td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        @stack('payment_method_input_end')
 | 
			
		||||
@@ -257,7 +253,7 @@
 | 
			
		||||
    </table>
 | 
			
		||||
    @stack('details_end')
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    <table style="text-align: right; margin-top:55px;">
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td valign="center" style="width:80%; display:block; float:right; background-color: #55588B; -webkit-print-color-adjust: exact; color:#ffffff; border-radius: 5px;">
 | 
			
		||||
@@ -268,7 +264,7 @@
 | 
			
		||||
                                {{ trans('general.amount') }}
 | 
			
		||||
                            </span>
 | 
			
		||||
 | 
			
		||||
                            <x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" convert />
 | 
			
		||||
                            <x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" />
 | 
			
		||||
                        </td>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                </table>
 | 
			
		||||
 
 | 
			
		||||
@@ -30,11 +30,7 @@
 | 
			
		||||
            </td>
 | 
			
		||||
 | 
			
		||||
            <td valign="top" style="width:70%; margin: 0px; padding: 8px 0 8px 0; font-size: 12px; border-bottom:1px solid #adadad;">
 | 
			
		||||
                @if (! empty($payment_methods[$transfer->expense_transaction->payment_method]))
 | 
			
		||||
                    {!! $payment_methods[$transfer->expense_transaction->payment_method] !!}
 | 
			
		||||
                @else
 | 
			
		||||
                    <x-empty-data />
 | 
			
		||||
                @endif
 | 
			
		||||
                <x-payment-method :method="$transfer->expense_transaction->payment_method" />
 | 
			
		||||
            </td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        @stack('payment_method_input_end')
 | 
			
		||||
@@ -263,7 +259,7 @@
 | 
			
		||||
                                {{ trans('general.amount') }}
 | 
			
		||||
                            </span>
 | 
			
		||||
 | 
			
		||||
                            <x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" convert />
 | 
			
		||||
                            <x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" />
 | 
			
		||||
                        </td>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                </table>
 | 
			
		||||
 
 | 
			
		||||
@@ -224,11 +224,7 @@
 | 
			
		||||
            </td>
 | 
			
		||||
 | 
			
		||||
            <td valign="top" style="width:70%; margin: 0px; padding: 0; font-size: 12px; border-bottom:1px solid; line-height: 24px;">
 | 
			
		||||
                @if (! empty($payment_methods[$transfer->expense_transaction->payment_method]))
 | 
			
		||||
                    {!! $payment_methods[$transfer->expense_transaction->payment_method] !!}
 | 
			
		||||
                @else
 | 
			
		||||
                    <x-empty-data />
 | 
			
		||||
                @endif
 | 
			
		||||
                <x-payment-method :method="$transfer->expense_transaction->payment_method" />
 | 
			
		||||
            </td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        @stack('payment_method_input_end')
 | 
			
		||||
@@ -277,7 +273,7 @@
 | 
			
		||||
                                {{ trans('general.amount') }}
 | 
			
		||||
                            </span>
 | 
			
		||||
 | 
			
		||||
                            <x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" convert />
 | 
			
		||||
                            <x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" />
 | 
			
		||||
                        </td>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                </table>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								resources/views/components/update-alert.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								resources/views/components/update-alert.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
@foreach ($alerts as $type => $messages)
 | 
			
		||||
    @foreach ($messages as $message)
 | 
			
		||||
        <x-alert :type="$type" :message="$message" />
 | 
			
		||||
    @endforeach
 | 
			
		||||
@endforeach
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
        </span>
 | 
			
		||||
 | 
			
		||||
        <span class="text-xl text-black my-3">
 | 
			
		||||
            <x-money :amount="$payment->amount" :currency="$payment->currency_code" convert />
 | 
			
		||||
            <x-money :amount="$payment->amount" :currency="$payment->currency_code" />
 | 
			
		||||
        </span>
 | 
			
		||||
    @else
 | 
			
		||||
        <span class="text-xs">
 | 
			
		||||
 
 | 
			
		||||
@@ -10,9 +10,9 @@
 | 
			
		||||
 | 
			
		||||
        <div class="flex flex-col items-start my-3">
 | 
			
		||||
            <span class="text-xl text-black">
 | 
			
		||||
                <x-money :amount="$contact->overdue" :currency="$contact->currency_code" convert />
 | 
			
		||||
                <x-money :amount="$contact->overdue" :currency="$contact->currency_code" />
 | 
			
		||||
            </span>
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
            <x-link href="{{ route('portal.invoices.index') }}" class="px-2 py-1 my-3 rounded-lg text-xs leading-6 bg-green text-white hover:bg-green-700 disabled:bg-green-100" override="class">
 | 
			
		||||
                {{ trans('bills.make_payment') }}
 | 
			
		||||
            </x-link>
 | 
			
		||||
 
 | 
			
		||||
@@ -7,9 +7,9 @@
 | 
			
		||||
        @foreach ($payments as $item)
 | 
			
		||||
        <span class="text-xs mb-3">
 | 
			
		||||
            @if (! $item->document)
 | 
			
		||||
            {{ trans('portal.payment_history.description', ['date' => company_date($item->created_at), 'amount' => money($item->amount, $item->currency_code, true)]) }}
 | 
			
		||||
            {{ trans('portal.payment_history.description', ['date' => company_date($item->created_at), 'amount' => money($item->amount, $item->currency_code)]) }}
 | 
			
		||||
            @else
 | 
			
		||||
            {{ trans('portal.payment_history.invoice_description', ['date' => company_date($item->created_at), 'amount' => money($item->amount, $item->currency_code, true), 'invoice_nember' => $item->document->document_number]) }}
 | 
			
		||||
            {{ trans('portal.payment_history.invoice_description', ['date' => company_date($item->created_at), 'amount' => money($item->amount, $item->currency_code), 'invoice_nember' => $item->document->document_number]) }}
 | 
			
		||||
            @endif
 | 
			
		||||
        </span>
 | 
			
		||||
        @endforeach
 | 
			
		||||
 
 | 
			
		||||
@@ -5,13 +5,13 @@
 | 
			
		||||
 | 
			
		||||
    <x-slot name="content">
 | 
			
		||||
        <div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 my-3.5">
 | 
			
		||||
            <x-form.group.text name="hostname" label="{{ trans('install.database.hostname') }}" value="{{ old('hostname', 'localhost') }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
    
 | 
			
		||||
            <x-form.group.text name="username" label="{{ trans('install.database.username') }}" value="{{ old('username') }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
    
 | 
			
		||||
            <x-form.group.password name="password" label="{{ trans('install.database.password') }}" not-required form-group-class="sm:col-span-6" />
 | 
			
		||||
    
 | 
			
		||||
            <x-form.group.text name="database" label="{{ trans('install.database.name') }}" value="{{ old('database') }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
            <x-form.group.text name="hostname" label="{{ trans('install.database.hostname') }}" value="{{ old('hostname', $host) }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
 | 
			
		||||
            <x-form.group.text name="username" label="{{ trans('install.database.username') }}" value="{{ old('username', $username) }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
 | 
			
		||||
            <x-form.group.password name="password" label="{{ trans('install.database.password') }}" value="{{ $password }}" not-required form-group-class="sm:col-span-6" />
 | 
			
		||||
 | 
			
		||||
            <x-form.group.text name="database" label="{{ trans('install.database.name') }}" value="{{ old('database', $database) }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
        </div>
 | 
			
		||||
    </x-slot>
 | 
			
		||||
</x-layouts.install>
 | 
			
		||||
 
 | 
			
		||||
@@ -6,8 +6,8 @@
 | 
			
		||||
    <x-slot name="content">
 | 
			
		||||
        <div class="mb-0">
 | 
			
		||||
            <select name="lang" id="lang" size="14" class="w-full text-black text-sm font-medium">
 | 
			
		||||
                @foreach (language()->allowed() as $code => $name)
 | 
			
		||||
                <option value="{{ $code }}" @if ($code=='en-GB' ) {{ 'selected="selected"' }} @endif>{{ $name }}</option>
 | 
			
		||||
                @foreach ($lang_allowed as $code => $name)
 | 
			
		||||
                <option value="{{ $code }}" @if ($code == $locale) {{ 'selected="selected"' }} @endif>{{ $name }}</option>
 | 
			
		||||
                @endforeach
 | 
			
		||||
            </select>
 | 
			
		||||
        </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -10,6 +10,8 @@
 | 
			
		||||
    </x-slot>
 | 
			
		||||
 | 
			
		||||
    <x-slot name="content">
 | 
			
		||||
        <x-update-alert />
 | 
			
		||||
 | 
			
		||||
        <div class="my-10">
 | 
			
		||||
            <div class="flex items-center">
 | 
			
		||||
                <div class="relative px-4 text-sm text-center pb-2 text-purple font-medium border-purple transition-all after:absolute after:w-full after:h-0.5 after:left-0 after:right-0 after:bottom-0 after:bg-purple after:rounded-tl-md after:rounded-tr-md">
 | 
			
		||||
@@ -31,9 +33,17 @@
 | 
			
		||||
 | 
			
		||||
                            <x-table.td kind="right" class="w-6/12" kind="cursor-none">
 | 
			
		||||
                                <x-slot name="first" class="flex justify-end" override="class">
 | 
			
		||||
                                    <x-link href="{{ route('updates.run', ['alias' => 'core', 'version' => $core]) }}" class="px-3 py-1.5 rounded-xl text-sm font-medium leading-6 ltr:mr-2 rtl:ml-2 bg-green text-white hover:bg-green-700 disabled:bg-green-100" override="class">
 | 
			
		||||
                                        {{ trans('updates.update', ['version' => $core]) }}
 | 
			
		||||
                                    </x-link>
 | 
			
		||||
                                    @if (! $core->errors)
 | 
			
		||||
                                        <x-link href="{{ route('updates.run', ['alias' => 'core', 'version' => $core->latest]) }}" class="px-3 py-1.5 rounded-xl text-sm font-medium leading-6 ltr:mr-2 rtl:ml-2 bg-green text-white hover:bg-green-700 disabled:bg-green-100" override="class">
 | 
			
		||||
                                            {{ trans('updates.update', ['version' => $core->latest]) }}
 | 
			
		||||
                                        </x-link>
 | 
			
		||||
                                    @else
 | 
			
		||||
                                        <x-tooltip id="tooltip-core-button" placement="top" :message="$core->message">
 | 
			
		||||
                                            <x-button class="px-3 py-1.5 rounded-xl text-sm font-medium leading-6 ltr:mr-2 rtl:ml-2 text-white bg-green-300 cursor-default" override="class">
 | 
			
		||||
                                                {{ trans('updates.update', ['version' => $core->latest]) }}
 | 
			
		||||
                                            </x-button>
 | 
			
		||||
                                        </x-tooltip>
 | 
			
		||||
                                    @endif
 | 
			
		||||
 | 
			
		||||
                                    <x-button @click="onChangelog">
 | 
			
		||||
                                        {{ trans('updates.changelog') }}
 | 
			
		||||
@@ -76,7 +86,7 @@
 | 
			
		||||
 | 
			
		||||
                <x-table.tbody>
 | 
			
		||||
                    @if ($modules)
 | 
			
		||||
                        @foreach($modules as $module)
 | 
			
		||||
                        @foreach ($modules as $module)
 | 
			
		||||
                        <x-table.tr>
 | 
			
		||||
                            <x-table.td class="w-3/12" kind="cursor-none">
 | 
			
		||||
                                {{ $module->name }}
 | 
			
		||||
@@ -91,9 +101,17 @@
 | 
			
		||||
                            </x-table.td>
 | 
			
		||||
 | 
			
		||||
                            <x-table.td class="w-3/12" kind="right">
 | 
			
		||||
                                <x-link href="{{ route('updates.run', ['alias' => $module->alias, 'version' => $module->latest]) }}" kind="primary">
 | 
			
		||||
                                    {{ trans_choice('general.updates', 1) }}
 | 
			
		||||
                                </x-link>
 | 
			
		||||
                                @if (empty($module->errors))
 | 
			
		||||
                                    <x-link href="{{ route('updates.run', ['alias' => $module->alias, 'version' => $module->latest]) }}" kind="primary">
 | 
			
		||||
                                        {{ trans_choice('general.updates', 1) }}
 | 
			
		||||
                                    </x-link>
 | 
			
		||||
                                @else
 | 
			
		||||
                                    <x-tooltip id="tooltip-modules-{{ $module->alias }}" placement="top" :message="$module->message">
 | 
			
		||||
                                        <x-button class="px-3 py-1.5 rounded-xl text-sm font-medium leading-6 text-white bg-green-300 cursor-default" override="class">
 | 
			
		||||
                                            {{ trans_choice('general.updates', 1) }}
 | 
			
		||||
                                        </x-button>
 | 
			
		||||
                                    </x-tooltip>
 | 
			
		||||
                                @endif
 | 
			
		||||
                            </x-table.td>
 | 
			
		||||
                        </x-table.tr>
 | 
			
		||||
                        @endforeach
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
    <div
 | 
			
		||||
        data-modal-handle
 | 
			
		||||
        @class([
 | 
			
		||||
            'modal w-full h-full fixed top-0 left-0 right-0 z-50 overflow-y-auto overflow-hidden fade justify-center items-start',
 | 
			
		||||
            'firefox-confirm-modal modal w-full h-full fixed top-0 left-0 right-0 z-50 overflow-y-auto overflow-hidden fade justify-center items-start',
 | 
			
		||||
            'show flex flex-wrap modal-background' => ! $status,
 | 
			
		||||
            'hidden' => $status,
 | 
			
		||||
        ])
 | 
			
		||||
@@ -24,8 +24,12 @@
 | 
			
		||||
                </div>
 | 
			
		||||
 | 
			
		||||
                <div class="p-5 bg-body rounded-bl-lg rounded-br-lg border-gray-300">
 | 
			
		||||
                    <div class="flex items-center justify-end">
 | 
			
		||||
                        <button wire:click="firefoxConfirm" class="relative px-6 py-1.5 bg-green hover:bg-green-700 text-white rounded-lg disabled:bg-green-100">
 | 
			
		||||
                    <div class="flex items-center justify-end space-x-2">
 | 
			
		||||
                        <button onclick="closeConfirmFirefox()" class="relative px-6 py-1.5 hover:bg-gray-100 rounded-lg disabled:bg-green-100">
 | 
			
		||||
                            {{ trans('general.cancel') }}
 | 
			
		||||
                        </button>
 | 
			
		||||
 | 
			
		||||
                        <button onclick="closeConfirmFirefox()" class="relative px-6 py-1.5 bg-green hover:bg-green-700 text-white rounded-lg disabled:bg-green-100">
 | 
			
		||||
                            {{ trans('general.confirm') }}
 | 
			
		||||
                        </button>
 | 
			
		||||
                    </div>
 | 
			
		||||
@@ -34,3 +38,18 @@
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
@push('scripts_start')
 | 
			
		||||
<script>
 | 
			
		||||
    function closeConfirmFirefox() {
 | 
			
		||||
        const d = new Date();
 | 
			
		||||
        d.setTime(d.getTime() + (86400 * 90 * 90 * 90 * 30));
 | 
			
		||||
 | 
			
		||||
        let expires = "expires="+ d.toUTCString();
 | 
			
		||||
 | 
			
		||||
        document.cookie = "firefox-icon-notification-confirm=true;" + expires + ";path=/";
 | 
			
		||||
 | 
			
		||||
        document.querySelector('.firefox-confirm-modal').remove();
 | 
			
		||||
    }
 | 
			
		||||
</script>
 | 
			
		||||
@endpush
 | 
			
		||||
 
 | 
			
		||||
@@ -33,10 +33,11 @@
 | 
			
		||||
            form-group-class="sm:col-span-6 sm:gap-0"
 | 
			
		||||
        />
 | 
			
		||||
 | 
			
		||||
        <x-form.group.toggle name="hide_item_description" label="{{ trans('settings.invoice.hide.item_description') }}" :value="$hide_item_description" />
 | 
			
		||||
        <x-form.group.toggle name="hide_item_description" label="{{ trans('settings.invoice.hide.item_description') }}" :value="$hide_item_description" change="settingsInvoice()" />
 | 
			
		||||
        <x-form.group.toggle name="hide_amount" label="{{ trans('settings.invoice.hide.amount') }}" :value="$hide_amount" not-required form-group-class="sm:col-span-6" />
 | 
			
		||||
 | 
			
		||||
        <x-form.input.hidden name="type" :value="$type" />
 | 
			
		||||
        <x-form.input.hidden name="enabled" value="1" />
 | 
			
		||||
        <x-form.input.hidden name="message_name_or_description_required" :value="trans('invoices.messages.name_or_description_required', ['name' => trans('general.name'), 'description' => trans('general.description')])" />
 | 
			
		||||
    </div>
 | 
			
		||||
</x-form>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,15 +1,93 @@
 | 
			
		||||
<x-form id="form-email" :route="[$store_route, $invoice->id]">
 | 
			
		||||
    <x-form.section>
 | 
			
		||||
        <x-slot name="body">
 | 
			
		||||
            <x-form.group.text name="to" label="{{ trans('general.to') }}" value="{{ $invoice->contact->email }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
    <x-tabs active="general" class="grid grid-cols-2 auto-rows-max" override="class" ignore-hash>
 | 
			
		||||
        <x-slot name="navs">
 | 
			
		||||
            <x-tabs.nav id="general">
 | 
			
		||||
                {{ trans('general.general') }}
 | 
			
		||||
            </x-tabs.nav>
 | 
			
		||||
 | 
			
		||||
            <x-form.group.text name="subject" label="{{ trans('settings.email.templates.subject') }}" value="{{ $notification->getSubject() }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
 | 
			
		||||
            <x-form.group.editor name="body" label="{{ trans('settings.email.templates.body') }}" :value="$notification->getBody()" rows="5" data-toggle="quill" form-group-class="sm:col-span-6 mb-0" />
 | 
			
		||||
 | 
			
		||||
            <x-form.group.checkbox name="user_email" :options="['1' => trans('general.email_send_me', ['email' => user()->email])]" checkbox-class="col-span-6" />
 | 
			
		||||
 | 
			
		||||
            <x-form.input.hidden name="document_id" :value="$invoice->id" />
 | 
			
		||||
            <x-tabs.nav id="attachments">
 | 
			
		||||
                {{ trans_choice('general.attachments', 2) }}
 | 
			
		||||
            </x-tabs.nav>
 | 
			
		||||
        </x-slot>
 | 
			
		||||
    </x-form.section>
 | 
			
		||||
 | 
			
		||||
        <x-slot name="content">
 | 
			
		||||
            <x-tabs.tab id="general">
 | 
			
		||||
                <x-form.section>
 | 
			
		||||
                    <x-slot name="body">
 | 
			
		||||
                        <x-form.group.text name="to" label="{{ trans('general.to') }}" value="{{ $invoice->contact->email }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
 | 
			
		||||
                        <x-form.group.text name="subject" label="{{ trans('settings.email.templates.subject') }}" value="{{ $notification->getSubject() }}" form-group-class="sm:col-span-6" />
 | 
			
		||||
 | 
			
		||||
                        <x-form.group.editor name="body" label="{{ trans('settings.email.templates.body') }}" :value="$notification->getBody()" rows="5" data-toggle="quill" form-group-class="sm:col-span-6 mb-0" />
 | 
			
		||||
 | 
			
		||||
                        <x-form.group.checkbox name="user_email" :options="['1' => trans('general.email_send_me', ['email' => user()->email])]" checkbox-class="col-span-6" />
 | 
			
		||||
 | 
			
		||||
                        <x-form.input.hidden name="document_id" :value="$invoice->id" />
 | 
			
		||||
                    </x-slot>
 | 
			
		||||
                </x-form.section>
 | 
			
		||||
            </x-tabs.tab>
 | 
			
		||||
 | 
			
		||||
            <x-tabs.tab id="attachments">
 | 
			
		||||
                @if ($invoice->attachment)
 | 
			
		||||
                    <x-table>
 | 
			
		||||
                        <x-table.thead>
 | 
			
		||||
                            <x-table.tr class="flex items-center px-1">
 | 
			
		||||
                                <x-table.th class="w-1/12">
 | 
			
		||||
                                </x-table.th>
 | 
			
		||||
 | 
			
		||||
                                <x-table.th class="w-1/6">
 | 
			
		||||
                                </x-table.th>
 | 
			
		||||
 | 
			
		||||
                                <x-table.th class="w-4/6">
 | 
			
		||||
                                    {{ trans('general.name') }}
 | 
			
		||||
                                </x-table.th>
 | 
			
		||||
 | 
			
		||||
                                <x-table.th class="w-1/6">
 | 
			
		||||
                                    {{ trans('general.size') }}
 | 
			
		||||
                                </x-table.th>
 | 
			
		||||
                            </x-table.tr>
 | 
			
		||||
                        </x-table.thead>
 | 
			
		||||
 | 
			
		||||
                        <x-table.tbody>
 | 
			
		||||
                            @foreach($invoice->attachment as $attachment)
 | 
			
		||||
                                <x-table.tr id="method-{{ $attachment->id }}">
 | 
			
		||||
                                    <x-table.td class="w-1/12">
 | 
			
		||||
                                        <input type="checkbox"
 | 
			
		||||
                                            id="attachment-{{ $attachment->id }}"
 | 
			
		||||
                                            name="{{ $attachment->id }}"
 | 
			
		||||
                                            class="rounded-sm text-purple border-gray-300 cursor-pointer disabled:bg-gray-200 focus:outline-none focus:ring-transparent"
 | 
			
		||||
                                            data-field="attachments"
 | 
			
		||||
                                            @input="e => form.attachments[e.target.name] = e.target.checked | 0">
 | 
			
		||||
                                    </x-table.td>
 | 
			
		||||
                                    <x-table.td class="w-1/6">
 | 
			
		||||
                                        @if ($attachment->aggregate_type == 'image')
 | 
			
		||||
                                            <div class="avatar-attachment">
 | 
			
		||||
                                                <img src="{{ route('uploads.get', $attachment->id) }}" alt="{{ $attachment->basename }}" class="avatar-img h-full rounded object-cover">
 | 
			
		||||
                                            </div>
 | 
			
		||||
                                        @else
 | 
			
		||||
                                            <div class="avatar-attachment">
 | 
			
		||||
                                                <span class="material-icons text-base">attach_file</span>
 | 
			
		||||
                                            </div>
 | 
			
		||||
                                        @endif
 | 
			
		||||
                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                    <x-table.td class="w-4/6">
 | 
			
		||||
                                        {{ $attachment->basename }}
 | 
			
		||||
                                    </x-table.td>
 | 
			
		||||
 | 
			
		||||
                                    <x-table.td class="w-1/6">
 | 
			
		||||
                                        {{ $attachment->readableSize() }}
 | 
			
		||||
                                    </x-table.td>
 | 
			
		||||
                                </x-table.tr>
 | 
			
		||||
                            @endforeach
 | 
			
		||||
                        </x-table.tbody>
 | 
			
		||||
                    </x-table>
 | 
			
		||||
                @else
 | 
			
		||||
                    <p class="mt-6 text-sm">
 | 
			
		||||
                        {{ trans('documents.empty_attachments', ['type' => $invoice->type]) }}
 | 
			
		||||
                    </p>
 | 
			
		||||
                @endif
 | 
			
		||||
            </x-tabs.tab>
 | 
			
		||||
        </x-slot>
 | 
			
		||||
    </x-tabs>
 | 
			
		||||
</x-form>
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,7 @@
 | 
			
		||||
                value="{{ $signedUrl }}"
 | 
			
		||||
                ref="clone"
 | 
			
		||||
                @click="onCopyLink()"
 | 
			
		||||
                style="appearance: none; background-color: whitesmoke; border: none; font-size: 16px;"
 | 
			
		||||
                style="appearance: none; background-color: whitesmoke; cursor:pointer; border: none; font-size: 16px;"
 | 
			
		||||
            />
 | 
			
		||||
            <x-form.input.hidden name="hidden-share" value="{{ $signedUrl }}" />
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -54,7 +54,13 @@
 | 
			
		||||
                    @endif
 | 
			
		||||
                </div>
 | 
			
		||||
 | 
			
		||||
                <div class="relative w-full lg:w-5/12" x-data="{ price_type : 'yearly' }">
 | 
			
		||||
                <div class="relative w-full lg:w-5/12"
 | 
			
		||||
                    @if (in_array('cloud', $module->where_to_use) && count($module->where_to_use) == 1)
 | 
			
		||||
                        x-data="{ price_type : 'lifetime' }"
 | 
			
		||||
                    @else
 | 
			
		||||
                        x-data="{ price_type : 'yearly' }"
 | 
			
		||||
                    @endif
 | 
			
		||||
                >
 | 
			
		||||
                    <div class="flex flex-col space-y-6">
 | 
			
		||||
                        <div class="flex flex-col cursor-default">
 | 
			
		||||
                            <div class="flex flex-col space-y-4">
 | 
			
		||||
 
 | 
			
		||||
@@ -137,7 +137,7 @@
 | 
			
		||||
                                <x-table.td class="w-6/12 sm:w-2/12" kind="amount">
 | 
			
		||||
                                    @stack('amount_td_inside_start')
 | 
			
		||||
 | 
			
		||||
                                    <x-money :amount="$item->amount" :currency="$item->currency_code" convert />
 | 
			
		||||
                                    <x-money :amount="$item->amount" :currency="$item->currency_code" />
 | 
			
		||||
 | 
			
		||||
                                        @stack('amount_td_inside_end')
 | 
			
		||||
                                </x-table.td>
 | 
			
		||||
 
 | 
			
		||||
@@ -100,7 +100,7 @@
 | 
			
		||||
                        <x-slot name="body" class="block" override="class">
 | 
			
		||||
                            <div class="text-xs mt-1" style="margin-left: 0 !important;">
 | 
			
		||||
                                <span class="font-medium">
 | 
			
		||||
                                    {{ trans('invoices.payment_received') }} :
 | 
			
		||||
                                    {{ trans('invoices.payments_received') }}:
 | 
			
		||||
                                </span>
 | 
			
		||||
 | 
			
		||||
                                @if ($invoice->transactions->count())
 | 
			
		||||
@@ -111,7 +111,7 @@
 | 
			
		||||
                                                    <x-date :date="$transaction->paid_at" />
 | 
			
		||||
                                                </x-link>
 | 
			
		||||
                                                - {!! trans('documents.transaction', [
 | 
			
		||||
                                                    'amount' => '<span class="font-medium">' . money($transaction->amount, $transaction->currency_code, true) . '</span>',
 | 
			
		||||
                                                    'amount' => '<span class="font-medium">' . money($transaction->amount, $transaction->currency_code) . '</span>',
 | 
			
		||||
                                                    'account' => '<span class="font-medium">' . $transaction->account->name . '</span>',
 | 
			
		||||
                                                ]) !!}
 | 
			
		||||
                                            </span>
 | 
			
		||||
@@ -149,4 +149,4 @@
 | 
			
		||||
    @endpush
 | 
			
		||||
 | 
			
		||||
    <x-script folder="portal" file="apps" />
 | 
			
		||||
</x-layouts.preview>
 | 
			
		||||
</x-layouts.preview>
 | 
			
		||||
 
 | 
			
		||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user