Invoice example
@if (pathinfo($bill->invoice_file, PATHINFO_EXTENSION) == 'pdf') @else @endif