Andrew Wallo 5 ay önce
ebeveyn
işleme
4453d0edff

+ 3
- 1
app/Filament/Company/Clusters/Settings/Resources/DocumentDefaultResource.php Dosyayı Görüntüle

@@ -145,7 +145,9 @@ class DocumentDefaultResource extends Resource
145 145
                             ->hiddenLabel()
146 146
                             ->visible(static fn (Get $get) => $get('template') === 'classic')
147 147
                             ->view('filament.company.components.document-templates.classic'),
148
-                    ])->columnSpan(2),
148
+                    ])->columnSpan([
149
+                        'lg' => 2,
150
+                    ]),
149 151
             ])->columns(3);
150 152
     }
151 153
 

+ 0
- 5
app/Filament/Company/Resources/Sales/InvoiceResource/Pages/ViewInvoice.php Dosyayı Görüntüle

@@ -28,11 +28,6 @@ class ViewInvoice extends ViewRecord
28 28
         'refresh' => '$refresh',
29 29
     ];
30 30
 
31
-    public function getMaxContentWidth(): MaxWidth | string | null
32
-    {
33
-        return MaxWidth::SixExtraLarge;
34
-    }
35
-
36 31
     protected function getHeaderActions(): array
37 32
     {
38 33
         return [

+ 19
- 12
resources/views/components/company/document-template/container.blade.php Dosyayı Görüntüle

@@ -2,17 +2,24 @@
2 2
     'preview' => false,
3 3
 ])
4 4
 
5
-<div class="doc-template-container flex justify-center p-6">
6
-    <div
7
-        @class([
8
-            'doc-template-paper bg-[#ffffff] shadow-xl ring-1 ring-gray-950/5 dark:ring-white/10',
9
-            'w-full max-w-[820px] min-h-[1066px] max-h-[1200px] overflow-y-auto' => $preview === false,
10
-            'aspect-[1/1.3] overflow-hidden' => $preview === true,
11
-        ])
12
-        @style([
13
-            'scrollbar-width: thin;' => $preview === false,
14
-        ])
15
-    >
16
-        {{ $slot }}
5
+<div
6
+    @class([
7
+        'doc-template-container flex justify-center',
8
+        'scale-[0.85] origin-top' => $preview === true,
9
+    ])
10
+>
11
+    <div class="overflow-auto">
12
+        <div
13
+            @class([
14
+                'doc-template-paper bg-[#ffffff] shadow-xl ring-1 ring-gray-950/5 dark:ring-white/10',
15
+                'w-[51.25rem] h-[64rem]' => $preview === false,
16
+                'w-[48rem] h-[61.75rem]' => $preview === true,
17
+            ])
18
+            @style([
19
+                'scrollbar-width: thin;' => $preview === false,
20
+            ])
21
+        >
22
+            {{ $slot }}
23
+        </div>
17 24
     </div>
18 25
 </div>

+ 1
- 1
resources/views/components/company/document-template/footer.blade.php Dosyayı Görüntüle

@@ -1,3 +1,3 @@
1
-<footer {{ $attributes->class(['doc-template-footer min-h-60']) }}>
1
+<footer {{ $attributes->class(['doc-template-footer']) }}>
2 2
     {{ $slot }}
3 3
 </footer>

+ 13
- 14
resources/views/filament/company/components/document-templates/modern.blade.php Dosyayı Görüntüle

@@ -12,9 +12,8 @@
12 12
 </style>
13 13
 
14 14
 <x-company.document-template.container class="modern-template-container" preview>
15
-
16 15
     <!-- Colored Header with Logo -->
17
-    <x-company.document-template.header class="bg-gray-800 h-20">
16
+    <x-company.document-template.header class="bg-gray-800 h-24">
18 17
         <!-- Logo -->
19 18
         <div class="w-2/3">
20 19
             @if($document->logo && $document->showLogo)
@@ -23,18 +22,18 @@
23 22
         </div>
24 23
 
25 24
         <!-- Ribbon Container -->
26
-        <div class="w-1/3 absolute right-0 top-0 p-3 h-28 flex flex-col justify-end rounded-bl-sm"
25
+        <div class="w-1/3 absolute right-0 top-0 p-3 h-32 flex flex-col justify-end rounded-bl-sm"
27 26
              style="background: {{ $document->accentColor }};">
28 27
             @if($document->header)
29
-                <h1 class="text-3xl font-bold text-white text-center uppercase">{{ $document->header }}</h1>
28
+                <h1 class="text-4xl font-bold text-white text-center uppercase">{{ $document->header }}</h1>
30 29
             @endif
31 30
         </div>
32 31
     </x-company.document-template.header>
33 32
 
34 33
     <!-- Company Details -->
35 34
     <x-company.document-template.metadata class="modern-template-metadata space-y-8">
36
-        <div class="text-xs">
37
-            <h2 class="text-base font-semibold">{{ $document->company->name }}</h2>
35
+        <div class="text-sm">
36
+            <h2 class="text-lg font-semibold">{{ $document->company->name }}</h2>
38 37
             @if($formattedAddress = $document->company->getFormattedAddressHtml())
39 38
                 {!! $formattedAddress !!}
40 39
             @endif
@@ -42,9 +41,9 @@
42 41
 
43 42
         <div class="flex justify-between items-end">
44 43
             <!-- Billing Details -->
45
-            <div class="text-xs">
44
+            <div class="text-sm">
46 45
                 <h3 class="text-gray-600 font-medium mb-1">BILL TO</h3>
47
-                <p class="text-xs font-bold"
46
+                <p class="text-sm font-bold"
48 47
                    style="color: {{ $document->accentColor }}">{{ $document->client->name }}</p>
49 48
 
50 49
                 @if($formattedAddress = $document->client->getFormattedAddressHtml())
@@ -52,7 +51,7 @@
52 51
                 @endif
53 52
             </div>
54 53
 
55
-            <div class="text-xs">
54
+            <div class="text-sm">
56 55
                 <table class="min-w-full">
57 56
                     <tbody>
58 57
                     <tr>
@@ -82,7 +81,7 @@
82 81
     <!-- Line Items Table -->
83 82
     <x-company.document-template.line-items class="modern-template-line-items">
84 83
         <table class="w-full text-left table-fixed">
85
-            <thead class="text-xs leading-relaxed">
84
+            <thead class="text-sm leading-relaxed">
86 85
             <tr class="text-gray-600">
87 86
                 <th class="text-left pl-6 w-[50%] py-4">{{ $document->columnLabel->items }}</th>
88 87
                 <th class="text-center w-[10%] py-4">{{ $document->columnLabel->units }}</th>
@@ -90,7 +89,7 @@
90 89
                 <th class="text-right pr-6 w-[20%] py-4">{{ $document->columnLabel->amount }}</th>
91 90
             </tr>
92 91
             </thead>
93
-            <tbody class="text-xs border-y-2">
92
+            <tbody class="text-sm border-y-2">
94 93
             @foreach($document->lineItems as $index => $item)
95 94
                 <tr @class(['bg-gray-100' => $index % 2 === 0])>
96 95
                     <td class="text-left pl-6 font-semibold py-3">
@@ -105,7 +104,7 @@
105 104
                 </tr>
106 105
             @endforeach
107 106
             </tbody>
108
-            <tfoot class="text-xs summary-section">
107
+            <tfoot class="text-sm summary-section">
109 108
             @if($document->subtotal)
110 109
                 <tr>
111 110
                     <td class="pl-6 py-2" colspan="2"></td>
@@ -149,11 +148,11 @@
149 148
 
150 149
     <!-- Footer Notes -->
151 150
     <x-company.document-template.footer class="modern-template-footer">
152
-        <h4 class="font-semibold px-6 text-xs" style="color: {{ $document->accentColor }}">
151
+        <h4 class="font-semibold px-6 text-sm" style="color: {{ $document->accentColor }}">
153 152
             Terms & Conditions
154 153
         </h4>
155 154
         <span class="border-t-2 my-2 border-gray-300 block w-full"></span>
156
-        <div class="flex justify-between space-x-4 px-6 text-xs">
155
+        <div class="flex justify-between space-x-4 px-6 text-sm">
157 156
             <p class="w-1/2 break-words line-clamp-4">{{ $document->terms }}</p>
158 157
             <p class="w-1/2 break-words line-clamp-4">{{ $document->footer }}</p>
159 158
         </div>

Loading…
İptal
Kaydet