├── public ├── favicon.ico ├── robots.txt ├── css │ ├── images │ │ ├── ui-icons_2694e8_256x240.png │ │ ├── ui-icons_2e83ff_256x240.png │ │ ├── ui-icons_3d80b3_256x240.png │ │ ├── ui-icons_72a7cf_256x240.png │ │ ├── ui-icons_ffffff_256x240.png │ │ ├── ui-bg_glass_100_e4f1fb_1x400.png │ │ ├── ui-bg_glass_50_3baae3_1x400.png │ │ ├── ui-bg_glass_80_d7ebf9_1x400.png │ │ ├── ui-bg_diagonals-thick_90_eeeeee_40x40.png │ │ ├── ui-bg_highlight-hard_100_f2f5f7_1x100.png │ │ ├── ui-bg_highlight-hard_70_000000_1x100.png │ │ ├── ui-bg_highlight-soft_100_deedf7_1x100.png │ │ └── ui-bg_highlight-soft_25_ffef8f_1x100.png │ └── jquery.appendGrid-1.7.1.css ├── .htaccess ├── web.config ├── index.php └── js │ └── checkbox.js ├── database ├── .gitignore ├── factories │ ├── Product_CategoryFactory.php │ ├── CustomerFactory.php │ ├── ManufacturerFactory.php │ ├── ProductFactory.php │ └── UserFactory.php ├── seeds │ ├── CommonTableSeeder.php │ ├── DatabaseSeeder.php │ ├── UserTableSeeder.php │ └── CompanyTableSeeder.php └── migrations │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2017_12_26_033923_creat_product_categories_table.php │ ├── 2017_12_26_035009_creat_common_codes_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2018_01_08_065945_creat_sale_table.php │ ├── 2017_12_17_080108_creat_companys_table.php │ ├── 2018_01_04_154235_creat_purchase_table.php │ ├── 2017_12_19_160045_creat_customer_table.php │ ├── 2017_12_20_070714_creat_manufacturer_table.php │ ├── 2018_01_08_070007_creat_sale_details_table.php │ ├── 2018_01_04_155100_creat_purchase_detail_table.php │ ├── 2017_12_26_035014_creat_products_table.php │ └── 2017_12_14_135113_entrust_setup_tables.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── cache │ └── .gitignore │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── resources ├── views │ ├── product_categories │ │ ├── show.blade.php │ │ ├── child.blade.php │ │ ├── index.blade.php │ │ ├── child_select.blade.php │ │ ├── create.blade.php │ │ └── edit.blade.php │ ├── vendor │ │ ├── mail │ │ │ ├── markdown │ │ │ │ ├── panel.blade.php │ │ │ │ ├── table.blade.php │ │ │ │ ├── footer.blade.php │ │ │ │ ├── promotion.blade.php │ │ │ │ ├── subcopy.blade.php │ │ │ │ ├── button.blade.php │ │ │ │ ├── header.blade.php │ │ │ │ ├── promotion │ │ │ │ │ └── button.blade.php │ │ │ │ ├── layout.blade.php │ │ │ │ └── message.blade.php │ │ │ └── html │ │ │ │ ├── table.blade.php │ │ │ │ ├── header.blade.php │ │ │ │ ├── subcopy.blade.php │ │ │ │ ├── promotion.blade.php │ │ │ │ ├── footer.blade.php │ │ │ │ ├── panel.blade.php │ │ │ │ ├── promotion │ │ │ │ └── button.blade.php │ │ │ │ ├── message.blade.php │ │ │ │ ├── button.blade.php │ │ │ │ └── layout.blade.php │ │ ├── pagination │ │ │ ├── simple-default.blade.php │ │ │ ├── simple-bootstrap-4.blade.php │ │ │ ├── default.blade.php │ │ │ ├── semantic-ui.blade.php │ │ │ └── bootstrap-4.blade.php │ │ └── notifications │ │ │ └── email.blade.php │ ├── product │ │ ├── child.blade.php │ │ ├── child_select.blade.php │ │ ├── index.blade.php │ │ └── show.blade.php │ ├── home.blade.php │ ├── permissions │ │ ├── show.blade.php │ │ ├── edit.blade.php │ │ ├── index.blade.php │ │ └── child.blade.php │ ├── commoncode │ │ ├── show.blade.php │ │ ├── index.blade.php │ │ ├── edit.blade.php │ │ └── create.blade.php │ ├── users │ │ ├── show.blade.php │ │ ├── edit_profile.blade.php │ │ ├── edit.blade.php │ │ ├── index.blade.php │ │ └── create.blade.php │ ├── roles │ │ ├── show.blade.php │ │ └── index.blade.php │ ├── sale │ │ ├── index.blade.php │ │ └── show.blade.php │ ├── sale_return │ │ ├── index.blade.php │ │ └── show.blade.php │ ├── purchase │ │ ├── index.blade.php │ │ └── show.blade.php │ ├── purchase_return │ │ ├── index.blade.php │ │ └── show.blade.php │ ├── auth │ │ └── passwords │ │ │ └── email.blade.php │ ├── company │ │ ├── index.blade.php │ │ └── show.blade.php │ ├── customer │ │ ├── index.blade.php │ │ └── show.blade.php │ ├── manufacturer │ │ ├── index.blade.php │ │ └── show.blade.php │ └── welcome.blade.php ├── assets │ ├── sass │ │ ├── app.scss │ │ └── _variables.scss │ └── js │ │ ├── components │ │ └── ExampleComponent.vue │ │ ├── app.js │ │ └── bootstrap.js └── lang │ └── en │ ├── pagination.php │ ├── auth.php │ └── passwords.php ├── .gitattributes ├── .gitignore ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── app ├── Customer.php ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── TrimStrings.php │ │ ├── RedirectIfAuthenticated.php │ │ └── TrustProxies.php │ ├── Controllers │ │ ├── Controller.php │ │ ├── HomeController.php │ │ └── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── ResetPasswordController.php │ │ │ ├── LoginController.php │ │ │ └── RegisterController.php │ └── Kernel.php ├── Company.php ├── Manufacturer.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── Sales.php ├── Purchase.php ├── Role.php ├── Sale_details.php ├── PurchaseDetail.php ├── Common_Code.php ├── Product_Category.php ├── User.php ├── Services │ └── Menu.php ├── Permission.php ├── Console │ └── Kernel.php ├── Product.php └── Exceptions │ └── Handler.php ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── webpack.mix.js ├── server.php ├── .env.example ├── config ├── view.php ├── services.php ├── broadcasting.php ├── filesystems.php ├── trustedproxy.php ├── queue.php └── cache.php ├── phpunit.xml ├── package.json ├── readme.md ├── composer.json ├── artisan └── mysql_function_query.txt /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /resources/views/product_categories/show.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/panel.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/table.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/footer.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/promotion.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/subcopy.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/button.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }}: {{ $url }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/header.blade.php: -------------------------------------------------------------------------------- 1 | [{{ $slot }}]({{ $url }}) 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/promotion/button.blade.php: -------------------------------------------------------------------------------- 1 | [{{ $slot }}]({{ $url }}) 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/table.blade.php: -------------------------------------------------------------------------------- 1 |
| 4 | {{ Illuminate\Mail\Markdown::parse($slot) }} 5 | | 6 |
| 6 | {{ Illuminate\Mail\Markdown::parse($slot) }} 7 | | 8 |
4 |
|
12 |
4 |
|
12 |
4 |
|
18 |
{{ $message }}
8 |{{ $message }}
19 || 商品類別 | 25 |Action | 26 |
|---|
{{ $message }}
19 || No | 25 |銷貨單號 | 26 |客戶 | 27 |經辦人 | 28 |日期 | 29 |Action | 30 |
|---|---|---|---|---|---|
| {{ ++$i }} | 34 |{{ $sale->sales_no }} | 35 |{{ $sale->customer->customer_name }} | 36 |{{ $sale->user->user_name }} | 37 |{{ $sale->created_at }} | 38 |39 | 查看明細 40 | | 41 |
{{ $message }}
19 || No | 25 |銷貨單號 | 26 |客戶 | 27 |經辦人 | 28 |日期 | 29 |Action | 30 |
|---|---|---|---|---|---|
| {{ ++$i }} | 34 |{{ $sale->sales_no }} | 35 |{{ $sale->customer->customer_name }} | 36 |{{ $sale->user->user_name }} | 37 |{{ $sale->created_at }} | 38 |39 | 查看明細 40 | | 41 |
{{ $message }}
19 || No | 25 |進貨單號 | 26 |廠商 | 27 |經辦人 | 28 |日期 | 29 |Action | 30 |
|---|---|---|---|---|---|
| {{ ++$i }} | 34 |{{ $purchase->purchases_no }} | 35 |{{ $purchase->manufacturer->manufacturer_name }} | 36 |{{ $purchase->user->user_name }} | 37 |{{ $purchase->created_at }} | 38 |39 | 查看明細 40 | | 41 |
{{ $message }}
19 || No | 25 |進貨退出單號 | 26 |廠商 | 27 |經辦人 | 28 |日期 | 29 |Action | 30 |
|---|---|---|---|---|---|
| {{ ++$i }} | 34 |{{ $purchase->purchases_no }} | 35 |{{ $purchase->manufacturer->manufacturer_name }} | 36 |{{ $purchase->user->user_name }} | 37 |{{ $purchase->created_at }} | 38 |39 | 查看明細 40 | | 41 |
{{ $message }}
19 || Name | 27 |Description | 28 |Status | 29 |Action | 30 |
|---|
{{ $message }}
19 || No | 25 |代碼名稱 | 26 |父類別 | 27 |對應系統 | 28 |Action | 29 ||
|---|---|---|---|---|---|
| {{ ++$i }} | 33 |{{ $common->code_name }} | 34 | @if($common->parent_id=='#') 35 |# | 36 | @else 37 |{{ $common->parent->code_name }} | 38 | @endif 39 |{{ $common->permission->display_name }} | 40 |41 | 顯示 42 | {{--@permission('company-edit')--}} 43 | 編輯 44 | {{--@endpermission--}} 45 | | 46 |
29 |
|
51 |
{{ $message }}
19 || No | 25 |Name | 26 |Description | 27 |Action | 28 |
|---|---|---|---|
| {{ ++$i }} | 32 |{{ $role->display_name }} | 33 |{{ $role->description }} | 34 |35 | @permission('role-show') 36 | Show 37 | @endpermission 38 | @permission('role-edit') 39 | @if($role->id != 1) 40 | Edit 41 | @endif 42 | @endpermission 43 | @permission('role-delete') 44 | @if($role->id != 1) 45 | {!! Form::open(['method' => 'DELETE','route' => ['roles.destroy', $role->id],'style'=>'display:inline']) !!} 46 | {!! Form::submit('Delete', ['class' => 'btn btn-danger']) !!} 47 | {!! Form::close() !!} 48 | @endif 49 | @endpermission 50 | | 51 |
{{ $message }}
19 || No | 25 |編號 | 26 |名稱 | 27 |價格 | 28 |供應商 | 29 |庫存 | 30 |Action | 31 |
|---|---|---|---|---|---|---|
| {{ ++$i }} | 35 |{{ $product->product_code }} | 36 |{{ $product->product_name }} | 37 |{{ $product->product_price }} | 38 |{{ $product->manufacturer->manufacturer_name }} | 39 |{{ $product->product_stock }} | 40 |41 | Show 42 | @permission('product-edit') 43 | Edit 44 | @endpermission 45 | @permission('product_status') 46 | @if($product->product_status == 0) 47 | 啟用 48 | @else 49 | 禁用 50 | @endif 51 | @endpermission 52 | | 53 |
{{ $message }}
19 || No | 25 |代碼 | 26 |名稱 | 27 |負責人 | 28 |電話 | 29 |傳真 | 30 |網址 | 32 |郵遞區號 | 33 |地址 | 34 |統編 | 35 |Action | 36 ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ ++$i }} | 40 |{{ $company->company_code }} | 41 |{{ $company->company_name }} | 42 |{{ $company->company_owner }} | 43 |{{ $company->company_phone }} | 44 |{{ $company->company_fax }} | 45 |{{ $company->company_email }} | 46 |{{ $company->company_url }} | 47 |{{ $company->company_ZipCode }} | 48 |{{ $company->company_address }} | 49 |{{ $company->company_GUInumber }} | 50 |51 | Show 52 | {{--@permission('company-edit')--}} 53 | Edit 54 | {{--@endpermission--}} 55 | | 56 |
{{ $message }}
19 || No | 25 |客戶編號 | 26 |名稱 | 27 |負責人 | 28 |聯絡人 | 29 |電話 | 30 |傳真 | 31 |郵遞區號 | 33 |地址 | 34 |統編 | 35 |Action | 36 ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ ++$i }} | 40 |{{ $customer->customer_code }} | 41 |{{ $customer->customer_name }} | 42 |{{ $customer->customer_owner }} | 43 |{{ $customer->customer_liaison }} | 44 |{{ $customer->customer_phone }} | 45 |{{ $customer->customer_fax }} | 46 |{{ $customer->customer_email }} | 47 |{{ $customer->customer_ZipCode }} | 48 |{{ $customer->customer_address }} | 49 |{{ $customer->customer_GUInumber }} | 50 |51 | Show 52 | {{--@permission('company-edit')--}} 53 | Edit 54 | {{--@endpermission--}} 55 | | 56 |
{{ $message }}
19 || No | 25 |廠商編號 | 26 |名稱 | 27 |負責人 | 28 |聯絡人 | 29 |電話 | 30 |傳真 | 31 |郵遞區號 | 33 |地址 | 34 |統一編號 | 35 |Action | 36 ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ ++$i }} | 40 |{{ $manufacturer->manufacturer_code }} | 41 |{{ $manufacturer->manufacturer_name }} | 42 |{{ $manufacturer->manufacturer_owner }} | 43 |{{ $manufacturer->manufacturer_liaison }} | 44 |{{ $manufacturer->manufacturer_phone }} | 45 |{{ $manufacturer->manufacturer_fax }} | 46 |{{ $manufacturer->manufacturer_email }} | 47 |{{ $manufacturer->manufacturer_ZipCode }} | 48 |{{ $manufacturer->manufacturer_address }} | 49 |{{ $manufacturer->manufacturer_GUInumber }} | 50 |51 | Show 52 | {{--@permission('company-edit')--}} 53 | Edit 54 | {{--@endpermission--}} 55 | | 56 |
| No | 39 |商品 | 40 |數量 | 41 |價錢 | 42 |小計 | 43 |
|---|---|---|---|---|
| 48 | {{$detail->sale_detail_no}} 49 | | 50 |51 | {{ $detail->product->product_name }} 52 | | 53 |54 | {{$detail->sale_qty}} 55 | | 56 |57 | {{$detail->sale_price}} 58 | | 59 |60 | {{$detail->sale_qty*$detail->sale_price}} 61 | | 62 | 63 |
| 67 | | 68 | | 69 | | 總計 | 70 |{{$total}} | 71 |
| No | 39 |商品 | 40 |數量 | 41 |價錢 | 42 |小計 | 43 |
|---|---|---|---|---|
| 48 | {{$detail->sale_detail_no}} 49 | | 50 |51 | {{ $detail->product->product_name }} 52 | | 53 |54 | {{$detail->sale_qty}} 55 | | 56 |57 | {{$detail->sale_price}} 58 | | 59 |60 | {{$detail->sale_qty*$detail->sale_price}} 61 | | 62 | 63 |
| 67 | | 68 | | 69 | | 總計 | 70 |{{$total}} | 71 |
| No | 39 |商品 | 40 |數量 | 41 |價錢 | 42 |小計 | 43 |
|---|---|---|---|---|
| 48 | {{$detail->purchase_detail_no}} 49 | | 50 |51 | {{ $detail->product->product_name }} 52 | | 53 |54 | {{$detail->purchase_qty}} 55 | | 56 |57 | {{$detail->purchase_price}} 58 | | 59 |60 | {{$detail->purchase_qty*$detail->purchase_price}} 61 | | 62 | 63 |
| 67 | | 68 | | 69 | | 總計 | 70 |{{$total}} | 71 |
| No | 39 |商品 | 40 |數量 | 41 |價錢 | 42 |小計 | 43 |
|---|---|---|---|---|
| 48 | {{$detail->purchase_detail_no}} 49 | | 50 |51 | {{ $detail->product->product_name }} 52 | | 53 |54 | {{$detail->purchase_qty}} 55 | | 56 |57 | {{$detail->purchase_price}} 58 | | 59 |60 | {{$detail->purchase_qty*$detail->purchase_price}} 61 | | 62 | 63 |
| 67 | | 68 | | 69 | | 總計 | 70 |{{$total}} | 71 |
| 物料名稱 | 78 |數量 | 79 |
{{ $message }}
21 || No | 27 |Name | 28 |Roles | 30 |Status | 31 |Action | 32 ||
|---|---|---|---|---|---|
| {{ ++$i }} | 36 |{{ $user->user_name }} | 37 |{{ $user->user_email }} | 38 |39 | @if(!empty($user->roles)) 40 | @foreach($user->roles as $v) 41 | 42 | @endforeach 43 | @endif 44 | | 45 |46 | @if($user->user_status == 1) 47 | 顯示 48 | @else 49 | 不顯示 50 | @endif 51 | | 52 |53 | @permission('user-show') 54 | Show 55 | @endpermission 56 | @permission('user-edit') 57 | @if($user->user_id != 1) 58 | Edit 59 | @endif 60 | @endpermission 61 | @permission('user-status') 62 | @if($user->user_status == 0) 63 | 啟用 64 | @else 65 | 禁用 66 | @endif 67 | @endpermission 68 | @permission('user-delete') 69 | {!! Form::open(['method' => 'DELETE','route' => ['users.destroy', $user->user_id],'style'=>'display:inline']) !!} 70 | {!! Form::submit('Delete', ['class' => 'btn btn-danger']) !!} 71 | {!! Form::close() !!} 72 | @endpermission 73 | | 74 |