2019-11-16 10:21:14 +03:00
|
|
|
@extends('layouts.portal')
|
|
|
|
|
2019-11-30 02:08:25 +03:00
|
|
|
@section('title', trans_choice('general.payments', 1))
|
2019-11-16 10:21:14 +03:00
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2019-11-30 02:08:25 +03:00
|
|
|
<h3 class="m-0 float-right">@date($payment->paid_at)</h3>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="row">
|
2019-11-30 02:08:25 +03:00
|
|
|
<div class="col-md-6">
|
2020-01-11 17:03:25 +03:00
|
|
|
<div class="card list-group">
|
|
|
|
<li class="list-group-item list-group-item-action active">
|
|
|
|
<b>{{ trans('general.from') }}:</b> {{ setting('company.name') }}
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item"><b>{{ trans('general.address') }}:</b> {{ setting('company.address') }}</li>
|
|
|
|
<li class="list-group-item"><b>{{ trans('general.phone') }}:</b> {{ setting('company.phone') }}</li>
|
|
|
|
<li class="list-group-item"><b>{{ trans('general.email') }}:</b> {{ setting('company.email') }}</li>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
|
2020-01-11 17:03:25 +03:00
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="card list-group">
|
|
|
|
<li class="list-group-item list-group-item-action active">
|
|
|
|
<b>{{ trans('general.to') }}:</b> {{ $payment->contact->name }}
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item"><b>{{ trans('general.address') }}:</b> {{ $payment->contact->address }}</li>
|
|
|
|
<li class="list-group-item"><b>{{ trans('general.phone') }}:</b> {{ $payment->contact->phone }}</li>
|
|
|
|
<li class="list-group-item"><b>{{ trans('general.email') }}:</b> {{ $payment->contact->email }}</li>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-01-11 17:03:25 +03:00
|
|
|
<div class="col-md-6">
|
|
|
|
@if ($payment->description)
|
|
|
|
<p class="form-control-label">{{ trans('general.description') }}</p>
|
|
|
|
<p class="form-control text-muted long-texts">{{ $payment->description }}</p>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
2019-11-30 02:08:25 +03:00
|
|
|
<div class="col-md-6">
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card">
|
2020-01-11 17:03:25 +03:00
|
|
|
<div class="card-header border-bottom-0">
|
|
|
|
<div class="row align-items-center">
|
|
|
|
<div class="col-12 text-nowrap">
|
|
|
|
<h4 class="mb-0">{{ trans_choice('general.payments', 1) }}</h4>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
2020-01-11 17:03:25 +03:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table align-items-center table-flush">
|
|
|
|
<thead class="thead-light">
|
|
|
|
<tr class="row table-head-line">
|
|
|
|
<th class="col-xs-4 col-md-4 text-left">{{ trans('general.amount') }}</th>
|
|
|
|
<th class="col-xs-4 col-md-4 text-left">{{ trans_choice('general.payment_methods', 1) }}</th>
|
|
|
|
<th class="col-xs-4 col-md-4 text-right long-texts">{{ trans('general.description') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="row border-top-1">
|
|
|
|
<td class="col-xs-4 col-md-4 text-left">@money($payment->amount, $payment->currency_code, true)</td>
|
|
|
|
<td class="col-xs-4 col-md-4 text-left">{{ $payment_methods[$payment->payment_method] }}</td>
|
|
|
|
<td class="col-xs-4 col-md-4 text-right long-texts">{{ $payment->description }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if ($payment->attachment)
|
2020-02-07 13:03:51 +03:00
|
|
|
<div class="card-footer">
|
2020-01-11 17:03:25 +03:00
|
|
|
<div class="row float-right">
|
|
|
|
<div class="col-md-12">
|
|
|
|
@if (1)
|
2020-02-07 15:12:22 +03:00
|
|
|
<div class="card mb-0">
|
|
|
|
<div class="card-body">
|
2020-01-11 17:03:25 +03:00
|
|
|
<div class="row align-items-center">
|
2020-02-07 15:12:22 +03:00
|
|
|
<div class="col-auto">
|
|
|
|
<i class="far fa-file-pdf font-size-50"></i>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-auto">
|
2020-01-11 17:03:25 +03:00
|
|
|
<a class="btn btn-icon btn-white" type="button">
|
|
|
|
<span class="btn-inner--icon">
|
|
|
|
<i class="fas fa-paperclip"></i>
|
|
|
|
{{ basename($payment->attachment) }}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
|
2020-02-07 15:12:22 +03:00
|
|
|
<a class="btn btn-icon btn-info text-white float-right" type="button">
|
2020-01-11 17:03:25 +03:00
|
|
|
<span class="btn-inner--icon">
|
|
|
|
<i class="fas fa-file-download"></i>
|
|
|
|
{{ basename($payment->attachment) }}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
2020-01-11 17:03:25 +03:00
|
|
|
@else
|
2020-02-07 15:12:22 +03:00
|
|
|
<div class="card mb-0">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="row align-items-center">
|
|
|
|
<div class="col-auto">
|
|
|
|
@if($payment->attachment)
|
|
|
|
<img src="public/img/invoice_templates/classic.png" alt="Attachment">
|
|
|
|
@else
|
|
|
|
<i class="far fa-file-image font-size-50"></i>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-auto">
|
2020-01-11 17:03:25 +03:00
|
|
|
<a class="btn btn-icon btn-white" type="button">
|
|
|
|
<span class="btn-inner--icon">
|
|
|
|
<i class="fas fa-camera"></i>
|
|
|
|
{{ basename($payment->attachment) }}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
|
2020-02-07 15:12:22 +03:00
|
|
|
<a class="btn btn-icon btn-info text-white float-right" type="button">
|
2020-01-11 17:03:25 +03:00
|
|
|
<span class="btn-inner--icon">
|
|
|
|
<i class="fas fa-file-download"></i>
|
|
|
|
{{ basename($payment->attachment) }}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
2020-01-11 17:03:25 +03:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@push('scripts_start')
|
2020-01-11 17:03:25 +03:00
|
|
|
<script src="{{ asset('public/js/portal/payments.js?v=' . version('short')) }}"></script>
|
2019-11-16 10:21:14 +03:00
|
|
|
@endpush
|