diff --git a/resources/views/admin/vouchers/create.blade.php b/resources/views/admin/vouchers/create.blade.php new file mode 100644 index 00000000..2a29bbe8 --- /dev/null +++ b/resources/views/admin/vouchers/create.blade.php @@ -0,0 +1,205 @@ +@extends('layouts.main') + +@section('content') + + + + + + Products + + + + Dashboard + Products + Create + + + + + + + + + + + + + + + + + + @csrf + + + + Disabled + + + + + + + Name + + @error('name') + + {{$message}} + + @enderror + + + + Price in credits + + @error('price') + + {{$message}} + + @enderror + + + + Memory + + @error('memory') + + {{$message}} + + @enderror + + + + Cpu + + @error('cpu') + + {{$message}} + + @enderror + + + + Swap + + @error('swap') + + {{$message}} + + @enderror + + + + Description + {{old('description')}} + @error('description') + + {{$message}} + + @enderror + + + + + + Disk + + @error('disk') + + {{$message}} + + @enderror + + + IO + + @error('io') + + {{$message}} + + @enderror + + + Databases + + @error('databases') + + {{$message}} + + @enderror + + + Backups + + @error('backups') + + {{$message}} + + @enderror + + + Allocations + + @error('allocations') + + {{$message}} + + @enderror + + + + + + + Submit + + + + + + + + + + + + + + +@endsection diff --git a/resources/views/admin/vouchers/edit.blade.php b/resources/views/admin/vouchers/edit.blade.php new file mode 100644 index 00000000..33b875a2 --- /dev/null +++ b/resources/views/admin/vouchers/edit.blade.php @@ -0,0 +1,161 @@ +@extends('layouts.main') + +@section('content') + + + + + + Vouchers + + + + Dashboard + Vouchers + Create + + + + + + + + + + + + + + + + + + Voucher details + + + + + @csrf + + + Memo + + @error('memo') + + {{$message}} + + @enderror + + + + Credits * + + @error('credits') + + {{$message}} + + @enderror + + + + + Code * + + + + + Random + + + + @error('code') + + {{$message}} + + @enderror + + + + Uses * + + + + Max + + + + @error('uses') + + {{$message}} + + @enderror + + + + + Expires at + + @error('expires_at') + + {{$message}} + + @enderror + + + + + + Submit + + + + + + + + + + + + + + + + +@endsection diff --git a/resources/views/admin/vouchers/index.blade.php b/resources/views/admin/vouchers/index.blade.php new file mode 100644 index 00000000..183e2793 --- /dev/null +++ b/resources/views/admin/vouchers/index.blade.php @@ -0,0 +1,108 @@ +@extends('layouts.main') + +@section('content') + + + + + + Products + + + + Dashboard + Products + + + + + + + + + + + + + + + + Products + Create new + + + + + + + + + Active + Name + Price + Memory + Cpu + Swap + Disk + IO + Databases + Backups + Allocations + Servers + Created at + + + + + + + + + + + + + + + + + + + + + +@endsection diff --git a/resources/views/admin/vouchers/show.blade.php b/resources/views/admin/vouchers/show.blade.php new file mode 100644 index 00000000..46d13b5d --- /dev/null +++ b/resources/views/admin/vouchers/show.blade.php @@ -0,0 +1,240 @@ +@extends('layouts.main') + +@section('content') + + + + + + Products + + + + Dashboard + Products + Show + + + + + + + + + + + + + + + Product + + + + {{ csrf_field() }} + {{ method_field("DELETE") }} + + + + + + + + + + + ID + + + + {{$product->id}} + + + + + + + + + Name + + + + {{$product->name}} + + + + + + + + + Price + + + + {{$product->price}} + + + + + + + + + + Memory + + + + {{$product->memory}} + + + + + + + + + CPU + + + + {{$product->cpu}} + + + + + + + + + Swap + + + + {{$product->swap}} + + + + + + + + + Disk + + + + {{$product->disk}} + + + + + + + + + IO + + + + {{$product->io}} + + + + + + + + + Databases + + + + {{$product->databases}} + + + + + + + + + Allocations + + + + {{$product->allocations}} + + + + + + + + + Created At + + + + {{$product->created_at ? $product->created_at->diffForHumans() : ''}} + + + + + + + + + + Description + + + + {{$product->description}} + + + + + + + + + + Updated At + + + + {{$product->updated_at ? $product->updated_at->diffForHumans() : ''}} + + + + + + + + + + + + Servers + + + + @include('admin.servers.table' , ['filter' => '?product=' . $product->id]) + + + + + + + + + + + + + +@endsection diff --git a/resources/views/models/redeem_voucher_modal.blade.php b/resources/views/models/redeem_voucher_modal.blade.php new file mode 100644 index 00000000..e69de29b