79102906

Date: 2024-10-18 16:36:06
Score: 0.5
Natty:
Report link

Although the @stack() and @Push() did not work, I resolved the issue with a section script and @IncludeIf. The order of scripts also seems to be important. My Code is:

@section('script')
    <script src="https://checkout.sandbox.dev.clover.com/sdk.js"></script>
    <script src="{{ asset('assets/css/clover-checkout.css') }}"></script>
    <script src="{{ asset('assets/js/clover-checkout.js') }}"></script>
    @includeIf($userBe->is_checkout == 1);
@endsection
Reasons:
  • Blacklisted phrase (1): did not work
  • Whitelisted phrase (-2): I resolved
  • Has code block (-0.5):
  • User mentioned (1): @stack
  • User mentioned (0): @Push
  • User mentioned (0): @IncludeIf
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: coder123