
- $countryList = CountryList::localized();

%h3
  = t('Vehicle', array(),'plateAutorizationDetails')
  -if(user()->checkAccess('plate_auth_view_ids'))
    = '#'
    = $vehicle->ID
  -if(user()->checkAccess('vehicle_management') && user()->checkAccess('vehicle_update'))
    %a(href="#{url('vehicle/update', array('id'=>$vehicle->ID))}")
      %i.icon-pencil

%table.table.table-striped.table-condensed
  %thead
    %tr
      %th
      %th
  %tbody
    %tr
      %td
        =$vehicle->getAttributeLabel('Targa')
      %td.license-plate
        =$vehicle->Targa
    %tr
      %td
        =$vehicle->getAttributeLabel('Descrizione')
      %td
        =$vehicle->Descrizione
    %tr
      %td
        =$vehicle->getAttributeLabel('Nationality')
      %td
        -if($this->printCountryFlag($vehicle->Nationality))
          = $countryList[$vehicle->Nationality]
    %tr
      %td
        =$vehicle->getAttributeLabel('Classe')
      %td
        =$vehicle->Classe
    - if(!$isBlack)
      %tr
        %td
          =$vehicle->getAttributeLabel('type')
        %td
          =t($vehicle->type)
    %tr
      %td
        =$vehicle->getAttributeLabel('category')
      %td
        =$vehicle->category
    - if(!$isBlack)
      %tr
        %td
          =$vehicle->getAttributeLabel('source')
        %td
          =$vehicle->source
      %tr
        %td
          =$vehicle->getAttributeLabel('action')
        %td
          =$vehicle->action
    -if(!$isBlack)
      %tr
        %td
          =$vehicle->getAttributeLabel('note')
        %td
          =$vehicle->note
