@extends('admin.layouts.default') @section('head') {{ Config::get('backend.web_title', '網站內容管理系統') }} @stop @section('content')
{{ Form::model($inputs,array('method'=>'get')) }}
{{ Form::text('keyword',null,array('class' => 'form-control')) }}
@if (isset($inputs['keyword'])) 清除搜尋 @endif
{{ Form::close() }}
共 {{ $list->getLastPage() }} 頁, {{ $list->getTotal() }} 筆資料,一頁顯示
{{ Form::select('per_page',array('20' => '20', '40' => '40', '60' => '60'), $per_page, array('id' => 'js_per_page', 'class' => 'form-control', 'data-url' => url('backend/setting/per-page'))) }}
筆資料
@if ($list->getTotal() > 0)
{{-- 品牌的做法有問題,先註解掉 --}} @if (isset($list)) @foreach ($list as $key => $value) {{-- 品牌的做法有問題,先註解掉 --}} @endforeach @endif
圖片預覽 產品名稱 產品分類 庫存品牌操作
@if (!empty($value->products_images->first()->file_name) && file_exists('uploads/products/thumb/'.$value->products_images->first()->file_name)) {{ HTML::image('uploads/products/thumb/'.$value->products_images->first()->file_name) }} @else 未上傳圖片 @endif {{ $value->name }} @if ($value->products_tags->count() > 0) @foreach ($value->products_tags as $element) {{ $element->name }} @endforeach @endif {{ $value->stock }}{{ $value->brand['name'] }}
{{-- 多選動作選單 --}} {{-- /多選動作選單 --}} {{-- 分頁 --}}
{{ $list->appends($page_appends)->links() }}
@endif
@stop