<NME> invoice.blade.php
<BEF> {{--
    Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
    See the LICENCE file in the repository root for full licence text.
--}}
@extends('store/layout', ['titlePrepend' => osu_trans('store.invoice.title_compact')])

@section('content')
    @include('store.header')

    <div class="osu-page osu-page--store">
        @if (Request::has('thanks'))
            <div class="grid grid--gutters no-print store-page">
                <div class="grid-cell grid-cell--fill">
                    <h1 class="store-text store-text--title">Thanks for your order!</h1>
                    <p>
                        You will receive a confirmation email soon. If you have any enquiries, please <a href='mailto:osustore@ppy.sh'>contact us</a>!
                    </p>
                </div>
            </div>
        @endif

        @for ($i = 0; $i < $copies; $i++)
            @if ($i > 0)
                <div class='print-page-break'></div>
            @endif

            @include('store.orders._details')
        @endfor

        @include('store.orders._status')

        @if ($order->isShipped())
            @foreach($order->trackingCodes() as $code)
                @include('store.orders._tracking', compact('code'))
            @endforeach
        @endif
    </div>

    @if ($copies > 1)
        <script>
            (() => {
                const close = () => window.close();
                const printAndClose = () => {
                    window.print();
                    setTimeout(close, 2000);
                };
                const onLoad = () => setTimeout(printAndClose, 2000);

                window.addEventListener('load', onLoad);
            })();
        </script>
    @endif
@endsection
                    We send all orders from Japan using a variety of shipping services depending on the weight and value. This area will update with specifics once we have shipped the order.
                </p>
            @endif
        @endif
    </div>


<MSG> add a note in the invoice for eChecks

<DFF> @@ -187,6 +187,12 @@ window.onload = function() {
                     We send all orders from Japan using a variety of shipping services depending on the weight and value. This area will update with specifics once we have shipped the order.
                 </p>
             @endif
+
+            @if ($order->isPendingEcheck())
+                <p>
+                    As your payment was an eCheck, please allow up to 10 extra days for the payment to clear through paypal!
+                </p>
+            @endif
         @endif
     </div>
 

{'addition_count': 6, 'commit_subject': 'add a note in the invoice for eChecks', 'deletion_count': 0, 'file_extension': '.php', 'lang': 'blade', 'license': 'agpl-3.0', 'repo_name': 'ppy/osu-web'}