Second and Third template component file
This commit is contained in:
parent
ead767a308
commit
7a75d800da
@ -420,9 +420,7 @@ abstract class TransferShow extends Component
|
||||
return $transferTemplate;
|
||||
}
|
||||
|
||||
$transferTemplate = setting('transfer.template') ?: 'default';
|
||||
|
||||
return $transferTemplate;
|
||||
return setting('transfer.template');
|
||||
}
|
||||
|
||||
protected function getRouteButtonAddNew($routeButtonAddNew)
|
||||
|
18
app/View/Components/Transfers/Template/Second.php
Normal file
18
app/View/Components/Transfers/Template/Second.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\Transfers\Template;
|
||||
|
||||
use App\Abstracts\View\Components\TransferTemplate as Component;
|
||||
|
||||
class Second extends Component
|
||||
{
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\View|string
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return view('components.transfers.template.second');
|
||||
}
|
||||
}
|
18
app/View/Components/Transfers/Template/Third.php
Normal file
18
app/View/Components/Transfers/Template/Third.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\Transfers\Template;
|
||||
|
||||
use App\Abstracts\View\Components\TransferTemplate as Component;
|
||||
|
||||
class Third extends Component
|
||||
{
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\View|string
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return view('components.transfers.template.third');
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@
|
||||
@section('title', trans_choice('general.transfers', 1))
|
||||
|
||||
@section('content')
|
||||
<x-trasnfers.template.second
|
||||
<x-transfers.template.second
|
||||
:transfer="$transfer"
|
||||
/>
|
||||
@endsection
|
||||
|
@ -167,7 +167,7 @@
|
||||
</h5>
|
||||
|
||||
<p class="font-weight-bold mb-0 text-white" style="font-size: 26px; color:#ffffff; text-align:center;">
|
||||
@money($transfer->expense_transaction->amount, $transfer->from_currency_code, true)
|
||||
@money($transfer->expense_transaction->amount, $transfer->expense_transaction->currency_code, true)
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -22,7 +22,7 @@
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
@date($transfer->transferred_at)
|
||||
@date($transfer->expense_transaction->paid_at)
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@ -34,7 +34,7 @@
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ $payment_methods[$transfer->payment_method] }}
|
||||
{{ $payment_methods[$transfer->expense_transaction->payment_method] }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@ -46,7 +46,7 @@
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ $transfer->reference }}
|
||||
{{ $transfer->expense_transaction->reference }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@ -58,7 +58,7 @@
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ $transfer->description }}
|
||||
{{ $transfer->expense_transaction->description }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@ -75,7 +75,7 @@
|
||||
</h5>
|
||||
|
||||
<p class="font-weight-bold mb-0 text-white" style="font-size: 26px; color:#ffffff; text-align:center;">
|
||||
@money($transfer->amount, $transfer->from_currency_code, true)
|
||||
@money($transfer->expense_transaction->amount, $transfer->expense_transaction->currency_code, true)
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -126,7 +126,7 @@
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
@date($transfer->transferred_at)
|
||||
@date($transfer->expense_transaction->paid_at)
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@ -138,7 +138,7 @@
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ $payment_methods[$transfer->payment_method] }}
|
||||
{{ $payment_methods[$transfer->expense_transaction->payment_method] }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@ -150,7 +150,7 @@
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ $transfer->reference }}
|
||||
{{ $transfer->expense_transaction->reference }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@ -162,7 +162,7 @@
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ $transfer->description }}
|
||||
{{ $transfer->expense_transaction->description }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@ -179,7 +179,7 @@
|
||||
</h5>
|
||||
|
||||
<p class="font-weight-bold mb-0 text-white" style="font-size: 26px; color:#ffffff; text-align:center;">
|
||||
@money($transfer->amount, $transfer->from_currency_code, true)
|
||||
@money($transfer->expense_transaction->amount, $transfer->expense_transaction->currency_code, true)
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user