add show footer class..
This commit is contained in:
		@@ -437,6 +437,9 @@ abstract class DocumentShow extends Base
 | 
				
			|||||||
        $this->classHeaderAmount = $this->getClassHeaderAmount($type, $classHeaderAmount);
 | 
					        $this->classHeaderAmount = $this->getClassHeaderAmount($type, $classHeaderAmount);
 | 
				
			||||||
        $this->classHeaderDueAt = $this->getClassHeaderDueAt($type, $classHeaderDueAt);
 | 
					        $this->classHeaderDueAt = $this->getClassHeaderDueAt($type, $classHeaderDueAt);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $this->classFooterHistories = $this->getClassFooterHistories($type, $classFooterHistories);
 | 
				
			||||||
 | 
					        $this->classFooterTransactions = $this->getClassFooterTransactions($type, $classFooterTransactions);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $this->hideHeaderStatus = $hideHeaderStatus;
 | 
					        $this->hideHeaderStatus = $hideHeaderStatus;
 | 
				
			||||||
        $this->hideHeaderContact = $hideHeaderContact;
 | 
					        $this->hideHeaderContact = $hideHeaderContact;
 | 
				
			||||||
        $this->hideHeaderAmount = $hideHeaderAmount;
 | 
					        $this->hideHeaderAmount = $hideHeaderAmount;
 | 
				
			||||||
@@ -1027,6 +1030,36 @@ abstract class DocumentShow extends Base
 | 
				
			|||||||
        return 'col-md-2';
 | 
					        return 'col-md-2';
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    protected function getClassFooterHistories($type, $classFooterHistories)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (!empty($classFooterHistories)) {
 | 
				
			||||||
 | 
					            return $classFooterHistories;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $class = $this->getClassFromConfig($type, 'footer_histories');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (!empty($class)) {
 | 
				
			||||||
 | 
					            return $class;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        return 'col-sm-6 col-md-6 col-lg-6 col-xl-6';
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    protected function getClassFooterTransactions($type, $classFooterTransactions)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (!empty($classFooterTransactions)) {
 | 
				
			||||||
 | 
					            return $classFooterTransactions;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $class = $this->getClassFromConfig($type, 'footer_transactions');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (!empty($class)) {
 | 
				
			||||||
 | 
					            return $class;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        return 'col-sm-6 col-md-6 col-lg-6 col-xl-6';
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    protected function getTimelineStatuses($type, $hideTimelineStatuses)
 | 
					    protected function getTimelineStatuses($type, $hideTimelineStatuses)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        if (!empty($hideTimelineStatuses)) {
 | 
					        if (!empty($hideTimelineStatuses)) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -78,7 +78,7 @@
 | 
				
			|||||||
    @endif
 | 
					    @endif
 | 
				
			||||||
@stack('timeline_end')
 | 
					@stack('timeline_end')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@stack('invoice_start')
 | 
					@stack('document_start')
 | 
				
			||||||
    <x-documents.show.document
 | 
					    <x-documents.show.document
 | 
				
			||||||
        type="{{ $type }}"
 | 
					        type="{{ $type }}"
 | 
				
			||||||
        :document="$document"
 | 
					        :document="$document"
 | 
				
			||||||
@@ -120,7 +120,7 @@
 | 
				
			|||||||
        text-price="{{ $textPrice }}"
 | 
					        text-price="{{ $textPrice }}"
 | 
				
			||||||
        text-amount="{{ $textAmount }}"
 | 
					        text-amount="{{ $textAmount }}"
 | 
				
			||||||
    />
 | 
					    />
 | 
				
			||||||
@stack('invoice_end')
 | 
					@stack('document_end')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@stack('attachment_start')
 | 
					@stack('attachment_start')
 | 
				
			||||||
    @if (!$hideAttachment)
 | 
					    @if (!$hideAttachment)
 | 
				
			||||||
@@ -139,10 +139,12 @@
 | 
				
			|||||||
            :document="$document"
 | 
					            :document="$document"
 | 
				
			||||||
            :histories="$histories"
 | 
					            :histories="$histories"
 | 
				
			||||||
            :transactions="$transactions"
 | 
					            :transactions="$transactions"
 | 
				
			||||||
 | 
					            class-footer-histories="{{ $classFooterHistories }}"
 | 
				
			||||||
            hide-footer-histories="{{ $hideFooterHistories }}"
 | 
					            hide-footer-histories="{{ $hideFooterHistories }}"
 | 
				
			||||||
            text-histories="{{ $textHistories }}"
 | 
					            text-histories="{{ $textHistories }}"
 | 
				
			||||||
            text-history-status="{{ $textHistoryStatus }}"
 | 
					            text-history-status="{{ $textHistoryStatus }}"
 | 
				
			||||||
            hide-footer-transactions="{{ $hideFooterTransactions }}"
 | 
					            hide-footer-transactions="{{ $hideFooterTransactions }}"
 | 
				
			||||||
 | 
					            class-footer-transactions="{{ $classFooterTransactions }}"
 | 
				
			||||||
        />
 | 
					        />
 | 
				
			||||||
    @endif
 | 
					    @endif
 | 
				
			||||||
@stack('row_footer_end')
 | 
					@stack('row_footer_end')
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
<div class="row">
 | 
					<div class="row">
 | 
				
			||||||
    @stack('row_footer_histories_start')
 | 
					    @stack('row_footer_histories_start')
 | 
				
			||||||
        @if (!$hideFooterHistories)
 | 
					        @if (!$hideFooterHistories)
 | 
				
			||||||
            <div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
 | 
					            <div class="{{ $classFooterHistories }}">
 | 
				
			||||||
                <x-documents.show.histories
 | 
					                <x-documents.show.histories
 | 
				
			||||||
                    type="{{ $type }}"
 | 
					                    type="{{ $type }}"
 | 
				
			||||||
                    :document="$document"
 | 
					                    :document="$document"
 | 
				
			||||||
@@ -15,7 +15,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @stack('row_footer_transactions_start')
 | 
					    @stack('row_footer_transactions_start')
 | 
				
			||||||
        @if (!$hideFooterTransactions) 
 | 
					        @if (!$hideFooterTransactions) 
 | 
				
			||||||
            <div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
 | 
					            <div class="{{ $classFooterTransactions }}">
 | 
				
			||||||
                <x-documents.show.transactions
 | 
					                <x-documents.show.transactions
 | 
				
			||||||
                    type="{{ $type }}"
 | 
					                    type="{{ $type }}"
 | 
				
			||||||
                    :document="$document"
 | 
					                    :document="$document"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user