v6 update

This commit is contained in:
Mohit Panjwani
2022-01-10 16:06:17 +05:30
parent b770e6277f
commit bdea879273
722 changed files with 19047 additions and 9186 deletions

View File

@ -16,12 +16,33 @@
<meta name="theme-color" content="#ffffff">
<meta name="csrf-token" content="{{ csrf_token() }}">
<!-- Module Styles -->
@foreach(\Crater\Services\Module\ModuleFacade::allStyles() as $name => $path)
<link rel="stylesheet" href="/modules/styles/{{ $name }}">
@endforeach
@vite
</head>
<body class="h-full overflow-hidden bg-gray-100 font-base">
<body
class="h-full overflow-hidden bg-gray-100 font-base
@if(isset($current_theme)) theme-{{ $current_theme }} @else theme-{{get_admin_portal_theme()}} @endif ">
<!-- Module Scripts -->
@foreach (\Crater\Services\Module\ModuleFacade::allScripts() as $name => $path)
@if (\Illuminate\Support\Str::startsWith($path, ['http://', 'https://']))
<script type="module" src="{!! $path !!}"></script>
@else
<script type="module" src="/modules/scripts/{{ $name }}"></script>
@endif
@endforeach
<script type="module">
@if(isset($customer_logo))
window.customer_logo = "/{{$customer_logo}}"
@endif
window.Crater.start()
</script>
</body>

View File

@ -18,7 +18,7 @@
@component('mail::subcopy')
{!! $data['body'] !!}
@if(!$data['attach']['data'])
@component('mail::button', ['url' => url('/customer/estimates/pdf/'.$data['estimate']['unique_hash'])])
@component('mail::button', ['url' => $data['url']])
View Estimate
@endcomponent
@endif

View File

@ -18,7 +18,7 @@
@component('mail::subcopy')
{!! $data['body'] !!}
@if(!$data['attach']['data'])
@component('mail::button', ['url' => url('/customer/invoices/pdf/'.$data['invoice']['unique_hash'])])
@component('mail::button', ['url' => $data['url']])
View Invoice
@endcomponent
@endif

View File

@ -18,7 +18,7 @@
@component('mail::subcopy')
{!! $data['body'] !!}
@if(!$data['attach']['data'])
@component('mail::button', ['url' => url('/payments/pdf/'.$data['payment']['unique_hash'])])
@component('mail::button', ['url' => $data['url']])
View Payment
@endcomponent
@endif