@extends('admin/layouts.master') @section('title', '新增課程 - Admin') @section('body') @include('admin.message') {{ __('adminstaticword.Add') }} {{ __('adminstaticword.Course') }} << {{ __('adminstaticword.Back') }} {{ csrf_field() }} {{ __('adminstaticword.Category') }}:* {{ __('adminstaticword.SelectanOption') }} @foreach($category as $cate) id ? "selected" : "" }}>{{$cate->title}} @endforeach {{-- 次要分類 --}} {{-- {{ __('adminstaticword.SubCategory') }}:* --}} {{-- 子分類 {{ __('adminstaticword.ChildCategory') }}: --}} {{-- 選擇教練 --}} {{ __('adminstaticword.SelectUser') }}* {{ __('adminstaticword.SelectanOption') }} @foreach($users as $user) @if(!$user->trashed()) id ? "selected" : "" }}>{{$user->fname}} @endif @endforeach {{-- 控制項 --}} {{ __('adminstaticword.Select') }}{{ __('adminstaticword.ClassType') }}* @php $courseType = config( 'course' )['type']; @endphp @foreach ($courseType as $value => $typeName) {{$typeName}} @endforeach {{-- 加值頻道 --}} {{ __('adminstaticword.Select') }}{{ __('adminstaticword.PrivateCourse') }}: * {{ __('adminstaticword.SelectanOption') }} @if (isset($plusChannels)) @foreach ($plusChannels as $data) @foreach($data['child_plusChannel'] as $value ) id ? "selected" : "" }}>{{ $value->name }} @endforeach @endforeach @endif {{-- 訓練計畫 --}} 選擇{{ __('adminstaticword.BundleCourse') }}: @if (isset($bundles)) @foreach ($bundles as $item ) id, old("bundle_id")) ? "selected":"") }}@endif>{{ $item->title }} @endforeach @endif {{-- 直播 --}} 選擇直播日期 {{-- 語系 {{ __('adminstaticword.Language') }}: * @php $languages = App\CourseLanguage::all(); @endphp @foreach($languages as $caat) language_id == $caat->id ? 'selected' : "" }} value="{{ $caat->id }}">{{ $caat->name }} @endforeach --}} {{-- Select Refund Policy @php $ref_policy = App\RefundPolicy::all(); @endphp {{ __('adminstaticword.SelectRefundPolicy') }} {{ __('frontstaticword.SelectanOption') }} @foreach($ref_policy as $ref) {{ $ref->name }} @endforeach --}} {{ __('adminstaticword.Title') }}: * {{ __('adminstaticword.ShortDetail') }}: * {{ (old('short_detail')) }} {{-- {{ __('adminstaticword.Slug') }}: * {{ __('adminstaticword.Requirements') }}: {{ (old('requirement')) }} --}} {{-- 詳細內容 --}} {{ __('adminstaticword.Detail') }}: * {{ (old('detail')) }} {{-- 適用 --}} {{-- 課程建議 --}} {{-- 不適用情形 --}} {{-- 事前準備 --}} {{-- 身體反應 --}} {{-- 備註 --}} {{-- 卡洛里 --}} {{ __('adminstaticword.Calorie') }}: {{-- 課程強度 --}} 課程強度: {{ __('adminstaticword.SelectanOption') }} @foreach ($courseLevel as $item) id ? "selected" : "" }}>{{ $item->name }} @endforeach {{-- 帶貨商品 --}} 帶貨商品: @foreach ($product as $item) id, old("course_and_commodity")) ? "selected":"") }}@endif>{{ $item->name }} @endforeach 配件: @foreach ($accessory as $item) id, old("course_and_accessory")) ? "selected":"") }}@endif>{{ $item->name }} @endforeach {{-- 偏好設定 --}} 偏好設定 {{-- 性別 --}} {{ __('adminstaticword.Sex') }}: {{ __('adminstaticword.SelectanOption') }} @foreach ($gender as $key => $value ) {{$value}} @endforeach {{-- BMI --}} {{ __('adminstaticword.BMI') }}: {{ __('adminstaticword.SelectanOption') }} @foreach ($bmi as $key => $value) {{$value}} @endforeach {{-- 健身經驗 --}} {{ __('adminstaticword.Experience') }}: {{ __('adminstaticword.SelectanOption') }} @foreach ($fitness_level as $key => $value) {{$value}} @endforeach {{-- 健身目標 --}} {{ __('adminstaticword.Target') }}: {{ __('adminstaticword.SelectanOption') }} @foreach ($target as $key =>$value ) {{$value}} @endforeach {{-- 多快達成目標 --}} {{ __('adminstaticword.HowLong') }}: {{ __('adminstaticword.SelectanOption') }} @foreach ($howLong as $key => $value ) {{$value}} @endforeach {{ __('adminstaticword.MoneyBack') }}: {{ __('adminstaticword.Days') }}: * {{-- 課程類型免費或付費 --}} {{-- {{ __('adminstaticword.ClassType') }}: {{ __('adminstaticword.Price') }}: * {{ __('adminstaticword.DiscountPrice') }}: --}} @if(Auth::User()->role == "admin") {{ __('adminstaticword.Featured') }}: @endif @if(Auth::User()->role == "admin") {{ __('adminstaticword.Status') }}: @endif {{-- 免費 --}} @if(Auth::User()->role == "admin") {{ __('adminstaticword.Free') }}: @endif 影片格式: 直播回放: {{-- 選擇直播日期 --}} 影片{{ __('adminstaticword.URL') }}: * 影片 Iframe 聊天室 Iframe 預覽影片{{ __('adminstaticword.URL') }} ID : https://vimeo.com/ {{-- {{ __('adminstaticword.Duration') }}: {{ __('adminstaticword.CourseExpireDuration') }} --}} {{ __('adminstaticword.PreviewImage') }}: - size: 3:2* {{ __('adminstaticword.Chooseafile') }}… {{-- @if(Auth::User()->role == "admin") {{ __('adminstaticword.InstructorRevenue') }}: @endif --}} {{-- {{ __('adminstaticword.Assignment') }}: {{ __('adminstaticword.Appointment') }}: {{ __('adminstaticword.CertificateEnable') }}: {{ __('adminstaticword.DripContent') }}: --}} @endsection @section('scripts') @endsection
https://vimeo.com/
size: 3:2