@extends('layouts.app') @section('content')

@lang('messages.all_packages')

@if(count($packages) <= 0) @endif
@foreach($packages as $package)
{{$package->name}}
@if($package->is_active) @lang('messages.active') @else @lang('messages.inactive') @endif
@if($package->no_of_active_forms != 0) @lang('messages.no_of_forms',[ 'active_form' => $package->no_of_active_forms]) @else @lang('messages.unlimited_forms') @endif
@if($package->is_form_downloadable) @lang('messages.form_code_download') @else @lang('messages.form_code_download') @endif
@php $price_interval = __('messages.'.$package->price_interval); @endphp @if($package->price != 0)

{{$package->price}} @lang('messages.subscription_price',[ 'interval' => $package->interval, 'price_interval' => $price_interval ])

@else

@lang('messages.free_for_interval', [ 'interval' => $package->interval, 'price_interval' => $price_interval ])

@endif
@if($loop->iteration%3 == 0)
@endif @endforeach
{{ $packages->links() }}
@endsection @section('footer') @endsection