AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

shipped.blade.php 4.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. @php
  2. $m = $brand->malay;
  3. $label = 'font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: '.$brand->color('muted').';';
  4. $line = 'border-bottom: 1px solid '.$brand->color('border').';';
  5. $address = $order->shipping_address;
  6. @endphp
  7. <x-mail.store :brand="$brand" :preheader="$m ? 'Pesanan #'.$order->number.' telah dihantar melalui '.$order->shipping_courier.'.' : 'Order #'.$order->number.' was sent with '.$order->shipping_courier.'.'">
  8. <h1 style="margin: 0 0 16px; font-family: {{ $brand->headingFont }}; font-size: 26px; line-height: 1.25; font-weight: 700; color: {{ $brand->color('foreground') }};">
  9. {{ $m ? 'Pesanan anda dalam perjalanan' : 'Your order is on its way' }}
  10. </h1>
  11. <p style="margin: 0 0 12px;">{{ $m ? 'Hai' : 'Hi' }} {{ $order->customer_name }},</p>
  12. <p style="margin: 0 0 24px;">
  13. {{ $m
  14. ? "Pesanan #{$order->number} daripada {$store->name} telah dihantar melalui {$order->shipping_courier}."
  15. : "Order #{$order->number} from {$store->name} has been sent with {$order->shipping_courier}." }}
  16. </p>
  17. @if ($order->tracking_number)
  18. {{-- The tracking number, easy to copy --}}
  19. <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin: 0 0 24px;">
  20. <tr>
  21. <td style="background-color: {{ $brand->color('background') }}; border: 1px solid {{ $brand->color('border') }}; border-radius: {{ $brand->radius }}px; padding: 16px 18px;">
  22. <div style="{{ $label }} margin-bottom: 4px;">{{ $m ? 'Nombor penjejakan' : 'Tracking number' }} · {{ $order->shipping_courier }}</div>
  23. <div style="font-family: 'Courier New', Courier, monospace; font-size: 18px; font-weight: 700; letter-spacing: 0.04em;">{{ $order->tracking_number }}</div>
  24. </td>
  25. </tr>
  26. </table>
  27. @endif
  28. {{-- Buttons --}}
  29. <table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin: 0 0 28px;">
  30. <tr>
  31. @if ($order->tracking_url)
  32. <td class="sf-cell"><x-mail.store-button :brand="$brand" :href="$order->tracking_url">{{ $m ? 'Jejak bungkusan anda' : 'Track your parcel' }}</x-mail.store-button></td>
  33. <td class="sf-gap" style="width: 10px;"></td>
  34. <td class="sf-cell"><x-mail.store-button :brand="$brand" :href="$orderUrl" outline>{{ $m ? 'Lihat pesanan anda' : 'View your order' }}</x-mail.store-button></td>
  35. @else
  36. <td class="sf-cell"><x-mail.store-button :brand="$brand" :href="$orderUrl">{{ $m ? 'Lihat pesanan anda' : 'View your order' }}</x-mail.store-button></td>
  37. @endif
  38. </tr>
  39. </table>
  40. @if ($order->tracking_number && ! $order->tracking_url)
  41. <p style="margin: -12px 0 28px; font-size: 13px; color: {{ $brand->color('muted') }};">
  42. {{ $m ? 'Gunakan nombor penjejakan di laman web kurier untuk menjejak bungkusan anda.' : "Use the tracking number on the courier's website to follow your parcel." }}
  43. </p>
  44. @endif
  45. {{-- What is in the parcel --}}
  46. <div style="{{ $label }} margin: 0 0 6px;">{{ $m ? 'Dalam bungkusan' : 'In this parcel' }}</div>
  47. <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin: 0 0 24px; border-top: 1px solid {{ $brand->color('border') }};">
  48. @foreach ($order->items as $item)
  49. <tr>
  50. <td style="{{ $line }} padding: 10px 12px 10px 0;">{{ $item->name }}</td>
  51. <td align="right" style="{{ $line }} padding: 10px 0; white-space: nowrap; color: {{ $brand->color('muted') }};">× {{ $item->quantity }}</td>
  52. </tr>
  53. @endforeach
  54. </table>
  55. <div style="{{ $label }} margin: 0 0 6px;">{{ $m ? 'Dihantar ke' : 'Delivering to' }}</div>
  56. <p style="margin: 0 0 28px;">
  57. {{ $order->customer_name }}<br>
  58. {{ $address['line1'] }}@if ($address['line2'] ?? null), {{ $address['line2'] }}@endif<br>
  59. {{ $address['postcode'] }} {{ $address['city'] }}, {{ $address['state'] }}
  60. </p>
  61. @if ($whatsappUrl)
  62. <p style="margin: 0 0 20px; color: {{ $brand->color('muted') }};">
  63. {{ $m ? 'Ada soalan?' : 'Any questions?' }}
  64. <a href="{{ $whatsappUrl }}" style="color: {{ $brand->color('foreground') }}; font-weight: 600; text-decoration: underline;">{{ $m ? 'Tanya kami di WhatsApp' : 'Ask us on WhatsApp' }}</a>
  65. </p>
  66. @endif
  67. <p style="margin: 0;">{{ $m ? 'Terima kasih,' : 'Thanks,' }}<br><strong>{{ $store->name }}</strong></p>
  68. </x-mail.store>