@extends('backend.master') @section('mainContent') @php $table_name='packages'; @endphp @section('table') {{$table_name}} @stop {!! generateBreadcrumb() !!}

@if(isset($packge)) {{__('common.Edit')}} @else {{__('common.Add')}} @endif {{__('package.Package')}}

@if(isset($packge))
@csrf @else @if (permissionCheck('package_add')) @csrf @endif @endif
@if(session()->has('message-success'))
{{ session()->get('message-success') }}
@elseif(session()->has('message-danger'))
{{ session()->get('message-danger') }}
@endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('type')) {{ $errors->first('type') }} @endif
@php if(isset($packge) && $packge->type==1){ $validity='block'; $course='none'; }else{ $validity='none'; $course='block'; } @endphp
@if ($errors->has('validity')) {{ $errors->first('validity') }} @endif
@if ($errors->has('courses')) {{ $errors->first('courses') }} @endif
@if ($errors->has('price')) {{ $errors->first('price') }} @endif
@if ($errors->has('label')) {{ $errors->first('label') }} @endif
@if ($errors->has('status')) {{ $errors->first('status') }} @endif
@if($errors->has('description')) {{ $errors->first('description') }} @endif
@php $tooltip = ""; if(permissionCheck('package_add')){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp

{{__('package.Package List')}}

@foreach($packges as $key => $packge) @endforeach
{{ __('common.Name') }} {{ __('package.Package Type') }} {{ __('courses.Price') }} {{ __('package.Button') }} {{ __('common.Status') }} {{ __('common.Action') }}
{{@$packge->name }} @if (@$packge->type==0) {{-- {{@$packge->courses->count()}} --}} @else {{@$packge->typeName }} {{@$packge->validity }} @endif {{getPriceFormat($packge->price)}} {{@$packge->label }}
{{-- @include('coupons::create') --}} @include('backend.partials.delete_modal') @endsection @push('scripts') @endpush