@extends('admin.main')
@section('content')
<style>
    .additional-info{
        display:none;
    }
</style>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
    <h1>
       {{ $selectPrintFiles[0]->TemplateName  }} Print Files
        <!-- <small>Optional description</small> -->
    </h1>
    <ol class="breadcrumb">
        <li><a href="{{ url ('admin') }}"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li><a href="{{ url ('admin/print-files') }}"><i class="fa fa-paint-brush"></i> Print Files</a></li>
        <li class="active">{{ $selectPrintFiles[0]->TemplateName  }} Print Files</li>
    </ol>
    </section>

    <!-- Main content -->
    <section class="content container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="box">
                    <div class="box-header with-border">
                        <h4 class="box-title">Print File</h4>
                    </div>
                    <div class="box-body">
                        <div class="row">
                            <div class="col-md-12">
                                <table class="table table-bordered table-condensed">
                                    <tr>
                                        <th class="col-sm-1 text-center">#</th>
                                        <th class="col-sm-3 text-center">Print File</th>
                                        <th class="text-center">Type</th>
                                        <th class="text-center">Size</th>
                                        <th class="text-center">Action</th>
                                    </tr>
                                    @foreach ($selectPrintFiles as $key => $printfile)
                                        <tr>
                                            <td class="col-sm-1 text-center">{{ ++$key }}</div>
                                            </div>
                                            <td class="col-sm-3 text-center">
                                                <div class='print-file-holder' style="border: none;">
                                                <img class="svg-print-file-preview" src="{{ config('site_config.images_directory') . $printfile->Path }}" style="height: 100%;"  />
                                                </div>
                                            </td>
                                            <td class="text-center">{{ $printfile->Type  }}</td>
                                            <td class="text-center">{{ $printfile->Size  }}</td>
                                            <td class="text-center">
                                                <button class="btn btn-danger btn-delete-print-file" data-id="{{ $printfile->Id }}"><i class="fa fa-trash"></i> Delete</button>
                                            </td>
                                        </tr>
                                    @endforeach
                                    
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="box-footer">
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- /.content -->
</div>
@endsection