@extends('layouts.signed') @section('title', setting('invoice.title', trans_choice('general.invoices', 1)) . ': ' . $invoice->document_number) @section('new_button') @stack('button_print_start') {{ trans('general.print') }} @stack('button_print_end') @stack('button_pdf_start') {{ trans('general.download') }} @stack('button_pdf_end') @stack('button_dashboard_start') @if (!user()) {{ trans('invoices.all_invoices') }} @endif @stack('button_dashboard_end') @endsection @section('content') @if (!empty($payment_methods) && !in_array($invoice->status, ['paid', 'cancelled']))
{!! Form::open([ 'id' => 'invoice-payment', 'role' => 'form', 'autocomplete' => "off", 'novalidate' => 'true', 'class' => 'mb-0' ]) !!} {{ Form::selectGroup('payment_method', '', 'money el-icon-money', $payment_methods, array_key_first($payment_methods), ['change' => 'onChangePaymentMethodSigned', 'id' => 'payment-method', 'class' => 'form-control d-none', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.payment_methods', 1)])], 'col-sm-12 d-none') }} {!! Form::hidden('document_id', $invoice->id, ['v-model' => 'form.document_id']) !!} {!! Form::close() !!}
@php $is_active = true; @endphp @foreach ($payment_methods as $key => $name) @stack('invoice_{{ $key }}_content_start')
@stack('invoice_{{ $key }}_content_end') @php $is_active = false; @endphp @endforeach
@endif @endsection @push('footer_start') @endpush