  
- $filename_doc = $violationDocument->document_filename
- $filename_ext = $violationDocument->document_ext_filename

- $extraUrl = $violationDocument->getExtUrl();
- $webUrl = $violationDocument->getForWebUrl();

.row
  -if(endsWith($filename_doc, '.pdf'))
    %object(data="#{$violationDocument->getUrl()}" type="application/pdf" width="100%" height="600")
      %a.icon-download(href="#{$violationDocument->getUrl()}")
  -else
    %img(src="#{$violationDocument->getUrl()}")



- if(isset($extraUrl) && strlen($extraUrl) > 0)
  .row
    %img(src="#{$extraUrl}")                   
                    
- if(isset($webUrl) && strlen($webUrl) > 0)
  .row
    %img(src="#{$webUrl}")     