1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 21:52:35 +01:00
invoiceninja/resources/views/portal/ninja2020/quotes/approve.blade.php

97 lines
5.3 KiB
PHP
Raw Normal View History

2020-03-23 18:10:42 +01:00
@extends('portal.ninja2020.layout.app')
@section('meta_title', ctrans('texts.approve'))
@push('head')
<meta name="show-quote-terms" content="{{ $settings->show_accept_quote_terms ? true : false }}">
<meta name="require-quote-signature" content="{{ $client->company->account->hasFeature(\App\Models\Account::FEATURE_INVOICE_SETTINGS) && $settings->require_quote_signature }}">
2023-08-06 08:10:47 +02:00
<meta name="accept-user-input" content="{{ $client->getSetting('accept_client_input_quote_approval') }}">
2021-10-11 15:06:21 +02:00
<script src="{{ asset('vendor/signature_pad@2.3.2/signature_pad.min.js') }}"></script>
2020-03-23 18:10:42 +01:00
@endpush
@section('body')
<form action="{{ route('client.quotes.bulk') }}" method="post" id="approve-form">
@csrf
<input type="hidden" name="action" value="approve">
<input type="hidden" name="process" value="true">
<input type="hidden" name="user_input" value="">
2020-03-23 18:10:42 +01:00
@foreach($quotes as $quote)
<input type="hidden" name="quotes[]" value="{{ $quote->hashed_id }}">
@endforeach
<input type="hidden" name="signature">
2020-03-23 18:10:42 +01:00
</form>
2020-03-23 18:10:42 +01:00
<div class="container mx-auto">
<div class="grid grid-cols-6 gap-4">
<div class="col-span-6 md:col-start-2 md:col-span-4">
<div class="flex justify-end">
<div class="flex justify-end mb-2">
<div class="relative inline-block text-left">
<div>
<div class="rounded-md shadow-sm">
2021-11-12 16:52:13 +01:00
<button type="button" id="approve-button" onclick="setTimeout(() => this.disabled = true, 0); return true;"
class="inline-flex justify-center w-full rounded-md border border-gray-300 px-4 py-2 bg-white text-sm leading-5 font-medium text-gray-700 hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:ring-blue active:bg-gray-50 active:text-gray-800 transition ease-in-out duration-150">
2020-03-23 18:10:42 +01:00
{{ ctrans('texts.approve') }}
</button>
</div>
</div>
</div>
</div>
</div>
@foreach($quotes as $quote)
<div class="bg-white shadow overflow-hidden sm:rounded-lg mb-4">
<div class="px-4 py-5 border-b border-gray-200 sm:px-6">
<h3 class="text-lg leading-6 font-medium text-gray-900">
2023-08-06 08:10:47 +02:00
{{ ctrans('texts.quote') }}
<a class="button-link text-primary" href="{{ route('client.quote.show', $quote->hashed_id) }}">
2020-03-23 18:10:42 +01:00
({{ $quote->number }})
</a>
</h3>
<p class="mt-1 max-w-2xl text-sm leading-5 text-gray-500" translate>
</p>
</div>
<div>
<dl>
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm leading-5 font-medium text-gray-500">
{{ ctrans('texts.quote_number') }}
</dt>
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
{{ $quote->number }}
</dd>
</div>
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm leading-5 font-medium text-gray-500">
{{ ctrans('texts.quote_date') }}
</dt>
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
2022-01-17 08:53:39 +01:00
{{ $quote->translateDate($quote->date, $quote->client->date_format(), $quote->client->locale()) }}
2020-03-23 18:10:42 +01:00
</dd>
</div>
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm leading-5 font-medium text-gray-500">
{{ ctrans('texts.amount') }}
2020-03-23 18:10:42 +01:00
</dt>
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
{{ App\Utils\Number::formatMoney($quote->amount, $quote->client) }}
2020-03-23 18:10:42 +01:00
</dd>
</div>
</dl>
</div>
</div>
@endforeach
</div>
</div>
</div>
2023-08-06 08:10:47 +02:00
@endsection
2020-03-23 18:10:42 +01:00
2023-08-06 08:10:47 +02:00
@section('footer')
@include('portal.ninja2020.quotes.includes.user-input')
@include('portal.ninja2020.invoices.includes.terms', ['entities' => $quotes, 'entity_type' => ctrans('texts.quote')])
2020-03-23 18:10:42 +01:00
@include('portal.ninja2020.invoices.includes.signature')
@endsection
@push('footer')
2023-09-04 16:07:34 +02:00
@vite('resources/js/clients/quotes/approve.js')
2020-03-23 18:10:42 +01:00
@endpush