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;
|
return $transferTemplate;
|
||||||
}
|
}
|
||||||
|
|
||||||
$transferTemplate = setting('transfer.template') ?: 'default';
|
return setting('transfer.template');
|
||||||
|
|
||||||
return $transferTemplate;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getRouteButtonAddNew($routeButtonAddNew)
|
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('title', trans_choice('general.transfers', 1))
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<x-trasnfers.template.second
|
<x-transfers.template.second
|
||||||
:transfer="$transfer"
|
:transfer="$transfer"
|
||||||
/>
|
/>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -167,7 +167,7 @@
|
|||||||
</h5>
|
</h5>
|
||||||
|
|
||||||
<p class="font-weight-bold mb-0 text-white" style="font-size: 26px; color:#ffffff; text-align:center;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
@ -34,7 +34,7 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
@ -46,7 +46,7 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||||
{{ $transfer->reference }}
|
{{ $transfer->expense_transaction->reference }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
@ -58,7 +58,7 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||||
{{ $transfer->description }}
|
{{ $transfer->expense_transaction->description }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
@ -75,7 +75,7 @@
|
|||||||
</h5>
|
</h5>
|
||||||
|
|
||||||
<p class="font-weight-bold mb-0 text-white" style="font-size: 26px; color:#ffffff; text-align:center;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -126,7 +126,7 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
@ -138,7 +138,7 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
@ -150,7 +150,7 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||||
{{ $transfer->reference }}
|
{{ $transfer->expense_transaction->reference }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
@ -162,7 +162,7 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||||
{{ $transfer->description }}
|
{{ $transfer->expense_transaction->description }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
@ -179,7 +179,7 @@
|
|||||||
</h5>
|
</h5>
|
||||||
|
|
||||||
<p class="font-weight-bold mb-0 text-white" style="font-size: 26px; color:#ffffff; text-align:center;">
|
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user