<style type="text/css">
    .company_footer img {
        height: {!! $company_footer->height ?? '' !!}px !important;
        width: {!! $company_footer->width ?? '' !!}px !important;
        {!! isset($company_footer->top_margin) && $company_footer->top_margin != '' ? 'margin-top:' . $company_footer->top_margin . 'px !important;' : '' !!}
        {!! isset($company_footer->bottom_margin) && $company_footer->bottom_margin != '' ? 'margin-bottom:' . $company_footer->bottom_margin . 'px !important;' : '' !!}
        {!! isset($company_footer->left_margin) && $company_footer->left_margin != '' ? 'margin-left:' . $company_footer->left_margin . 'px !important;' : '' !!}
        {!! isset($company_footer->right_margin) && $company_footer->right_margin != '' ? 'margin-right:' . $company_footer->right_margin . 'px !important;' : '' !!}
        {!! isset($company_footer->top_padding) && $company_footer->top_padding != '' ? 'padding-top:' . $company_footer->top_padding . 'px !important;' : '' !!}
        {!! isset($company_footer->bottom_padding) && $company_footer->bottom_padding != '' ? 'padding-bottom:' . $company_footer->bottom_padding . 'px !important;' : '' !!}
        {!! isset($company_footer->left_padding) && $company_footer->left_padding != '' ? 'padding-left:' . $company_footer->left_padding . 'px !important;' : '' !!}
        {!! isset($company_footer->right_padding) && $company_footer->right_padding != '' ? 'padding-right:' . $company_footer->right_padding . 'px !important;' : '' !!}
    }
</style>

<tfoot class="report-footer footer">
    <tr>
        <td class="report-footer-cell">
            <div class="company_footer">
                @if (isset($company_footer->image_url) && $company_footer->image_url != '')
                    <img class="border-0 footer_img" src="{!! getTempUrl($company_footer->image_url) !!}" alt="Footer"/>
                @else
                  {{--Copyright © {!! $sale_invoice->getCompany->name !!}.--}}
                    <style type="text/css">
                        .company_footer {
                            height: {!! $company_footer->height ?? '' !!}px !important;
                        }
                    </style>
                @endif
            </div>
        </td>
    </tr>
</tfoot>